From owner-freebsd-toolchain@freebsd.org Tue Oct 18 19:27:48 2016 Return-Path: Delivered-To: freebsd-toolchain@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 3326DC17598 for ; Tue, 18 Oct 2016 19:27:48 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (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 ED459C8E for ; Tue, 18 Oct 2016 19:27:47 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk0-x232.google.com with SMTP id o68so4972228qkf.3 for ; Tue, 18 Oct 2016 12:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2x52Y4mIqNE9JzLXrSm5b5SP/XSTaKB1nVVr4NZIo3U=; b=CAhXpH0uecsaMEbNeqVomR7Lp7v21iI5dBwJBrMnHZ9iEQJIsCilc/0jIP3a50wUdr FjRT021vXx/T106P85266wNlVKhz8ZDQbEGsE8gS7n0rWA3SD32ExfiblW/5AZaiGZ/P 51y+euzrSLf6BZ2bo4U/aughPv39iNfvBzRp7u/Qfnh95n6iGVwpCckjA9lz8Ljjc2b1 JgyYvd3MEWHrS2u9J2fAw1z6s866EafTjoeW/5AC8iPmUYVbLGVvajQocnuy8OJj3ub1 KIvJQ9EqkVALyTJPioH7jKYOmAr2IW/S7pJ5Zo9FDaGgy9we5dji9NN6l7zuFSnc5I5r Fpnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2x52Y4mIqNE9JzLXrSm5b5SP/XSTaKB1nVVr4NZIo3U=; b=dOgDnv9NwcPm9+ujZdwbInurn3OjlDXtD472HYCC3f2ckCOXZXxNDU/AiTULinRK8x +i+REslhe33V343eSi++OtMRPkYDFOhsuVhAbwUzvVIiX6fPUuAzivDtHe+JATU9Nz+U eQXA/Ah321Cko91bAYPH9aiWWhz4K1y9NmfLHd5+O5s+ULXC1vKxnGchoJgH+1541a2U 09L3vrrkpvmimHZuz+9XGbIMEckNUwahk1//PMjWXV+ewxBPcKoY0Ub/1Bn4uhebvn6q ENA7bvYh312ydr6sBFF3NAyK1D3GCt8etkJ7xIp3QWI+hFvyIQFlOhRAU54DK5QWFNy5 czsQ== X-Gm-Message-State: AA6/9RkCNEcatZWzFKxkpyFepBGhxkNVb1kcO/m7dZ3aMWE9mY7y7uSYYGTiav7NMFwGs5o5oXrlIpUVYUU0aTSum0pQ8Pzug8v9vS2GqvXQJm1IZpB1RCU6yC4kNetZLCR8Nsrv63wZkzrhONJQYH4lIdX6Z3BCvzsnyXO5RnBPoO1NcaaqlHWQXCrKYiDxSEGwdvO1YV0= X-Received: by 10.55.60.12 with SMTP id j12mr2591226qka.80.1476818866748; Tue, 18 Oct 2016 12:27:46 -0700 (PDT) Received: from mutt-hardenedbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id d69sm18781979qke.45.2016.10.18.12.27.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Oct 2016 12:27:45 -0700 (PDT) Date: Tue, 18 Oct 2016 15:27:43 -0400 From: Shawn Webb To: freebsd-toolchain@freebsd.org Subject: Re: RPI3 - clang 3.9.0 issues Message-ID: <20161018192743.GA22296@mutt-hardenedbsd> References: <20161017211143.GA20952@mutt-hardenedbsd> <20161018014053.GA793@mutt-hardenedbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20161018014053.GA793@mutt-hardenedbsd> X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 18 Oct 2016 19:27:48 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 17, 2016 at 09:40:53PM -0400, Shawn Webb wrote: > On Mon, Oct 17, 2016 at 05:11:43PM -0400, Shawn Webb wrote: > > > > I'm tracking down a potential issue with jemalloc compiled with clang > > 3.9.0, but I need to verify that the issue exists in vanilla FreeBSD in > > addition to HardenedBSD. Most of my testing has been done with > > HardenedBSD to-date. >=20 > The jemalloc issue exists with vanilla FreeBSD with clang 3.9.0 + lld: >=20 > =3D=3D=3D> Registering installation for pkg-1.9.1 > : /scratch/arm64/fbsd-clang390/lib/libc/../../contrib/jemalloc/= include/jemalloc/internal/tcache.h:346: Failed assertion: "binind < nhbins" >=20 > With pkg failing to install, it seems building ports/packages directly > on the rpi3 won't be viable until this bug is fixed. I was able to work around this issue by disabling tcache via malloc.conf: ln -s 'tcache:false' /etc/malloc.conf pkg would install, but /usr/local/sbin/pkg was mislinked: http://ix.io/1xlt So as a workaround to that, I just mv'd /usr/local/sbin/pkg to /usr/local/sbin/pkg.bak and replaced it with a symlink to /usr/local/sbin/pkg-static. I've now successfully compiled and installed a few ports. I've also updated the wiki to document the two workarounds described above. https://wiki.freebsd.org/arm64/rpi3 Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYBnetAAoJEGqEZY9SRW7uugsP/2UNimILB7cXE9A7DICvvIdA bQyJMLX+1aYV95vmdOMC1oJjikcwLMIBIh95FQt4tln/AaR7W4h1jJRon8FchE1n qV/go8ZIvep7MG3l0tNeT6oia+dS2+jDz+slqA+WboV09bGWDQClrLdGLA7xsmUt vzUTFYpxzOLJ2ld+at4O4YQmJRy8xGK2xOdVtMbACjlDzDflwIkmm1EOdSbxwxgu NeZJfDhp4ACT4OgbI/JeGk4xJFrusSGMBYpJBdFJ42Bkh5J0K+lHUbIcjVOMmJT4 DFfE84WrULsTg2lVRG9extnOIdJFpAksUus909q+u6PvjWfiyNEiGffzgwjpRPmF YPftueVwqpWjhK+Zp7XEJ5CIezA1HHlpXHllJsI1083Ho7tqkZhLIZiikEzBNOmk FsIYDeBQHyMQOFy2sLR1/Rco9fYiVfANIa/89Cb7ktc2tlJKbMpco2emsjEysE2b +KwHvVIm7W0PbvDk9sIz6BInMh6+rK7szTWKe8RJXV0oxQaw4Wk6+XmAZXarAO3c hdUKXbZNOOtp180UK5ikefjWiWLlhZMUbsfsgYpEqVSAmZq6zt6O+pr6lm14FRUl goccF1fqqWXkvkbMbjGhXYVajoVihKE4daj+UR+mZEc8uIoYDhkQ2mEWu3Lzh22T GigIo4mqwsueCSJrF/ah =F5IY -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--