From owner-freebsd-current@freebsd.org Mon Jun 25 14:03:42 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA8991010020 for ; Mon, 25 Jun 2018 14:03:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 542B97D957 for ; Mon, 25 Jun 2018 14:03:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 10AB1101001F; Mon, 25 Jun 2018 14:03:42 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFD38101001E for ; Mon, 25 Jun 2018 14:03:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 776247D955; Mon, 25 Jun 2018 14:03:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 86880D238; Mon, 25 Jun 2018 16:03:34 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_F0B0D016-5D71-4473-BF0E-DFB2A8AE3798"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: clang on 12-CURRENT traps on its internal assertion when build kernel under nanobsd.sh control Date: Mon, 25 Jun 2018 16:03:30 +0200 In-Reply-To: <740aad56-4fed-d3a0-7f18-8c7c11d7ff07@FreeBSD.org> Cc: current@freebsd.org To: lev@FreeBSD.org References: <740aad56-4fed-d3a0-7f18-8c7c11d7ff07@FreeBSD.org> X-Mailer: Apple Mail (2.3445.8.2) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 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: Mon, 25 Jun 2018 14:03:43 -0000 --Apple-Mail=_F0B0D016-5D71-4473-BF0E-DFB2A8AE3798 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22 Jun 2018, at 16:18, Lev Serebryakov wrote: >=20 > I tripped over very strange, but repeateable (in my conditions) bug in > clang on 12-CURRENT. This message will be rather long, as I need to > describe all details. ... > /usr/bin/cc -target x86_64-unknown-freebsd12.0 > --sysroot=3D/usr/obj/nanobsd/data/src/amd64.amd64/tmp > -B/usr/obj/nanobsd/data/src/amd64.amd64/tmp/usr/bin -O2 -pipe > -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc > -I/data/src/sys/netgraph/bluetooth/include > -I/data/src/sys/netgraph/bluetooth/drivers/ubtbcmfw > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/nanobsd/data/src/amd64.amd64/sys/D2500CC/opt_global.h -I. > -I/data/src/sys -I/data/src/sys/contrib/ck/include -fno-common -g > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > -I/usr/obj/nanobsd/data/src/amd64.amd64/sys/D2500CC -MD > -MF.depend.ubtbcmfw.o -MTubtbcmfw.o -mcmodel=3Dkernel -mno-red-zone > -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables > -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef > -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ > -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -Wno-error-unused-function > -Wno-error-pointer-sign -Wno-error-shift-negative-value > -Wno-address-of-packed-member -mno-aes -mno-avx -std=3Diso9899:1999 = -c > /data/src/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c -o = ubtbcmfw.o >=20 > ***** > Assertion failed: ((!RequiresNullTerminator || BufEnd[0] =3D=3D 0) && > "Buffer is not null terminated!"), function init, file > /data/src/contrib/llvm/lib/Support/MemoryBuffer.cpp, line 48. > ***** Which file system is = /data/src/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c on? Is your obj directory on another file system? I'm roughly guessing there is some sort of problem with memory mapping, or the file system itself, since the assertion is similar to what was reported here: http://lists.llvm.org/pipermail/cfe-dev/2014-May/037059.html -Dimitry --Apple-Mail=_F0B0D016-5D71-4473-BF0E-DFB2A8AE3798 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWzD2MgAKCRCwXqMKLiCW o1a7AKDDEi1vOdy2yLiHNaLLdECFWBQCUACgj8sXDBBHZ7TYahtXK6sfT5VA2Qo= =m+t4 -----END PGP SIGNATURE----- --Apple-Mail=_F0B0D016-5D71-4473-BF0E-DFB2A8AE3798--