From owner-freebsd-current@FreeBSD.ORG Thu Dec 27 17:39:29 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 AE1AFF2A; Thu, 27 Dec 2012 17:39:29 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from fep15.mx.upcmail.net (fep15.mx.upcmail.net [62.179.121.35]) by mx1.freebsd.org (Postfix) with ESMTP id C16E78FC13; Thu, 27 Dec 2012 17:39:28 +0000 (UTC) Received: from edge01.upcmail.net ([192.168.13.236]) by viefep15-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20121227173920.WVWK2598.viefep15-int.chello.at@edge01.upcmail.net>; Thu, 27 Dec 2012 18:39:20 +0100 Received: from mole.fafoe.narf.at ([80.109.55.137]) by edge01.upcmail.net with edge id ghfL1k01Q2xdvHc01hfLpQ; Thu, 27 Dec 2012 18:39:20 +0100 X-SourceIP: 80.109.55.137 Received: by mole.fafoe.narf.at (Postfix, from userid 1001) id 5127C6D449; Thu, 27 Dec 2012 18:39:20 +0100 (CET) Date: Thu, 27 Dec 2012 18:39:20 +0100 From: Stefan Farfeleder To: Nathan Whitehorn Subject: Re: clang 3.2 RC2 miscompiles libgcc? Message-ID: <20121227173919.GB1431@mole.fafoe.narf.at> References: <20121227150724.GA1431@mole.fafoe.narf.at> <50DC65F5.6060004@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50DC65F5.6060004@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org 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 17:39:29 -0000 On Thu, Dec 27, 2012 at 09:15:01AM -0600, Nathan Whitehorn wrote: > 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. Thanks for the confirmation. The cross-dso requirement would explain why my simpler approaches to reproduce it didn't work. But for me there's no difference between RC2 and release (FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221), both cause my applications to crash. Stefan