From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21905 invoked by alias); 6 Jun 2010 19:33:18 -0000 Received: (qmail 21692 invoked by uid 48); 6 Jun 2010 19:32:59 -0000 Date: Sun, 06 Jun 2010 19:33:00 -0000 Message-ID: <20100606193259.21691.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "michael at jarvis dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg00661.txt.bz2 ------- 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