From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 9 22:19:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 295DE106566C for ; Wed, 9 Apr 2008 22:19:32 +0000 (UTC) (envelope-from hank@et.bocholt.fh-gelsenkirchen.de) Received: from alice.et.bocholt.fh-gelsenkirchen.de (alice.et.bocholt.fh-gelsenkirchen.de [193.175.197.63]) by mx1.freebsd.org (Postfix) with ESMTP id 9D6348FC13 for ; Wed, 9 Apr 2008 22:19:31 +0000 (UTC) (envelope-from hank@et.bocholt.fh-gelsenkirchen.de) Received: from sora.hank.home (i577BD44B.versanet.de [87.123.212.75]) by alice.et.bocholt.fh-gelsenkirchen.de (8.14.2/8.14.2) with ESMTP id m39M4Ycx017471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Apr 2008 00:04:35 +0200 X-DKIM: Sendmail DKIM Filter v2.4.0 alice.et.bocholt.fh-gelsenkirchen.de m39M4Ycx017471 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=et.bocholt.fh-gelsenkirchen.de; s=et; t=1207778676; bh=papWx3HxoY MV9pnTqu+zTlwSOEMMlyZAC3gwPLAZu9o=; h=Received:Subject:In-reply-to: References:Comments:X-Mailer:Date:Message-ID:From; b=FMZ9tAnPzCAId Ad7YRkeq+yIFr76Xxu2hYoR1omk+lB9m87uhDnCbtjyxVpx4yeJH6lGZPXnzEnhVW0/ t7tAwFc88KRa4FLwogPQ9kW3oZLR6ZFsglCvpY50Y8ERQnSHotKoyfnl446L5hOtuzG LKAzeu6akDYhoIXCaKy/Y2Ic= Received: from localhost (localhost.hank.home [127.0.0.1]) by sora.hank.home (8.14.2/8.14.2) with ESMTP id m39M46Q3001095; Thu, 10 Apr 2008 00:04:07 +0200 (CEST) (envelope-from hank@sora.hank.home) To: yuri@rawbw.com In-reply-to: <47FD0D21.7010009@rawbw.com> References: <47FCF12D.3070902@rawbw.com> <20080409172905.GA33086@zod.isi.edu> <20080409182602.GA46118@owl.midgard.homeip.net> <47FD0D21.7010009@rawbw.com> Comments: In-reply-to Yuri message dated "Wed, 09 Apr 2008 11:38:25 -0700." X-Mailer: MH-E 8.0.3; nmh 1.2; GNU Emacs 22.1.1 Date: Thu, 10 Apr 2008 00:04:06 +0200 Message-ID: <1094.1207778646@sora.hank.home> From: Dirk GOUDERS X-Spam-Status: No, score=-97.7 required=5.0 tests=AWL,BAYES_00,HELO_LH_HOME, RCVD_IN_PBL, RCVD_IN_SORBS_DUL, SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlin.ccamp.de X-Mailman-Approved-At: Thu, 10 Apr 2008 00:32:27 +0000 Cc: freebsd-hackers@freebsd.org, Ted Faber Subject: Re: C++ exceptions are broken in FreeBSD with gcc-compiled code? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2008 22:19:32 -0000 > > It works fine for me too, using FreeBSD 6-stable and the built-in gcc > > 3.4.6 > > as well as with gcc 4.2.4 20080305 installed from ports. > > No need to use -pthreads in either case > > This means that this issue is STABLE-7.0 specific. I am not able to reproduce the problem here; I will compile the updated sources tonight to check if that changes anything: # uname -sr FreeBSD 7.0-STABLE # g++ --version g++ (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # cat exc.C #include #include using namespace std; int main() { try { throw string("String"); } catch (string s) { cout << "Caught an exception \"" << s << "\"\n"; } } # g++ -o exc exc.C # ./exc Caught an exception "String"