C++ exceptions are broken in FreeBSD with gcc-compiled code?

Yuri yuri at rawbw.com
Sat Apr 19 01:18:09 UTC 2008


I had some mixup of gcc versions so I got some false errors with system 
compiler.
System gcc-4.2.1 works ok, as well as all gcc-4.2.X

But the newest gcc-4.3.0 breaks.

Executable aborts:
Abort trap: 6

Stack trace in debugger is:

Program received signal SIGABRT, Aborted.
0x28250a67 in kill () from /lib/libc.so.7
(gdb) bt
#0  0x28250a67 in kill () from /lib/libc.so.7
#1  0x282509c6 in raise () from /lib/libc.so.7
#2  0x2824f5da in abort () from /lib/libc.so.7
#3  0x281759d6 in uw_init_context_1 (context=0xbfbfe5c4, outer_cfa=0xbfbfe660,
outer_ra=0x28127fe8) at ../../../src/libgcc/../gcc/unwind-dw2.c:1249
#4  0x28175f3e in _Unwind_RaiseException (exc=0x81030b0) at
../../../src/libgcc/../gcc/unwind.inc:93
#5  0x28127fe8 in __cxa_throw (obj=0x81030d0, tinfo=0x8048da0, dest=0x80488ac
<_ZNSsD1Ev at plt>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:71
#6  0x08048bcc in main () at exc-2.C:7


And shared libraries loaded correspond to this compiler.

Yuri


More information about the freebsd-hackers mailing list