From owner-freebsd-testing@freebsd.org Tue Oct 6 18:18:06 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE54B9D09ED for ; Tue, 6 Oct 2015 18:18:06 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x236.google.com (mail-pa0-x236.google.com [IPv6:2607:f8b0:400e:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80DECAFB; Tue, 6 Oct 2015 18:18:06 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pacex6 with SMTP id ex6so217452421pac.0; Tue, 06 Oct 2015 11:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zI10X5W6bxXUQ2In+jJQOZP0w8X8iKMsCNxMeS/fU+k=; b=zmz4NGjCT2sH8hI3jNY1rtgTquDzNML5VoADK3zrFPdAvFLO+ElXqfmatpqNLdQgQS Bke1esKj6xH+gh7EOaaoZ67sliadluqX/wKtJD8lMIhnsJHAkmeWjANANdyrIW94Ff6H n5YrM2M4hqs8TMKWolxz0EKR+GV3zmDaLt0lZzRCbIkVm6JLwQvxFjLHkcPOw4LHBX1J 4iJP7j3563iUo4Teg25LQRgyjE/07KHJmcVqljS0FpBThX3E+Lg0vl8IPCwUBVCJX89r p0AIW87kUPbUkBUrrEy7HgJx25ejbSxRLljVn86h8nedci412BlJq2MZvI2omXh8oaab Btfg== X-Received: by 10.66.250.197 with SMTP id ze5mr49065541pac.50.1444155486079; Tue, 06 Oct 2015 11:18:06 -0700 (PDT) Received: from [192.168.20.7] (c-24-16-212-205.hsd1.wa.comcast.net. [24.16.212.205]) by smtp.gmail.com with ESMTPSA id u1sm34736461pbz.56.2015.10.06.11.18.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Oct 2015 11:18:05 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: svn commit: r288906 - head/bin/ls/tests From: NGie Cooper In-Reply-To: <5613DE88.10207@FreeBSD.org> Date: Tue, 6 Oct 2015 11:18:04 -0700 Cc: Garrett Cooper , "freebsd-testing@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0218C81A-A727-4B8D-8F7A-074E488D989C@gmail.com> References: <201510060055.t960tW2V068302@repo.freebsd.org> <5613DE88.10207@FreeBSD.org> To: Eric van Gyzen X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 18:18:06 -0000 > On Oct 6, 2015, at 07:45, Eric van Gyzen wrote: >=20 > On 10/05/2015 19:55, Garrett Cooper wrote: >> Author: ngie >> Date: Tue Oct 6 00:55:31 2015 >> New Revision: 288906 >> URL: https://svnweb.freebsd.org/changeset/base/288906 >>=20 >> Log: >> Explicitly set BLOCKSIZE to 512 in the environment >=20 > I know practically nothing about atf or our usage of it, but in = principle, it seems that the framework should scrub the whole = environment before running any tests, always. Agreed. I discovered after some digging that this variable is set by the = shell with login.conf, which affects getbsize, which in turn affects = some utilities like /bin/ls. It seems that I missed it when I was = testing in my environment, probable because I use bash (my guess is the = Jenkins test runner uses either csh or sh) :/=E2=80=A6 /bin/sh (and POSIX shells for that matter) do some interesting things in = subshells. See $SHELL as an example (I don=E2=80=99t have links right = offhand to prove it, but it made my life interesting before in the = near-ish past). Thanks!= From owner-freebsd-testing@freebsd.org Wed Oct 7 03:28:05 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E32189D17A7; Wed, 7 Oct 2015 03:28:05 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BBE20C82; Wed, 7 Oct 2015 03:28:05 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pablk4 with SMTP id lk4so6728696pab.3; Tue, 06 Oct 2015 20:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cCM1qxbl+W8whhw4MgXqkJjqpbo+TMSAKPfrg2CwScg=; b=Qn/GJfHkgofzEgvTTJIFR0XoTj6T1yPu5Jv5xg9JUd3oAB/N/1r/5dkGvxEJKlw34C vjRztf2HOOMV8q8wdttQRe7WYdf+wem2pAolZhZCDGExVCofL257BoindufvoIfUhHyC IKPrtEMncNmvUxwpCfuiW8mC9ta6WNjaCvFGDPxJeXAhvL6nyL8EY09kS13iIJpSGLp+ Fn8kPVFmYKoI+uKkZ4nYVDwqE89uac+vKPuC4MkqiEVLTL4VI+55TBaDqnyyIM+bJ5LV 1+/CN9u9sElXtyOfOCCxdcVXkc0DlHvMCaZjwpuDgtTT9mia9dSbxIsjW33ioy/K0CUV qABQ== X-Received: by 10.68.173.130 with SMTP id bk2mr51267900pbc.169.1444188485137; Tue, 06 Oct 2015 20:28:05 -0700 (PDT) Received: from [192.168.20.7] (c-24-16-212-205.hsd1.wa.comcast.net. [24.16.212.205]) by smtp.gmail.com with ESMTPSA id tz1sm36217428pbc.50.2015.10.06.20.28.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Oct 2015 20:28:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) From: NGie Cooper In-Reply-To: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> Date: Tue, 6 Oct 2015 20:28:03 -0700 Cc: freebsd-current@FreeBSD.org, "freebsd-testing@freebsd.org" , jenkins-admin@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> To: Dimitry Andric X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 03:28:06 -0000 > On Oct 6, 2015, at 16:13, jenkins-admin@freebsd.org wrote: >=20 > FreeBSD_HEAD-tests - Build #1540 - Unstable: >=20 > Build information: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/ > Full change log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/changes > Full build log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/console >=20 > Change summaries: >=20 > No changes >=20 >=20 > The failed test cases: Looks like the clang upgrade broke atf/kyua package somehow: $ pwd /usr/tests/local $ ./atf/atf-c++/build_test=20 Bus error I=E2=80=99ll try building the package from ports. Thanks, -NGie= From owner-freebsd-testing@freebsd.org Wed Oct 7 03:44:17 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85AF79D03FC; Wed, 7 Oct 2015 03:44:17 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 56E30A53; Wed, 7 Oct 2015 03:44:17 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pablk4 with SMTP id lk4so7131706pab.3; Tue, 06 Oct 2015 20:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=erBnHRGNVI82s+hvQNcK72/gaC6m4po+D4tXR63ycQU=; b=rnORIe4R1NrAXhfU7jokYa8fsfzhqIhchOAA8a1Drou+jPuC8BvXXP5hOVyGa+qfX2 jU7yi5YPfTuKiLXSKIbsLCr6Jaa8d5si82ctWzI6ulIUO9ulQoRxRGnbvDHf+0CNl8Fb 3pEIgd1YvyW+E4yBMLDUOH3ddRJp9Kprp/dJWB8MOt7+vD5ATjOFfYGfMMvvlEh1rcZS ss1uumoYgsfeDRW+c+Vb3mbLQNUp8Wfola/1rH2zcZ7lnapAfNQYRsr8B1vRmVYh+OUY WLMA2fFCwDT6UcP0q5yxJEsOzBjegOkHYw0rpQQoOhgcSWn3ubHtCpBf04dfxL8BolXr E5mw== X-Received: by 10.68.87.161 with SMTP id az1mr51040556pbb.47.1444189456900; Tue, 06 Oct 2015 20:44:16 -0700 (PDT) Received: from ?IPv6:2601:601:800:126d:74ff:5034:d9e4:f4ee? ([2601:601:800:126d:74ff:5034:d9e4:f4ee]) by smtp.gmail.com with ESMTPSA id qd5sm36257819pbc.73.2015.10.06.20.44.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Oct 2015 20:44:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) From: NGie Cooper In-Reply-To: Date: Tue, 6 Oct 2015 20:44:15 -0700 Cc: freebsd-current@FreeBSD.org, "freebsd-testing@freebsd.org" , jenkins-admin@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> To: Dimitry Andric X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 03:44:17 -0000 > On Oct 6, 2015, at 20:28, NGie Cooper wrote: >=20 >> On Oct 6, 2015, at 16:13, jenkins-admin@freebsd.org wrote: >>=20 >> FreeBSD_HEAD-tests - Build #1540 - Unstable: >>=20 >> Build information: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/ >> Full change log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/changes >> Full build log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/console >>=20 >> Change summaries: >>=20 >> No changes >>=20 >>=20 >> The failed test cases: >=20 > Looks like the clang upgrade broke atf/kyua package somehow: >=20 > $ pwd > /usr/tests/local > $ ./atf/atf-c++/build_test=20 > Bus error >=20 > I=E2=80=99ll try building the package from ports. Yup, works when built from scratch in ports. My guess is that lib/libc++ = needs a major version bump: 65208feb (dim 2012-06-02 11:00:48 +0000 13) SHLIB_MAJOR=3D 1 Thanks, -NGie= From owner-freebsd-testing@freebsd.org Wed Oct 7 06:59:05 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 491CD9D1216; Wed, 7 Oct 2015 06:59:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (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 0BBF61000; Wed, 7 Oct 2015 06:59:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::74e2:abea:58db:2176] (unknown [IPv6:2001:7b8:3a7:0:74e2:abea:58db:2176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 459E92AECA; Wed, 7 Oct 2015 08:59:01 +0200 (CEST) Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2858C6F6-669B-45CA-BDE9-A573CA98D5E8"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 From: Dimitry Andric In-Reply-To: <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> Date: Wed, 7 Oct 2015 08:58:55 +0200 Cc: freebsd-current@FreeBSD.org, "freebsd-testing@freebsd.org" Message-Id: <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> To: NGie Cooper X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 06:59:05 -0000 --Apple-Mail=_2858C6F6-669B-45CA-BDE9-A573CA98D5E8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 07 Oct 2015, at 05:44, NGie Cooper wrote: >=20 >>=20 >> On Oct 6, 2015, at 20:28, NGie Cooper wrote: >>=20 >>> On Oct 6, 2015, at 16:13, jenkins-admin@freebsd.org wrote: >>>=20 >>> FreeBSD_HEAD-tests - Build #1540 - Unstable: >>>=20 >>> Build information: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/ >>> Full change log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/changes >>> Full build log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/console >>>=20 >>> Change summaries: >>>=20 >>> No changes >>>=20 >>>=20 >>> The failed test cases: >>=20 >> Looks like the clang upgrade broke atf/kyua package somehow: >>=20 >> $ pwd >> /usr/tests/local >> $ ./atf/atf-c++/build_test >> Bus error >>=20 >> I=E2=80=99ll try building the package from ports. >=20 > Yup, works when built from scratch in ports. My guess is that = lib/libc++ needs a major version bump: >=20 > 65208feb (dim 2012-06-02 11:00:48 +0000 13) SHLIB_MAJOR=3D 1 No, there is no intention to bump any lib versions. That is something = from the 90's. :-) How do you reproduce this issue? Do you have any core dumps? -Dimitry --Apple-Mail=_2858C6F6-669B-45CA-BDE9-A573CA98D5E8 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.28 iEYEARECAAYFAlYUwrQACgkQsF6jCi4glqMRMwCgljv6j/txyrAXQVRgsKrRA6Tm DK0AniaKk7ERRIQpL8e8o0f5K1wvNkQ4 =CvmO -----END PGP SIGNATURE----- --Apple-Mail=_2858C6F6-669B-45CA-BDE9-A573CA98D5E8-- From owner-freebsd-testing@freebsd.org Wed Oct 7 07:52:37 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 154019D192C; Wed, 7 Oct 2015 07:52:37 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D20651AF; Wed, 7 Oct 2015 07:52:36 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by igcpe7 with SMTP id pe7so8900610igc.0; Wed, 07 Oct 2015 00:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lzEggRqWu9cHHt5UDnrZ93ksB9Cv0c4KlLZCJd55siI=; b=RX2qDkbsUs4lsbqDJoiWSd/bO8ZMP8ycE0TG6DoBMiToHtyP+8uUMQ714btVAONv6O Pt0rvwDM9/Pdc5UiXuZbk2cZ24azawVMc1ASuYSz/dORS/IfTvAIetTgCPWSBzunMtDh E9WhaVLQ4MFKxKirXJv5BMj6ndiFLumsZWSH02NQKSTyPrdMs5KFFVxqHqOU3odwF7hQ 74JXuJrWsVnzanN0lIXOyx9kWoBnvirbbBteiQaYc5lBu9sqlCx7xk3JAx4qX3YCeLvX z2j0zhRodMClCke3rMVnuBTnGLgZ7eSUNgkIgunFw7g1yOyLH+hj9OLjf05Z9X4+3cNe RJvQ== X-Received: by 10.50.126.35 with SMTP id mv3mr937669igb.17.1444204356216; Wed, 07 Oct 2015 00:52:36 -0700 (PDT) Received: from ?IPv6:2601:601:800:126d:74ff:5034:d9e4:f4ee? ([2601:601:800:126d:74ff:5034:d9e4:f4ee]) by smtp.gmail.com with ESMTPSA id d7sm736110igl.1.2015.10.07.00.52.35 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Oct 2015 00:52:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) From: NGie Cooper In-Reply-To: <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> Date: Wed, 7 Oct 2015 00:52:34 -0700 Cc: freebsd-current@FreeBSD.org, "freebsd-testing@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 07:52:37 -0000 > On Oct 6, 2015, at 23:58, Dimitry Andric wrote: >=20 > On 07 Oct 2015, at 05:44, NGie Cooper wrote: >>=20 >>>=20 >>> On Oct 6, 2015, at 20:28, NGie Cooper wrote: >>>=20 >>>> On Oct 6, 2015, at 16:13, jenkins-admin@freebsd.org wrote: >>>>=20 >>>> FreeBSD_HEAD-tests - Build #1540 - Unstable: >>>>=20 >>>> Build information: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/ >>>> Full change log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/changes >>>> Full build log: = https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1540/console >>>>=20 >>>> Change summaries: >>>>=20 >>>> No changes >>>>=20 >>>>=20 >>>> The failed test cases: >>>=20 >>> Looks like the clang upgrade broke atf/kyua package somehow: >>>=20 >>> $ pwd >>> /usr/tests/local >>> $ ./atf/atf-c++/build_test >>> Bus error >>>=20 >>> I=E2=80=99ll try building the package from ports. >>=20 >> Yup, works when built from scratch in ports. My guess is that = lib/libc++ needs a major version bump: >>=20 >> 65208feb (dim 2012-06-02 11:00:48 +0000 13) SHLIB_MAJOR=3D 1 >=20 > No, there is no intention to bump any lib versions. That is something = from the 90's. :-) -_-.. > How do you reproduce this issue? Do you have any core dumps? sudo bash pkg install -y kyua kyua test /usr/tests/local/atf/atf-c++/build_test As far as core dumps? Yeah.. I can post one tomorrow (I=E2=80=99m = testing out some things right now and I=E2=80=99d rather not interrupt = it). Key piece is that if I use the package from pkg.FreeBSD.org it = cores, but if I build it myself from ports, everything=E2=80=99s fine = and dandy. Thanks!= From owner-freebsd-testing@freebsd.org Wed Oct 7 09:53:37 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBB839BAD77; Wed, 7 Oct 2015 09:53:37 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F32C1AF1; Wed, 7 Oct 2015 09:53:37 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wicge5 with SMTP id ge5so204734053wic.0; Wed, 07 Oct 2015 02:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=pOkuIDCDJtPk64e+XF5W7N8THTDIYujqTlORsMhf67U=; b=UiXHSXgcDE+oe3nLcRyS50wJeLIm9YWh440Fhl4JIkgQg1zP9q3UzPN/VeKmebqSKR CDEWZBnjntbtbJMkoY1rohd+wJK+8gOMppOETHzIV1hr+p0WEEkC0K0VV1hZ++12oT/r uBhVXyWqFfSFMKIiGK+qb7Buk+qaTSOj7U9GEoounrJRsgsIMBdCMs//i/PjkTeF5atV N6tXaA/al9T46MdnFvEi+axYHWM+IKxvpSH9lqi3jwvuQYROt238kXQF+InGT+2NX3Qz /MDEzyyVKIQ8x+5FbbPwldKJa/3cNmNeTCarphz3KLWVRmMwxJgpzR6xhkq71uDEno+c c/ag== X-Received: by 10.180.223.102 with SMTP id qt6mr747751wic.11.1444211615619; Wed, 07 Oct 2015 02:53:35 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id x9sm38066222wjf.44.2015.10.07.02.53.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 02:53:35 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 7 Oct 2015 11:53:33 +0200 From: Baptiste Daroussin To: NGie Cooper Cc: Dimitry Andric , freebsd-current@FreeBSD.org, "freebsd-testing@freebsd.org" Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) Message-ID: <20151007095332.GB91729@ivaldir.etoilebsd.net> References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BwCQnh7xodEAoBMC" Content-Disposition: inline In-Reply-To: <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 09:53:38 -0000 --BwCQnh7xodEAoBMC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 07, 2015 at 12:52:34AM -0700, NGie Cooper wrote: >=20 > > On Oct 6, 2015, at 23:58, Dimitry Andric wrote: > >=20 > > On 07 Oct 2015, at 05:44, NGie Cooper wrote: > >>=20 > >>>=20 > >>> On Oct 6, 2015, at 20:28, NGie Cooper wrote: > >>>=20 > >>>> On Oct 6, 2015, at 16:13, jenkins-admin@freebsd.org wrote: > >>>>=20 > >>>> FreeBSD_HEAD-tests - Build #1540 - Unstable: > >>>>=20 > >>>> Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-test= s/1540/ > >>>> Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/= 1540/changes > >>>> Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD-tests/1= 540/console > >>>>=20 > >>>> Change summaries: > >>>>=20 > >>>> No changes > >>>>=20 > >>>>=20 > >>>> The failed test cases: > >>>=20 > >>> Looks like the clang upgrade broke atf/kyua package somehow: > >>>=20 > >>> $ pwd > >>> /usr/tests/local > >>> $ ./atf/atf-c++/build_test > >>> Bus error > >>>=20 > >>> I=E2=80=99ll try building the package from ports. > >>=20 > >> Yup, works when built from scratch in ports. My guess is that lib/libc= ++ needs a major version bump: > >>=20 > >> 65208feb (dim 2012-06-02 11:00:48 +0000 13) SHLIB_MAJOR=3D 1 > >=20 > > No, there is no intention to bump any lib versions. That is something = =66rom the 90's. :-) >=20 > -_-.. >=20 > > How do you reproduce this issue? Do you have any core dumps? >=20 > sudo bash > pkg install -y kyua > kyua test /usr/tests/local/atf/atf-c++/build_test >=20 > As far as core dumps? Yeah.. I can post one tomorrow (I=E2=80=99m testing= out some things right now and I=E2=80=99d rather not interrupt it). Key pi= ece is that if I use the package from pkg.FreeBSD.org it cores, but if I bu= ild it myself from ports, everything=E2=80=99s fine and dandy. >=20 Which means there is an ABI incompatiblity somewhere which needs to be fixe= d! Best regards, Bapt --BwCQnh7xodEAoBMC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlYU65wACgkQ8kTtMUmk6ExRlgCgoXbaWnTNaY8gbf9p19ZXov6n VowAn29lweAm4Lwehq1TwhTvHrtHno/l =UwXl -----END PGP SIGNATURE----- --BwCQnh7xodEAoBMC-- From owner-freebsd-testing@freebsd.org Wed Oct 7 13:16:03 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DC369D048E; Wed, 7 Oct 2015 13:16:03 +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 45546FA1; Wed, 7 Oct 2015 13:16:03 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2a03:fc02:2:1:19d2:75da:3127:1b38] (unknown [IPv6:2a03:fc02:2:1:19d2:75da:3127:1b38]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A65C62A42F; Wed, 7 Oct 2015 15:15:59 +0200 (CEST) Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: multipart/signed; boundary="Apple-Mail=_53EB1D27-A25E-428F-B7DF-9CC225547CDB"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 From: Dimitry Andric In-Reply-To: <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> Date: Wed, 7 Oct 2015 15:15:52 +0200 Cc: freebsd-current@FreeBSD.org, "freebsd-testing@freebsd.org" Message-Id: <244C6146-5959-409B-98D8-862CB2C9C177@FreeBSD.org> References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> To: NGie Cooper X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 13:16:03 -0000 --Apple-Mail=_53EB1D27-A25E-428F-B7DF-9CC225547CDB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 07 Oct 2015, at 09:52, NGie Cooper wrote: ... >> How do you reproduce this issue? Do you have any core dumps? >=20 > sudo bash > pkg install -y kyua > kyua test /usr/tests/local/atf/atf-c++/build_test For me, this does not crash, but results in the following error: kyua: E: Program name '/usr/tests/local/atf/atf-c++/build_test' must be = relative to the test suite, not absolute. What am I doing wrong? -Dimitry --Apple-Mail=_53EB1D27-A25E-428F-B7DF-9CC225547CDB 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.28 iEYEARECAAYFAlYVGw8ACgkQsF6jCi4glqN91ACg/wq9jNm4sOcXy4sm709Gjriw /2QAn1Jof6honjJqDBMmFNaUafRuo5t3 =P573 -----END PGP SIGNATURE----- --Apple-Mail=_53EB1D27-A25E-428F-B7DF-9CC225547CDB-- From owner-freebsd-testing@freebsd.org Wed Oct 7 22:00:35 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D24129D19EF; Wed, 7 Oct 2015 22:00:35 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E0772D3; Wed, 7 Oct 2015 22:00:35 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by qgev79 with SMTP id v79so27207325qge.0; Wed, 07 Oct 2015 15:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6lFywZBOhoKk9Lha6JFC3OzZI6b6MrXdS6L1H9LC/0M=; b=iMOl01odu9g3/L+/3YQcRU3hzgfVBEdNt/EA0T7w+GOdfa9TKlWD5FOl6t3Y9DCiMq U8aGnOeq2BmLYBPtjTs7UcGhVI2nVc2fUMfgv8bNKIIMBrGC4yUAN7odNEqQ5tt4wywf y3VX71jq1VBal10uiu6Ybt1Uwy5XvtkauR4GRtciudyyP35AkLBzRVHQvovHeC93sOWO 6n7XyIIl5FZKiI3M6xzgU4DxdF5MB9kJTrBRpHSzs2PGNWwg1rNPxjMfFFWXy1ld8Rdj U4r4c2g2JBi43p78twZ0sUEWGbBTIMNnlbVD9lhLurMxswpCrNFCB0oFkl3HRVQPm+GH Y0uQ== MIME-Version: 1.0 X-Received: by 10.140.93.139 with SMTP id d11mr4344614qge.83.1444255234463; Wed, 07 Oct 2015 15:00:34 -0700 (PDT) Received: by 10.140.94.44 with HTTP; Wed, 7 Oct 2015 15:00:34 -0700 (PDT) In-Reply-To: <244C6146-5959-409B-98D8-862CB2C9C177@FreeBSD.org> References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> <244C6146-5959-409B-98D8-862CB2C9C177@FreeBSD.org> Date: Wed, 7 Oct 2015 15:00:34 -0700 Message-ID: Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) From: NGie Cooper To: Dimitry Andric Cc: FreeBSD Current , "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 22:00:35 -0000 On Wed, Oct 7, 2015 at 6:15 AM, Dimitry Andric wrote: > On 07 Oct 2015, at 09:52, NGie Cooper wrote: > ... >>> How do you reproduce this issue? Do you have any core dumps? >> >> sudo bash >> pkg install -y kyua >> kyua test /usr/tests/local/atf/atf-c++/build_test > > For me, this does not crash, but results in the following error: > > kyua: E: Program name '/usr/tests/local/atf/atf-c++/build_test' must be relative to the test suite, not absolute. > > What am I doing wrong? It's not you, it's me >_>... Try: sudo bash pkg install -y kyua cd /usr/tests/local/atf/atf-c++ kyua build_test Thanks! From owner-freebsd-testing@freebsd.org Fri Oct 9 18:37:14 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 122079D1687; Fri, 9 Oct 2015 18:37:14 +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 C37F46E8; Fri, 9 Oct 2015 18:37:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::44be:a9b3:6e19:762] (unknown [IPv6:2001:7b8:3a7:0:44be:a9b3:6e19:762]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 083D02A33E; Fri, 9 Oct 2015 20:37:10 +0200 (CEST) Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: multipart/signed; boundary="Apple-Mail=_7EECD821-E132-4FA2-BBBE-71E173466123"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 From: Dimitry Andric In-Reply-To: Date: Fri, 9 Oct 2015 20:37:09 +0200 Cc: freebsd-current , "freebsd-testing@freebsd.org" Message-Id: References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> <56152FB3.7000205@freebsd.org> To: Craig Rodrigues X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 18:37:14 -0000 --Apple-Mail=_7EECD821-E132-4FA2-BBBE-71E173466123 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 09 Oct 2015, at 04:29, Craig Rodrigues wrote: > > On Wed, Oct 7, 2015 at 2:28 PM, Dimitry Andric wrote: >> >> Do you still have a copy of the earlier executable? Can you post it >> somewhere? > I was able to reproduce the problem. ... > #0 0x000000080085dcfd in std::__1::ios_base::Init::Init () > from /usr/lib/libc++.so.1 I have committed a (hopefully temporary) workaround in r289072. If you don't want to do a full buildworld, first rebuild clang and install it, then rebuild libc++ and install it. After some back-and-forth about the cause, I am now reasonably convinced that it is due to a bug in clang 3.7.0, as I noted in the commit message: Some further explanation: libc++'s iostream.cpp contains the definitions of std::cout, std::cerr and so on. These global objects are effectively declared with an alignment of 8 bytes. When an executable is linked against libc++.so, it can sometimes get a copy of the global object, which is then at the same alignment. However, with clang 3.7.0, the initialization of these global objects will incorrectly use SSE instructions (e.g. movdqa), whenever the optimization level is high enough, and SSE is enabled, such as on amd64. When any of these objects is not aligned to 16 bytes, this will result in a SIGBUS during iostream initialization. In contrast, clang 3.6.x and earlier took the 8 byte alignment into consideration, and avoided SSE for those particular operations. After bisecting of upstream changes, I found that the above revision [llvm r240144] caused the change of this behavior, so I am reverting it now as a workaround, while a discussion and test case is being prepared for upstream. -Dimitry --Apple-Mail=_7EECD821-E132-4FA2-BBBE-71E173466123 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.28 iEYEARECAAYFAlYYCVUACgkQsF6jCi4glqP9HQCeOA4dCJHOAHAA40VB0JKfB95H lrcAn3nGQuLWbgYUtbuihC8KuA8qM99g =VjAd -----END PGP SIGNATURE----- --Apple-Mail=_7EECD821-E132-4FA2-BBBE-71E173466123-- From owner-freebsd-testing@freebsd.org Sat Oct 10 18:00:23 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73510A10AFD; Sat, 10 Oct 2015 18:00:23 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B621DF7; Sat, 10 Oct 2015 18:00:23 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykec126 with SMTP id c126so68018074yke.2; Sat, 10 Oct 2015 11:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=axLjRT8F3/SKscmdtSt9ZdhdXzBCKxK5qt/XQ+QKLsI=; b=twbTy10I6zqPCaudh+Dj/OpWw2CY9xR+EwzSJhyqj6uUCgtnvqiz1tlwrmy6KGRx2q wJwZzEDB6SgDAWMCi7hDZw9KDIe5h5SxU7j0DYVKrTKScxTbHhspleW6FuaY9hHD4oQP 3A15HmzII5F+6qQs2PEG4tdWRvcI6Cw30x5G7rXCBUtcLxOzfT+7baHffNnNRHSsXZi6 FuxBmfEe9IHb09FpbQ2eX33YtY01TTPbKcY60FSuV9NeFsX3JKV1KGc6QqDOVv0gdBOv 7qk+RsDVM709NpJN0VX3hd2CUfleNL8kDWUJ7s2wksETRNuAiwvmZA4O4dau0xYAX6Bb 61ew== MIME-Version: 1.0 X-Received: by 10.13.200.134 with SMTP id k128mr13994752ywd.172.1444500021814; Sat, 10 Oct 2015 11:00:21 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.111.214 with HTTP; Sat, 10 Oct 2015 11:00:21 -0700 (PDT) In-Reply-To: References: <64208980.212.1444173234007.JavaMail.jenkins@jenkins-9.freebsd.org> <9AA1E7FE-9C61-4730-B597-CD621960B6AB@gmail.com> <16D1DE3E-32FB-4B47-948F-83CF6BCF09C1@FreeBSD.org> <3F707412-A902-4E6F-8662-C49E1A9B8311@gmail.com> <56152FB3.7000205@freebsd.org> Date: Sat, 10 Oct 2015 11:00:21 -0700 X-Google-Sender-Auth: z9mJ5Tx9W8WaM-1lVAfYc2TEVxU Message-ID: Subject: Re: kyua SIGBUS'ing with clang 3.7.0 (was FreeBSD_HEAD-tests - Build #1540 - Unstable) From: Craig Rodrigues To: Dimitry Andric Cc: freebsd-current , "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 18:00:23 -0000 On Fri, Oct 9, 2015 at 11:37 AM, Dimitry Andric wrote: > > I have committed a (hopefully temporary) workaround in r289072. If you > don't want to do a full buildworld, first rebuild clang and install it, > then rebuild libc++ and install it. > After some back-and-forth about the cause, I am now reasonably convinced > that it is due to a bug in clang 3.7.0, as I noted in the commit message: > > Some further explanation: libc++'s iostream.cpp contains the definitions > of std::cout, std::cerr and so on. These global objects are effectively > declared with an alignment of 8 bytes. When an executable is linked > against libc++.so, it can sometimes get a copy of the global object, > which is then at the same alignment. > > However, with clang 3.7.0, the initialization of these global objects > will incorrectly use SSE instructions (e.g. movdqa), whenever the > optimization level is high enough, and SSE is enabled, such as on amd64. > When any of these objects is not aligned to 16 bytes, this will result > in a SIGBUS during iostream initialization. In contrast, clang 3.6.x > and earlier took the 8 byte alignment into consideration, and avoided > SSE for those particular operations. > > After bisecting of upstream changes, I found that the above revision > [llvm r240144] caused the change of this behavior, so I am reverting it > now as a workaround, while a discussion and test case is being prepared > for upstream. > > -Dimitry > > Thank you for analyzing and fixing the problem. You have excellent detective skills and worked hard to fix this! -- Craig