------- Additional Comments From cmchugh at callixa dot com 2005-04-13 00:41 -------
If I compile and link the example in my last comment (shown below) with -pthread, it will always run. If I don't it will always core dump. This is with g++ 3.4.3 on AIX 5.2. Does anyone know if the same program compiled with g++ 3.3.3 will behave the same way on AIX 5.2 ? (i.e. run okay when compiled and linked with -pthread but abort otherwise ?) bluetrance:13391$ cat a2.cpp void mycall() { throw 0; } bluetrance:13391$ cat a1.cpp extern void mycall(); int main() { try { mycall(); } catch (int i) { return i; } return 1; } bluetrance:13391$ g++ -fPIC -DPIC -shared -pthread -o liba2.a a2.cpp bluetrance:13391$ g++ -fPIC -DPIC -o a1 a1.cpp -pthread -L. -la2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18649