From owner-freebsd-toolchain@FreeBSD.ORG Tue Sep 16 06:54:08 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CC9F90D for ; Tue, 16 Sep 2014 06:54:08 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18E9ED24 for ; Tue, 16 Sep 2014 06:54:07 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id w7so5860246lbi.17 for ; Mon, 15 Sep 2014 23:54:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=plH+1lJsIBzGJnXLE5+4DAKerFnTpyWI3xxtapOqsOU=; b=DnWlOAX8yee03f1wSieROyM5z+5wu7xa+rORRB7xaMQOjWWp4UaceDtStHzUTsT0Gh h9E8Wbh4ckaJRzxwnGI8Ic5HMs7/7m0pgVpGqOIleUHlwD42oscuppH4Yf8wWPqSR7D0 BOneSci8KbT07+URArHs2DSEJA6JpHQH/bze4tePhaYTQtw4X4UNOkMOmGeAyWJ+vNAX YMaK9xk3DlfLAkxKyfhPX74ba/qiGE8TAZNMpxVVpRUsW8hEF/4WcjL2dwhaYCSQWRzy wuT5FeyMnex6XE6IMHhnJp5xBP1xUT8k/m3ubMNFpqZO6pMw9cXRyrBQvPu+msjw052l imgw== X-Gm-Message-State: ALoCoQngslMxf/fuuoRw0YjvCjTWaLBHg5U6Qn8EOSKOBp4Q476w84alRJ2ORxAoM+zbx7i8aCHZ X-Received: by 10.152.115.232 with SMTP id jr8mr15229802lab.69.1410850445322; Mon, 15 Sep 2014 23:54:05 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id d6sm2630365lbr.47.2014.09.15.23.54.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Sep 2014 23:54:04 -0700 (PDT) Message-ID: <5417DE84.7020105@freebsd.org> Date: Tue, 16 Sep 2014 10:53:56 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Dimitry Andric Subject: Re: clang makes segfaulting code with -march=core2 on i386 References: <54130AD0.8090103@freebsd.org> <54133E1E.9030105@freebsd.org> <54135B24.5040905@freebsd.org> <54135D0B.7060701@freebsd.org> <6FDF432B-8245-4BC7-952B-DFFEEA106D6F@FreeBSD.org> <5414865A.6030101@freebsd.org> <54149286.80608@freebsd.org> <59D2D3D8-CE24-4785-8E39-6A07AE1B266D@FreeBSD.org> In-Reply-To: <59D2D3D8-CE24-4785-8E39-6A07AE1B266D@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PA7IlscNdd9Of04TWr9xQQUhPuaH3T2Vn" Cc: toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 06:54:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PA7IlscNdd9Of04TWr9xQQUhPuaH3T2Vn Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable On 15.09.2014 22:00, Dimitry Andric wrote: > On 14 Sep 2014, at 19:27, Dimitry Andric wrote: > ... >> In any case, I have now narrowed it down to gcc/tree.c, which is not a= >> very small file, and which is changed very often upstream, sometimes >> almost daily. >> >> So I will see if I can reproduce it with gcc trunk first, and if that >> turns out to be good, I will bisect to find the commit that fixes it. >> >> If trunk is also not good, the rabbit hole goes a bit deeper... Probably it have sense to track down and look at first post-4.7 gcc/tree.= c change which cause fail (gcc47 works with BOOTSTRAP=3Doff). > And deeper it goes: gcc trunk does not crash, *unless* I change the fil= e > gcc/DEV-PHASE to contain the string "prerelease" instead of the default= > "experimental". Then gcc trunk crashes in an identical fashion to the > gcc 4.8 branch, or gcc 4.8.2 release! Just FYI, gcc49 4.9.2.s20140910 faults the same way but on different file= in the same directory: /usr/ports/lang/gcc49/work/build/./gcc/xgcc -shared-libgcc -B/usr/ports/l= ang/gcc49/work/build/./gcc -nostdinc++ -L/usr/ports/lang/gcc49/work/build= /i386-portbld-freebsd10.1/libstdc++-v3/src -L/usr/ports/lang/gcc49/work/b= uild/i386-portbld-freebsd10.1/libstdc++-v3/src/.libs -L/usr/ports/lang/gc= c49/work/build/i386-portbld-freebsd10.1/libstdc++-v3/libsupc++/.libs -B/u= sr/local/i386-portbld-freebsd10.1/bin/ -B/usr/local/i386-portbld-freebsd1= 0.1/lib/ -isystem /usr/local/i386-portbld-freebsd10.1/include -isystem /u= sr/local/i386-portbld-freebsd10.1/sys-include -x c++-header -nostdinc+= + -g -O2 -pipe -march=3Dcore2 -DLIBICONV_PLUG -fno-strict-aliasing -DLIB= ICONV_PLUG -I/usr/ports/lang/gcc49/work/build/i386-portbld-freebsd10.1/l= ibstdc++-v3/include/i386-portbld-freebsd10.1 -I/usr/ports/lang/gcc49/work= /build/i386-portbld-freebsd10.1/libstdc++-v3/include -I/usr/ports/lang/gc= c49/work/gcc-4.9-20140910/libstdc++-v3/libsupc++ -O2 -g -std=3Dgnu++0x /u= sr/ports/lang/gcc49/work/gcc-4.9-20140910/libstdc++- v3/include/precompiled/stdc++.h \ -o i386-portbld-freebsd10.1/bits/stdc++.h.gch/O2ggnu++0x.gch In file included from /usr/ports/lang/gcc49/work/build/i386-portbld-freeb= sd10.1/libstdc++-v3/include/unordered_set:48:0, from /usr/ports/lang/gcc49/work/gcc-4.9-20140910/libstdc= ++-v3/include/precompiled/stdc++.h:116: /usr/ports/lang/gcc49/work/build/i386-portbld-freebsd10.1/libstdc++-v3/in= clude/bits/unordered_set.h:1354:1: internal compiler error: Segmentation = fault } // namespace std ^ no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See for instructions. gmake[6]: *** [i386-portbld-freebsd10.1/bits/stdc++.h.gch/O2ggnu++0x.gch]= Error 1 > Anybody have an idea what kind of magic in gcc is changed, when this > DEV-PHASE file is altered? Some debug code or internal assertion > checking might be turned on or off? Either try to grep the file or string space simple shifted by several byt= es. --=20 http://ache.vniz.net/ --PA7IlscNdd9Of04TWr9xQQUhPuaH3T2Vn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJUF96LAAoJEKUckv0MjfbKswQH/jXz27pZOX1JQ6e22ysG/Qr0 4trkSRVcTtdZbpkrTZcoHvgenDvEO6Uu7xt4q2uFHUUpfLUCUnLN1bI6ULIiomoA Dt04yLdStj0UjE0hFhfX1P+nj3XyuIMsd5WfRpOvShPzhjA2Zyf4y6aqnb/Grcbr p4ji5D1tkLy2UwAfDAjkH0XJOv4tB/4TCddCvnjFlfzd2DLa6tGIw9nVBaSXLO3i KYC+mlgl06KUuNpmO7D7I7ntTYD/tPjMRRND+vPuZ+zCC3H+lW69db+O6YZZUafG aI6FtrN6+elwaoxlrg+fx/0HL4dm9R9YEkas1vJqFWYN4borGJxkSsX7k9rZ7pw= =1N1F -----END PGP SIGNATURE----- --PA7IlscNdd9Of04TWr9xQQUhPuaH3T2Vn--