This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding
- From: "michael at jarvis dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2010 19:32:59 -0000
- Subject: [Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding
- References: <bug-42159-18481@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from michael at jarvis dot net 2010-06-06 19:32 -------
I can confirm the bug on my system (MacOS 10.6.3, Intel Core i7) with g++
4.4.2, 4.4.3 and 4.4.4.
However, I have discovered a workaround. Linking with -lpthread makes the
problem go away, both for this simple test case, and my larger program where I
too discovered the bug. My program only started failing when I turned off the
OpenMP stuff. However, if I leave OpenMP off, but link with -lpthread anyway,
the exception stuff works fine. Likewise, this example program works correctly
when I compile with -lpthread.
--
michael at jarvis dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |michael at jarvis dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159