Group: comp.os.linux.redhat


Subject: SIGSEG during exit(0) - how to debug?
From: Rick Anderson
Date: 11/6/2007 4:54:28 AM
All, I am experiencing a SIGSEG (signal 11) while trying to exit(0) the process (this is a pthread multi-threaded application). Does anyone have any suggestions on how to proceed on debugging this problem? I have tried googling the problem & found numerous issues related to SIGSEGs during exit(0) (especially with multi-threaded applications), but have found no definitive solutions... Any ideas? Thanks in advance! Rick

Subject: SIGSEG during exit(0) - how to debug?
From: Rick Anderson
Date: 11/6/2007 5:02:38 AM
Update - here's the stack trace: #0 0x009ab7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) where #0 0x009ab7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x009ef7f5 in raise () from /lib/tls/libc.so.6 #2 0x009f12f1 in abort () from /lib/tls/libc.so.6 #3 0x085a6176 in __const_memset (to=0xb "", len=3221218152) at /ade/rjanders_linux_calypso_ 2/oracle/webcache/src/string/swxmemcpy_linux.h:114 #4 <signal handler called> #5 0x00a27860 in _IO_flush_all_lockp () from /lib/tls/libc.so.6 #6 0x00a27c10 in _IO_cleanup () from /lib/tls/libc.so.6 #7 0x00a22a74 in fcloseall () from /lib/tls/libc.so.6 #8 0x009f130c in abort () from /lib/tls/libc.so.6 #9 0x085a6176 in __const_memset (to=0xb "", len=3221219456) at /ade/rjanders_linux_calypso_ 2/oracle/webcache/src/string/swxmemcpy_linux.h:114 #10 <signal handler called> #11 0x00a27860 in _IO_flush_all_lockp () from /lib/tls/libc.so.6 #12 0x009f125c in abort () from /lib/tls/libc.so.6 #13 0x085a6176 in __const_memset (to=0xb "", len=3221220720) at /ade/rjanders_linux_calypso_ 2/oracle/webcache/src/string/swxmemcpy_linux.h:114 #14 <signal handler called> #15 0x00a27860 in _IO_flush_all_lockp () from /lib/tls/libc.so.6 #16 0x00a27c10 in _IO_cleanup () from /lib/tls/libc.so.6 #17 0x009f2502 in exit () from /lib/tls/libc.so.6 #18 0x085a66e5 in CalypsoExit (code=0, filenm=0x87f5700 "\003", lineno= 595) at /ade/rjanders_linux_calypso_ 2/oracle/webcache/src/main/wxprocexit.c:175 #19 0x0805d305 in main (argc=4, argv=0xbffff5d4) at /ade/rjanders_linux_calypso_2/oracle/webcache/src/main/unix/main.c:595 I'm guessing the memset() at #9 is the problem??? :-) Rick

Subject: SIGSEG during exit(0) - how to debug?
From: scott@slp53.sl.home (Scott Lurndal)
Date: 11/8/2007 12:29:38 AM
Rick Anderson <Richard.Anderson@oracle.com> writes: >Update - here's the stack trace: > >#0 0x009ab7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 >(gdb) where >#0 0x009ab7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 >#1 0x009ef7f5 in raise () from /lib/tls/libc.so.6 >#2 0x009f12f1 in abort () from /lib/tls/libc.so.6 >#3 0x085a6176 in __const_memset (to=0xb "", len=3221218152) at >/ade/rjanders_linux_calypso_ >2/oracle/webcache/src/string/swxmemcpy_linux.h:114 Indeed. Libc is dereferencing a null pointer at line #13, and trying to write 3 billion zeros. My guess is that you've stepped on a FILE object somewhere. scott