Exception thrown from multithreaded shared lib not caught in main

Joao Luis Pinto jpinto@inescporto.pt
Mon Dec 6 08:05:00 GMT 2004


Hello again,

Following my previously presented problem, I have built an example that 
replicates the problem:

http://jpinto.homeip.net/~jpinto/lixo-0.1.0.tar.gz

Just run ./configure && make check

It builds a shared library with a function that throws an exception, and 
an executable that calls the library function. Aparently multi-threading 
is not the issue. The problem is that the exception is never caught in 
main(), and unhandled() gets called.

Tested with g++-3.3.4 and g++-3.4.2 (Debian testing x86).

Thank you for your time.

João Luis



More information about the Gcc-help mailing list