Operating System - HP-UX
1821642 Members
2885 Online
109633 Solutions
New Discussion юеВ

Segmentation fault (core dumped) for rouge wave tool

 
Rashmi Jha
Occasional Contributor

Segmentation fault (core dumped) for rouge wave tool

Error encountered:
-------------------------------------
Segmentation fault (core dumped)

-----------------clip -----------------
Reading symbols from u3rirpmx.old...done.
Core was generated by `u3rirpmx.old'.
Program terminated with signal 11, Segmentation fault.

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

#0 0xc6bede90 in pthread_mutex_lock () from /opt/nokianms/lib/libpthread.1
(gdb) where
#0 0xc6bede90 in pthread_mutex_lock () from /opt/nokianms/lib/libpthread.1
#1 0xc6d1c0a0 in __thread_mutex_lock () from /opt/nokianms/lib/libc.2
#2 0xc71394c4 in _HPMutexWrapper::lock () from /opt/nokianms/lib/libstd_v2.2
#3 0xca380f7c in RWReference::addReference ()
from /opt/nokianms/lib/librwtool_v2.2
#4 0xc71b64bc in RWTraceEventClient::RWTraceEventClient ()
at ../RWTraceEventClient.cpp:36
#5 0xc71b6fa8 in RWTraceEventFilter::RWTraceEventFilter ()
at ../RWTraceEventFilter.cpp:32
#6 0xc71cd2f8 in RWTraceSingleClientFilter::RWTraceSingleClientFilter ()
at ../RWTraceSingleClientFilter.cpp:38
#7 0xc71b8f68 in RWTraceManager::RWTraceManager () at ../RWTraceManager.cpp:39
Error accessing memory address 0x0: Invalid argument.
------------------------clap------

libraries dynamically linked
-----------------
libtrace.sl libthrexcept.sl libsync.sl libpointer.sl libfunctor.sl libfunctor_list.sl libitc.sl libthread.sl lib/libtls.sl librpcsoc.1 librpcsvc.1 libclntsh.sl.9.0 librt.2 libpthread.1 libnss_dns.1 libdld.2 libTAO_PortableServer.sl
libTAO_IORTable.sl
libTAO_Strategies.sl libTAO.sl
libACE.sl
librwtool_v2.2
libcl.2
libstd_v2.2
libCsup_v2.2
libm.2
libc.2
libdld.2


HP UX Details
-------------
$Revision: 92453-07 linker linker crt0.o B.11.30 020412 $
HP aC++ B3910B A.03.39
HP aC++ B3910B A.03.33 Language Support Library

Rogue Wave
-------------
HP aC++ B3910B A.03.37 Tools.h++ Library RogueWave Version 7.1.1

o/p of "uname -a"
---------------
HP-UX B.11.11 U 9000/800 1144464655 unlimited-user license
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: Segmentation fault (core dumped) for rouge wave tool

HI

Start with this error:-

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program



Paula
If you can spell SysAdmin then you is one - anon
Rashmi Jha
Occasional Contributor

Re: Segmentation fault (core dumped) for rouge wave tool

After the binary had dumped core, gdb was executed with that core and hence the warning. Now, we ran wdb on the binary directly and below is the o/p of the same:

----------clip---------

Program received signal SIGSEGV, Segmentation fault.
0x6f99be90 in pthread_mutex_lock+0x68 () from /opt/nokianms/lib/libpthread.1

CALL STACK:

#0 0x6f99be90 in pthread_mutex_lock+0x68 () from /opt/nokianms/lib/libpthread.1
#1 0x6ffb50a0 in __thread_mutex_lock+0x70 () from /opt/nokianms/lib/libc.2
#2 0x6fe0f4c4 in _HPMutexWrapper::lock+0x30 () from /opt/nokianms/lib/libstd_v2.2
#3 0x6ded6f7c in RWReference::addReference+0x3c () from /opt/nokianms/lib/librwtool_v2.2
#4 0x6f8874bc in RWTraceEventClient::RWTraceEventClient () at ../RWTraceEventClient.cpp:36
#5 0x6f887fa8 in RWTraceEventFilter::RWTraceEventFilter () at ../RWTraceEventFilter.cpp:32
#6 0x6f89e2f8 in RWTraceSingleClientFilter::RWTraceSingleClientFilter () at ../RWTraceSingleClientFilter.cpp:38
#7 0x6f889f68 in RWTraceManager::RWTraceManager () at ../RWTraceManager.cpp:39

------------clip------------------


Problem is, it doesn't even enter into main().

Is that because the compiler versions used of RWT & our binary are diffrent? Are they not compatible?

Regards,
Rashmi.
Umapathy S
Honored Contributor

Re: Segmentation fault (core dumped) for rouge wave tool

Might be. Check with the rogue wave installation. Bus errors are naturally library compatible problems.

Is is the system patched with the lastest pack bundles.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Adam J Markiewicz
Trusted Contributor

Re: Segmentation fault (core dumped) for rouge wave tool

Hi

I think you have rwtool compiled for libcma instead of libpthread.

Please have a look at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=73484

Good luck
Adam
I do everything perfectly, except from my mistakes