collect produces segmentation violation

I am trying to collect performance data for a fortran90 application which is using third-party dynamically linked 32bit objects. I get a segmentation violation on calling one of the third-party subroutines running the application inside collect, which is not reproducable in terms of after which time it crashes, but it is always in the same place. Running all that inside totalview gives me the following Stack Trace,

stack_unwind, FP=ffff691c

__collector_get_frame_info,FP=ffff6d7c

__collector_getFrameInfo,FP=ffff6d9c

__collector_ext_profile_handler,FP=ffff6dfc

collector_sigprof_dispatcher,FP=ffff6e2c

as well as some more information about the exact place and register settings.

Unfortunately I am not able to deliver an example to reproduce the error because I have no access to the third-party sources and it cannot be run without licence...

Maybe someone is nevertheless able to trace down the problem!

I am using the new Sunstudio Express 3 version under Suse 9.1 Linux.

Thanks!

Bernd

[1066 byte] By [Bernd_Boettgera] at [2007-11-26 15:59:28]
# 1

Unfortunately stack unwind on x86/amd64 is very difficult, and

relies on a variety of heuristics. You stumbled into one of the corner

cases that we haven't fixed.

We are doing a major reworking of stack-unwind for x86/amd64 for

the Studio 12 FCS. There will not be any improvments in EA

over ssx3, but we are hoping to have some in EA2.

Marty Itzkowitz,

Project lead, Sun Studio Performance Tools

marty.itzkowitza at 2007-7-8 22:20:45 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

> Unfortunately stack unwind on x86/amd64 is very

> difficult, and

> relies on a variety of heuristics. You stumbled into

> one of the corner

> cases that we haven't fixed.

>

> We are doing a major reworking of stack-unwind for

> x86/amd64 for

> the Studio 12 FCS. There will not be any improvments

> in EA

> over ssx3, but we are hoping to have some in EA2.

>

>Marty Itzkowitz,

>Project lead, Sun Studio Performance Tools

Thank you for your fast reply!

Is there any work-around?

Bernd_Boettgera at 2007-7-8 22:20:45 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Unfortunately not for you. If you can persuade your third-partylibrary suppliers to compile with -xregs=no%frameptr (for Studio 12 ssx3compilers), or with -fno-omit-frame-pointer (for gcc/g++), it would help.Marty
marty.itzkowitza at 2007-7-8 22:20:45 > top of Java-index,Development Tools,Solaris and Linux Development Tools...