Date: Tue, 18 Oct 2016 15:27:43 -0400 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: freebsd-toolchain@freebsd.org Subject: Re: RPI3 - clang 3.9.0 issues Message-ID: <20161018192743.GA22296@mutt-hardenedbsd> In-Reply-To: <20161018014053.GA793@mutt-hardenedbsd> References: <20161017211143.GA20952@mutt-hardenedbsd> <20161018014053.GA793@mutt-hardenedbsd>
next in thread | previous in thread | raw e-mail | index | archive | help
--+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 > <jemalloc>: /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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161018192743.GA22296>