exception handling bug?

Compiled boost-1.37.0 using llvm-2.4 (OK). Attempting to use it I get:

Program received signal SIGSEGV, Segmentation fault.
0xfffffffffd4c3720 in ?? ()
(gdb) where
#0 0xfffffffffd4c3720 in ?? ()
#1 0x00000033fc810c66 in _Unwind_RaiseException () from /lib64/libgcc_s.so.1
#2 0x00000033fd4c3dbd in __cxa_throw () from /usr/lib64/libstdc++.so.6
#3 0x0000000000636df3 in boost::python::throw_error_already_set () from /usr/local/src/boost-llvm.hg/stage/lib/libboost_python.so
#4 0x000000000063a82f in boost::python::objects::stop_iteration_error () from /usr/local/src/boost-llvm.hg/stage/lib/libboost_python.so

This tells me exception handling isn't working right. boost::python should have caught this exception and returned it to python.

Hello,

#1 0x00000033fc810c66 in _Unwind_RaiseException () from /lib64/libgcc_s.so.1
#2 0x00000033fd4c3dbd in __cxa_throw () from /usr/lib64/libstdc++.so.6

What's your native gcc version?

Anton Korobeynikov wrote:

Hello,

#1 0x00000033fc810c66 in _Unwind_RaiseException () from
#/lib64/libgcc_s.so.1
#2 0x00000033fd4c3dbd in __cxa_throw () from /usr/lib64/libstdc++.so.6

What's your native gcc version?

gcc-4.3.0-8.x86_64

Hi, Neal

gcc-4.3.0-8.x86_64

This is known problem: http://llvm.org/bugs/show_bug.cgi?id=2998

Anton Korobeynikov wrote:

Hi, Neal

gcc-4.3.0-8.x86_64

This is known problem: http://llvm.org/bugs/show_bug.cgi?id=2998

Thank you. Is there a workaround?

Hello, Neal

Thank you. Is there a workaround?

Well, I suppose, that one of the following might work:

1. downgrade gcc
2. link everything statically

Anton Korobeynikov wrote:

Hello, Neal

Thank you. Is there a workaround?

Well, I suppose, that one of the following might work:

2. link everything statically

Not an option. The point was to build dynamically linked objects to use from python.