From owner-freebsd-current@FreeBSD.ORG Tue Jul 22 18:55:45 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8454634 for ; Tue, 22 Jul 2014 18:55:45 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 73E082808 for ; Tue, 22 Jul 2014 18:55:45 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::2086:61ad:9e0a:a6e6] (unknown [IPv6:2001:7b8:3a7:0:2086:61ad:9e0a:a6e6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7B16C5C44; Tue, 22 Jul 2014 20:55:41 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_08F327A9-57DC-458C-AC89-225F88AA0AEC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: clang assertion failure+coredump in clang 3.4.1 From: Dimitry Andric In-Reply-To: Date: Tue, 22 Jul 2014 20:55:27 +0200 Message-Id: <8B11DC31-9BAC-4C46-89C7-8F13ABCCD07D@FreeBSD.org> References: To: Benjamin Kaduk X-Mailer: Apple Mail (2.1878.6) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 22 Jul 2014 18:55:45 -0000 --Apple-Mail=_08F327A9-57DC-458C-AC89-225F88AA0AEC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22 Jul 2014, at 00:34, Benjamin Kaduk wrote: > Building some out-of-tree software with a rather long set of compiler = flags, I can reliably get our clang to crash. > The system is current as of r267362 (June 11), with clang reporting = itself as FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final = 208032) 20140512 > Target: x86_64-unknown-freebsd11.0 > (freefall's clang crashes as well.) >=20 > Unfortunately, I don't have debug symbols around for that clang = binary. > If someone does have a clang with debug symbols handy, I'd be = interested in seeing the backtrace. >=20 > The processed source file and invocation shell script may be found at: > http://web.mit.edu/kaduk/Public/clang/dumptool-09e584.c (1.1M) > http://web.mit.edu/kaduk/Public/clang/dumptool-09e584.sh Hi Ben, I was able to reproduce the assertion, even with clang trunk. It is apparently caused by the implementation of the -Wconsumed warning, which is enabled in your case because you had used -Weverything. I have reported an upstream bug with a reduced test case here: http://llvm.org/PR20402 Meanwhile, you can work around the assertion by adding -Wno-consumed to your compilation flags. -Dimitry --Apple-Mail=_08F327A9-57DC-458C-AC89-225F88AA0AEC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlPOs6oACgkQsF6jCi4glqN+uwCg9X2ufyvW0ECzd9iaAYVQVsKQ h+UAoM5WYdLcw6sY5pXiey7CSbnc6giy =T0aB -----END PGP SIGNATURE----- --Apple-Mail=_08F327A9-57DC-458C-AC89-225F88AA0AEC--