------- Comment #3 from danglin at gcc dot gnu dot org 2010-01-31 16:32 ------- The failure was introduced by my change to the libgcc_s so version. With the change, the array dwarf_reg_size_table is no longer initialized. It appears that glibc has an implicit dependence on libgcc_s:
Breakpoint 4, __gxx_personality_v0 (version=1, actions=10, exception_class=0, ue_header=0x40002408, context=0xbff01630) at ../../../../gcc/libstdc++-v3/libsupc++/eh_personality.cc:361 361 { (gdb) bt #0 __gxx_personality_v0 (version=1, actions=10, exception_class=0, ue_header=0x40002408, context=0xbff01630) at ../../../../gcc/libstdc++-v3/libsupc++/eh_personality.cc:361 #1 0x400c6028 in _Unwind_ForcedUnwind_Phase2 (exc=0x40002408, context=0xbff01630) at ../../../src/libgcc/../gcc/unwind.inc:175 #2 0x400c6170 in _Unwind_ForcedUnwind (exc=0x40002408, st...@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0) at ../../../src/libgcc/../gcc/unwind.inc:207 #3 0x401a1eec in _Unwind_ForcedUnwind (exc=0x40002408, st...@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0) at ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:133 #4 0x4019e7d8 in *__GI___pthread_unwind (buf=0x0) at unwind.c:130 #5 0x40193994 in __do_cancel (value=<value optimized out>) at pthreadP.h:265 #6 __pthread_exit (value=<value optimized out>) at pthread_exit.c:30 #7 0x00010784 in main () at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/forced.C:13 The problem is two copies of libgcc_s. Breakpoint 5, main () at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/forced.C:13 13 pthread_exit (0); Current language: auto The current source language is "auto; currently c++". (gdb) info shared >From To Syms Read Shared Object Library 0x402673c0 0x4027fef0 Yes (*) /lib/ld.so.1 0x4039a350 0x40420c6c Yes /home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs/libstdc++.so.6 0x404c4658 0x404fd5a8 Yes (*) /lib/libm.so.6 0x4014fa40 0x4015c330 Yes /home/dave/gnu/gcc/objdir/gcc/libgcc_s.so.6 0x4018f8e0 0x401a405c Yes (*) /lib/libpthread.so.0 0x40921e00 0x40a2d1f0 Yes (*) /lib/libc.so.6 (gdb) enable 6 (gdb) c Continuing. Breakpoint 6, 0x401a1ee4 in _Unwind_ForcedUnwind (exc=0x40002408, st...@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0) at ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:133 133 ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c: No such file or directory. in ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c Current language: auto The current source language is "auto; currently c". (gdb) info shared >From To Syms Read Shared Object Library 0x402673c0 0x4027fef0 Yes (*) /lib/ld.so.1 0x4039a350 0x40420c6c Yes /home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs/libstdc++.so.6 0x404c4658 0x404fd5a8 Yes (*) /lib/libm.so.6 0x4014fa40 0x4015c330 Yes /home/dave/gnu/gcc/objdir/gcc/libgcc_s.so.6 0x4018f8e0 0x401a405c Yes (*) /lib/libpthread.so.0 0x40921e00 0x40a2d1f0 Yes (*) /lib/libc.so.6 0x400bca70 0x400c98dc Yes (*) /lib/libgcc_s.so.4 (*): Shared library is missing debugging information. (gdb) bt #0 0x401a1ee4 in _Unwind_ForcedUnwind (exc=0x40002408, st...@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0) at ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:133 #1 0x4019e7d8 in *__GI___pthread_unwind (buf=0xbff011d0) at unwind.c:130 #2 0x40193994 in __do_cancel (value=<value optimized out>) at pthreadP.h:265 #3 __pthread_exit (value=<value optimized out>) at pthread_exit.c:30 #4 0x00010784 in main () at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/forced.C:13 This is with LD_LIBRARY_PATH set as follows: export LD_LIBRARY_PATH=.:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/gcc:.:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/gcc I looked all the application and all the libraries used by the application, and none has a dependence on /lib/libgcc_s.so.4. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850