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; 6+ 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] 6+ messages in thread

* [Bug c++/18024] IOT/Abort trap (core dumped) on AIX with -pthread
  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 ` pinskia at gcc dot gnu dot org
  2004-10-15 20:37 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 20:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-15 20:24 -------
Yes 3.3.5 did not contained the patches, could you try 3.4.0 then?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18024


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/18024] IOT/Abort trap (core dumped) on AIX with -pthread
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 20:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-15 20:36 -------
Mailed seemed to have bounced...

--
Allen Skees
askees@appfluent.com


-----Original Message-----
From: Allen Skees [mailto:askees@appfluent.com] 
Sent: Friday, October 15, 2004 4:31 PM
To: 'gcc-bugzilla@gcc.gnu.org'
Subject: RE: [Bug c++/18024] IOT/Abort trap (core dumped) on AIX with
-pthread

Thanks for the quick response!!

I've not been able to install 3.4.2 on my system.  I keep running into the
"cannot run 64-bit applications on 32-bit machines" error during
bootstrapping.  I was actually just trying 3.4.2 one last time with an extra
"--disable-aix64" option and then planned on submitting a bug for that one
too!

Is the patch available for 3.3.5?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18024


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/18024] IOT/Abort trap (core dumped) on AIX with -pthread
  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
  4 siblings, 0 replies; 6+ messages in thread
From: askees at appfluent dot com @ 2004-10-16  0:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|                            |powerpc-ibm-aix5.1.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18024


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/18024] IOT/Abort trap (core dumped) on AIX with -pthread
  2004-10-15 20:10 [Bug c++/18024] New: IOT/Abort trap (core dumped) on AIX with -pthread askees at appfluent dot com
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: askees at appfluent dot com @ 2004-10-16 13:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From askees at appfluent dot com  2004-10-16 13:48 -------
After many attempts with various configure settings, I was able to get 3.4.2 
(with both libstdc++-v3 and libgcc_s_pthread) installed.  As in 3.3.5, the 
problem still exists if both libpthread (in /usr/lib/libpthreads.a) and 
libgcc_s_pthread are linked.   

If I explicitly remove libgcc_s_pthread, the core does not occur.  However, 
this library is linked automatically by the -pthread option, so I assume it is 
important and required.

As a side note, I tried the example code in bug #13391 and those test cases are 
broken as well.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18024


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/18024] IOT/Abort trap (core dumped) on AIX with -pthread
  2004-10-15 20:10 [Bug c++/18024] New: IOT/Abort trap (core dumped) on AIX with -pthread askees at appfluent dot com
                   ` (3 preceding siblings ...)
  2004-10-16 13:48 ` askees at appfluent dot com
@ 2004-10-16 16:31 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-16 16:31 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |target


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18024


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-16 16:31 UTC | newest]

Thread overview: 6+ 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

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).