[csw-users] 64bit g++ 4.7.2 exception handling ...

Dmitri Shubin sbn at tbricks.com
Thu Mar 21 11:54:14 CET 2013


Aha, I think I found -- it's direct binding of 
/opt/csw/lib/amd64/libstdc++.so to libc.so.1 for _Unwind_RaiseException 
symbol.

$  ./a-4.7
terminate called after throwing an instance of 'std::runtime_error'
terminate called recursively
Abort (core dumped)
$  LD_NODIRECT=1 ./a-4.7
$ echo $?
0
$

And

$ elfdump -y /opt/csw/lib/amd64/libstdc++.so|grep Unwind_RaiseException
     [1016]  DB           [2] libc.so.1 _Unwind_RaiseException
$ elfdump -y /opt/gcc-4.8/lib/amd64/libstdc++.so|grep Unwind_RaiseException
$


More information about the users mailing list