Topic
  • 11 replies
  • Latest Post - ‏2012-06-07T19:44:29Z by SystemAdmin
FransvanderReijden
FransvanderReijden
10 Posts

Pinned topic Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

‏2012-06-04T15:18:32Z |
Hi

I have a simple helloworld program that I can easily compile, instrument and run when I'm creating a 32-bit application. When I try to compile the program as a 64 bit application, purify produces a Segmentation Fault.

Here's what I'm doing:

CC -c -I../inc -m64 my_class.cpp
CC -c -I../inc -m64 main.cpp
purify CC -m64 main.o my_class.o
./a.out

Purify Version: Purify Evaluation Version 7.0.1.0-002.Eval 100923 Solaris x64(64-bit)

Please see the attached files for the helloworld program.

Can anyone help?

Thanks in advance
Frans
Updated on 2012-06-07T19:44:29Z at 2012-06-07T19:44:29Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2948 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-04T17:08:27Z  
    Hello Franz,

    The problem is that your Eval version does not support the CC5.12 compilers. We're working on adding support, but it isn't quite ready yet. Would it be possible for you to use CC5.11 for evaluating Purify?

    Susan McVey
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-05T06:34:31Z  
    Hello Franz,

    The problem is that your Eval version does not support the CC5.12 compilers. We're working on adding support, but it isn't quite ready yet. Would it be possible for you to use CC5.11 for evaluating Purify?

    Susan McVey
    Hey Susan

    Thanks for your quick response. I'll try to get a hold on a CC5.11 compiler. I tried CC5.10 and gcc 4.6.2 without success though. Is there a compatiblity matrix for Purify?

    Thanks
    Frans
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-05T06:35:51Z  
    Hey Susan

    Thanks for your quick response. I'll try to get a hold on a CC5.11 compiler. I tried CC5.10 and gcc 4.6.2 without success though. Is there a compatibility matrix for Purify?

    Thanks
    Frans
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-05T06:42:47Z  
    Hey Susan

    Thanks for your quick response. I'll try to get a hold on a CC5.11 compiler. I tried CC5.10 and gcc 4.6.2 without success though. Is there a compatibility matrix for Purify?

    Thanks
    Frans
    Found it:

    http://www-01.ibm.com/software/awdtools/purifyplus/unix/sysreq/

    Thanks
    Frans
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-05T08:55:46Z  
    Hello Franz,

    The problem is that your Eval version does not support the CC5.12 compilers. We're working on adding support, but it isn't quite ready yet. Would it be possible for you to use CC5.11 for evaluating Purify?

    Susan McVey
    Hi

    CC5.11 didn't do the trick.

    Regards
    Frans
  • SystemAdmin
    SystemAdmin
    2948 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-05T16:23:48Z  
    Hi

    CC5.11 didn't do the trick.

    Regards
    Frans
    My apologies, I had forgotten that CC5.11 support was added after that last release went out. I should have suggested you use CC5.10 or one of the other supported compilers listed in the matrix.

    Regards,
    Susan
  • SystemAdmin
    SystemAdmin
    2948 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-05T16:33:36Z  
    My apologies, I had forgotten that CC5.11 support was added after that last release went out. I should have suggested you use CC5.10 or one of the other supported compilers listed in the matrix.

    Regards,
    Susan
    You said you had tried CC5.10 already and it didn't work. I ran your testcase with CC5.10 using the same Purify build you have, and for me it worked well. Can you tell me more about what happened when you tried it? Were there error messages? What version of Solaris were you using?

    Susan
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-07T06:23:53Z  
    You said you had tried CC5.10 already and it didn't work. I ran your testcase with CC5.10 using the same Purify build you have, and for me it worked well. Can you tell me more about what happened when you tried it? Were there error messages? What version of Solaris were you using?

    Susan
    uname -a:

    SunOS solix1dev 5.10 Generic_147441-01 i86pc i386 i86pc

    I'll try to get the box patched to see whether this solves the problem.
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-07T07:04:08Z  
    You said you had tried CC5.10 already and it didn't work. I ran your testcase with CC5.10 using the same Purify build you have, and for me it worked well. Can you tell me more about what happened when you tried it? Were there error messages? What version of Solaris were you using?

    Susan
    for the error messages please see the attached screen shot.
  • FransvanderReijden
    FransvanderReijden
    10 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-07T07:32:39Z  
    for the error messages please see the attached screen shot.
    New info: When I run the application in SunStudio, I see the following Warning:

    Purify: Warning: The application is loading two libraries that seem to be
    different versions of the same original library:
    /opt/rational//releases/purify.solaris_x64.7.0.1.0-002.Eval/cache/solix1dev/lib/amd64/libc.so.1_pure_p3_c0_1009231640_510_64
    and
    /lib/64/libc.so.1 ;
    the two libraries might interfere with each other, leading to unpredictable
    results. This happens occasionally when you share the cache between multiple
    machines running the same version of the OS.
    Relink the application with '-local-cache-dir=<local_dir>' option added either
    to the command line or to the environment variable PURIFYOPTIONS to resolve this problem.
    You may also fix this by using a new cache directory (add
    '-cache-dir=<new_dir>' to the command line or PURIFYOPTIONS) and relinking.
    I followed the recommendation and added -local-cache-dir=/tmp, but the result was the same. The cache files were built in /tmp, but the applications crashes.

    patchadd tells me, that the system is up-to-date...
  • SystemAdmin
    SystemAdmin
    2948 Posts

    Re: Purify produces core dump on Solaris x86 64bit, Sun C++ 5.12 compiler

    ‏2012-06-07T19:44:29Z  
    New info: When I run the application in SunStudio, I see the following Warning:

    Purify: Warning: The application is loading two libraries that seem to be
    different versions of the same original library:
    /opt/rational//releases/purify.solaris_x64.7.0.1.0-002.Eval/cache/solix1dev/lib/amd64/libc.so.1_pure_p3_c0_1009231640_510_64
    and
    /lib/64/libc.so.1 ;
    the two libraries might interfere with each other, leading to unpredictable
    results. This happens occasionally when you share the cache between multiple
    machines running the same version of the OS.
    Relink the application with '-local-cache-dir=<local_dir>' option added either
    to the command line or to the environment variable PURIFYOPTIONS to resolve this problem.
    You may also fix this by using a new cache directory (add
    '-cache-dir=<new_dir>' to the command line or PURIFYOPTIONS) and relinking.
    I followed the recommendation and added -local-cache-dir=/tmp, but the result was the same. The cache files were built in /tmp, but the applications crashes.

    patchadd tells me, that the system is up-to-date...
    Franz, at this point I think the best thing to do is contact Support and let them help you. I've seen warnings of that type before, but trying to debug the problem in a discussion forum isn't going to be very effective.

    Susan