From owner-freebsd-stable@FreeBSD.ORG Tue Apr 15 10:41:56 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 E34391065670; Tue, 15 Apr 2008 10:41:56 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B7DD08FC24; Tue, 15 Apr 2008 10:41:56 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from apple.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3FAfrZs023750; Tue, 15 Apr 2008 10:41:54 GMT (envelope-from davidxu@freebsd.org) Message-ID: <480486C9.1000102@freebsd.org> Date: Tue, 15 Apr 2008 18:43:21 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.9 (X11/20071211) MIME-Version: 1.0 To: gnn@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 15 Apr 2008 10:41:57 -0000 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 Regards, David Xu