Re: clang 3.2 RC2 miscompiles libgcc?

From: Stefan Farfeleder <stefanf_at_FreeBSD.org>
Date: Thu, 27 Dec 2012 18:39:20 +0100
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
Received on Thu Dec 27 2012 - 16:39:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:33 UTC