Gold linker testsuite failure with glibc-2.16

Andrew Walrond andrew@walrond.org
Mon Jul 23 13:59:00 GMT 2012


Sorry for dumping this on both lists, but not sure where problem lies...

Using vanilla glibc from HEAD of 2.16 branch and binutils from HEAD of 
binutils-2_22-branch.

Test failure is:

/bin/sh: line 1:  9975 Aborted                 (core dumped) "$tst" > 
exception_static_test.log-t 2>&1
FAIL: exception_static_test

And trying it in gdb gives this:

$ gdb exception_static_test
GNU gdb (GDB) 7.4.91.20120718-cvs

Reading symbols from 
/tmp/src/tool/binutils/sourceware/binutils/gold/testsuite/exception_static_test...done.
(gdb) run
Starting program: 
/tmp/src/tool/binutils/sourceware/binutils/gold/testsuite/exception_static_test 

Program received signal SIGABRT, Aborted.
0x000000000044e215 in raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:63
63      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.

(gdb) bt
#0  0x000000000044e215 in raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:63
#1  0x00000000004134b8 in abort () at abort.c:90
#2  0x000000000040bfd7 in uw_init_context_1 
(context=context@entry=0x7fffffffe1b0, 
outer_cfa=outer_cfa@entry=0x7fffffffe560,
     outer_ra=0x401841 <__cxxabiv1::__cxa_throw(void*, std::type_info*, 
void (*)(void*))+81>) at /tmp/src/tool/gcc/libgcc/unwind-dw2.c:1501
#3  0x000000000040c3c7 in _Unwind_RaiseException (exc=0x4db490) at 
/tmp/src/tool/gcc/libgcc/unwind.inc:88
#4  0x0000000000401841 in __cxxabiv1::__cxa_throw (obj=0x4db4b0, 
tinfo=<optimized out>, dest=<optimized out>)
     at /tmp/src/tool/gcc/libstdc++-v3/libsupc++/eh_throw.cc:78
#5  0x0000000000400523 in f1 () at exception_test_2.cc:30
#6  0x00000000004004d9 in t1 () at exception_test_1.cc:43
#7  0x00000000004004a9 in main () at exception_test_main.cc:33

(gdb) up
#1  0x00000000004134b8 in abort () at abort.c:90
90      abort.c: No such file or directory.
(gdb) up 5
#6  0x00000000004004d9 in t1 () at exception_test_1.cc:43
43            f1();

(gdb) list
38      {
39        int i;
40        try
41          {
42            i = 0;
43            f1();
44            i = 1;
45          }
46        catch (...)
47          {

(gdb) down
#5  0x0000000000400523 in f1 () at exception_test_2.cc:30
30        throw 0;

(gdb) list
25      #include "exception_test.h"
26
27      void
28      f1()
29      {
30        throw 0;
31      }


Hope that is useful

Andrew Walrond



More information about the Binutils mailing list