public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18024] New: IOT/Abort trap (core dumped) on AIX with -pthread
@ 2004-10-15 20:10 askees at appfluent dot com
  2004-10-15 20:24 ` [Bug c++/18024] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: askees at appfluent dot com @ 2004-10-15 20:10 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-18024-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-01-11 12:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-15 20:10 [Bug c++/18024] New: IOT/Abort trap (core dumped) on AIX with -pthread askees at appfluent dot com
2004-10-15 20:24 ` [Bug c++/18024] " pinskia at gcc dot gnu dot org
2004-10-15 20:37 ` pinskia at gcc dot gnu dot org
2004-10-16  0:36 ` askees at appfluent dot com
2004-10-16 13:48 ` askees at appfluent dot com
2004-10-16 16:31 ` [Bug target/18024] " pinskia at gcc dot gnu dot org
     [not found] <bug-18024-4@http.gcc.gnu.org/bugzilla/>
2012-01-11 12:34 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).