Operating System - HP-UX
1825795 Members
2385 Online
109687 Solutions
New Discussion

program crash when call to shutdown, here we have implimented our own exit()

 
saurabh07
Senior Member

program crash when call to shutdown, here we have implimented our own exit()

$ pstack core

core: sys_mgr
-------------------------------- lwpid : 642042 -------------------------------
0: 60000000c166aad0 : _Z14_Unwind_Phase2P15_Unwind_ContextP17_Unwind_Exceptioni() + 0x1c0 (/usr/lib/hpux32/libunwind.so.1)

1: 60000000c167cb80 : _Unwind_Resume() + 0x100 (/usr/lib/hpux32/libunwind.so.1)

2: 0000000004113fd0 : HesUtMscSetSigHandler() + 0x670 (sys_mgr)

3: 0000000004128920 : exit() + 0x160 (sys_mgr)

4: 00000000040a3a70 : main() + 0x50 (sys_mgr)

5: 60000000c0030390 : main_opd_entry() + 0x50 (/usr/lib/hpux32/dld.so)

Environment details:
---------------------
$ uname -a

HP-UX alftlq01 B.11.31 U ia64 3394709571 unlimited-user license

2. Output of "what /usr/lib/hpux64/dld.so"
$ what /usr/lib/hpux64/dld.so
/usr/lib/hpux64/dld.so:
92453-07 linker dld HP Itanium(R) B.12.52
REL Wed Dec 3 11:26:14 2008 PST

3. Any linker patch installed, output of "swlist |grep -i linker"

$ /usr/sbin/swlist | grep -i linker
PHSS_39094 1.0 linker + fdp cumulative patch
4. What are the libraries used , Output of "ldd -v "

$ ldd -v sys_mgr



find library=libpthread.so.1; required by sys_mgr

libpthread.so.1 => /usr/lib/hpux32/libpthread.so.1



find library=libcl.so.1; required by sys_mgr

libcl.so.1 => /usr/lib/hpux32/libcl.so.1



find library=libstd_v2.so.1; required by sys_mgr

libstd_v2.so.1 => /usr/lib/hpux32/libstd_v2.so.1



find library=libCsup.so.1; required by sys_mgr

libCsup.so.1 => /usr/lib/hpux32/libCsup.so.1



find library=libm.so.1; required by sys_mgr

libm.so.1 => /usr/lib/hpux32/libm.so.1



find library=libunwind.so.1; required by sys_mgr

libunwind.so.1 => /usr/lib/hpux32/libunwind.so.1



find library=libc.so.1; required by sys_mgr

libc.so.1 => /usr/lib/hpux32/libc.so.1



find library=libdl.so.1; required by sys_mgr

libdl.so.1 => /usr/lib/hpux32/libdl.so.1



find library=libIO77.so.1; required by /usr/lib/hpux32/libcl.so.1

libIO77.so.1 => /usr/lib/hpux32/libIO77.so.1



find library=libuca.so.1; required by /usr/lib/hpux32/libunwind.so.1

libuca.so.1 => /usr/lib/hpux32/libuca.so.1


Thanks
Saurabh

 

 

P.S This thread has been moved from HP-UX > General to HP-UX > Languages and Scripts - HP Forums Moderator

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: program crash when call to shutdown, here we have implimented our own exit()

> pstack core

Why are you using pstack(1) instead of gdb? You'll need to use that anyway. From pstack I can't tell where you are aborting and which signal.

>here we have implemented our own exit()

Why? (You could just have an atexit handler.) How are you going to exit?

Are you doing a throw somewhere after you call HesUtMscSetSigHandler?

In gdb you can do "catch throw" and "catch catch" to see where these are being done.