http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50578
Bug #: 50578 Summary: Rethrow core dump if static link to libstdc++ Classification: Unclassified Product: gcc Version: 4.2.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zihao.ji...@sinobot.com.cn Created attachment 25388 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25388 Small test program still fail with gcc4.2.4 Core dump occurs if rethrow the exception from inner function. This occurs on AIX5.1 with gcc4.2.4, the test program is attached. Compile it with: g++ -o exctest2 -static-libgcc -Wl,-bstatic -lsupc++ -lstdc++ exctest2.cpp -Wl,-bdynamic And run ./exctest2, the exception should be caught, but it always core dump at exc_catch_begin or exc_catch_end. The strange thing is, if I put std::cout.flush() before each 'throw;', the issue disappear.