This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]