From owner-freebsd-stable@FreeBSD.ORG Wed Apr 16 00:12:04 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB575106566B for ; Wed, 16 Apr 2008 00:12:04 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from outbound0.mx.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.freebsd.org (Postfix) with ESMTP id BDEB08FC26 for ; Wed, 16 Apr 2008 00:12:04 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.mx.meer.net (8.12.10/8.12.6) with ESMTP id m3G0Bti8012225; Tue, 15 Apr 2008 17:11:59 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id m3G0AkTk015268; Tue, 15 Apr 2008 17:10:46 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (61.204.211.246.customerlink.pwd.ne.jp [61.204.211.246]) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.1) with ESMTP id m3G0AjNd014814; Tue, 15 Apr 2008 17:10:46 -0700 (PDT) (envelope-from gnn@neville-neil.com) Date: Wed, 16 Apr 2008 09:10:45 +0900 Message-ID: From: gnn@freebsd.org To: David Xu In-Reply-To: <480486C9.1000102@freebsd.org> References: <480486C9.1000102@freebsd.org> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1.50 (i386-apple-darwin8.11.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: stable@freebsd.org Subject: Re: A bug in g++ exceptions on 7? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 00:12:04 -0000 At Tue, 15 Apr 2008 18:43:21 +0800, David Xu wrote: > > gnn@freebsd.org wrote: > > Howdy, > > > > We believe we've found a bug in the libgcc or libstdc++ library (not > > sure which one) packaged with the gcc43 port in fbsd7 on an Intel > > x86-64. A program linked against those libraries aborts when an > > exception is thrown. It does not abort if -lpthread is added to the > > link line, even though the program does not use threads. I believe > > the problem is related to the pthread stubs in libgcc, but I don't > > know enough to find the exact problem or fix it. An example is below. > > Not sure if this patch might help you: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/gcc/gthr-posix.h.diff?r1=1.1.1.8;r2=1.1.1.8.4.1;f=h > Yes, this works, thanks! Best, George