I'm running on a 32-bit AIX 5.1 box. GCC 3.3.5 was configured as follows and bootstrapped.
# This directory was configured as follows: /home/downloads/gcc/gcc-3.3.5/configure --with-gcc-version-trigger=/home/downloa ds/gcc/gcc-3.3.5/gcc/version.c --host=powerpc-ibm-aix5.1.0.0 --enable-threads=po six --prefix=/usr/local/gcc/gcc-3.3.5 --enable-languages=c,c++ --norecursion When I compile any program that uses -pthread and also throws exceptions, an "IOT/Abort trap (core dumped)" occurs. To reproduce this bug, use the following program. FILE: main.cpp (begin) int main(int argc, char** argv) { try { throw "bug"; } catch(...) { } return 0; } FILE: main.cpp (end) * When compiled with "g++ main.cpp" the application runs fine. * When compiled with "g++ -pthread main.cpp" the error occurs at runtime. * When compiled with "g++ -lpthread main.cpp" the application runs fine. However, this does not link libgcc_s_pthread which leads to instability in the real threaded application. This bug is similiar to #13391, but 3.3.5 did not contain the patches referenced. -- Summary: IOT/Abort trap (core dumped) on AIX with -pthread Product: gcc Version: 3.3.5 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: askees at appfluent dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18024