From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29889 invoked by alias); 15 Oct 2004 20:10:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29879 invoked by uid 48); 15 Oct 2004 20:10:45 -0000 Date: Fri, 15 Oct 2004 20:10:00 -0000 From: "askees at appfluent dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20041015201039.18024.askees@appfluent.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/18024] New: IOT/Abort trap (core dumped) on AIX with -pthread X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02162.txt.bz2 List-Id: 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