From owner-freebsd-current@FreeBSD.ORG Thu Dec 27 16:15:09 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE6064FF for ; Thu, 27 Dec 2012 16:15:09 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 998BC8FC1A for ; Thu, 27 Dec 2012 16:15:09 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0MFP001023P3JF00@smtpauth1.wiscmail.wisc.edu> for freebsd-current@freebsd.org; Thu, 27 Dec 2012 09:15:03 -0600 (CST) Received: from wanderer.tachypleus.net (c-24-63-204-107.hsd1.ct.comcast.net [24.63.204.107]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0MFP00GRY3P17N50@smtpauth1.wiscmail.wisc.edu> for freebsd-current@freebsd.org; Thu, 27 Dec 2012 09:15:02 -0600 (CST) Date: Thu, 27 Dec 2012 09:15:01 -0600 From: Nathan Whitehorn Subject: Re: clang 3.2 RC2 miscompiles libgcc? In-reply-to: <20121227150724.GA1431@mole.fafoe.narf.at> Sender: whitehorn@wisc.edu To: freebsd-current@freebsd.org Message-id: <50DC65F5.6060004@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=24.63.204.107 X-Spam-PmxInfo: Server=avs-16, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.12.27.150635, SenderIP=24.63.204.107 References: <20121227150724.GA1431@mole.fafoe.narf.at> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 16:15:09 -0000 On 12/27/12 09:07, Stefan Farfeleder wrote: > Hi, > > I noticed that most of my C++ applications in recent versions of FreeBSD > head suddenly crash without me recompiling them. I tracked it down to > r243830 which imported a new clang version. The new clang seems to > compile libgcc in a wrong or at least incompatible way with what gcc > expects. In fact, the breakage only occurs with libgcc compiled by a > post-r243830 clang and an application compiled with g++ -O2. For me, the > crash happens with boost::program_options, but I'm not sure if that is > necessary for the crash. I've seen what I think is the same thing due to a miscompilation of unwind-dw2.c that caused crashes related to cross-shared-object exception handling. It seems to have been fixed with the 3.2 release but I haven't tested it too thoroughly yet. -Nathan