Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2016 15:34:54 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        freebsd-toolchain@freebsd.org
Subject:   Re: RPI3 - clang 3.9.0 issues
Message-ID:  <20161018193454.GB22296@mutt-hardenedbsd>
In-Reply-To: <20161018192743.GA22296@mutt-hardenedbsd>
References:  <20161017211143.GA20952@mutt-hardenedbsd> <20161018014053.GA793@mutt-hardenedbsd> <20161018192743.GA22296@mutt-hardenedbsd>

next in thread | previous in thread | raw e-mail | index | archive | help

--TRYliJ5NKNqkz5bu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 18, 2016 at 03:27:43PM -0400, Shawn Webb wrote:
> 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/jemallo=
c/include/jemalloc/internal/tcache.h:346: Failed assertion: "binind < nhbin=
s"
> >=20
> > With pkg failing to install, it seems building ports/packages directly
> > on the rpi3 won't be viable until this bug is fixed.
>=20
> I was able to work around this issue by disabling tcache via
> malloc.conf:
>=20
> ln -s 'tcache:false' /etc/malloc.conf
>=20
> pkg would install, but /usr/local/sbin/pkg was mislinked:
> http://ix.io/1xlt

It seems this type of mislinking happens with more than just pkg:

(pkgconf-1.0.1) /usr/ports/devel/pkgconf/work/stage//usr/local/bin/pkgconf =
- required shared library ./.libs/libpkgconf.so not found

So I wonder if it's happening with all dynamically-linked executables
in the ports tree.


--=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

--TRYliJ5NKNqkz5bu
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYBnldAAoJEGqEZY9SRW7uscQQAJgjbVOsLrrFkKYJsnlGEqHp
MVXzvAdjxUWCXplcCe90GC9A0jQR2Vzv6l30tL2WZ3MLNCn1SRC41Kayc4Y5BuRx
DjUZ8oo+HlW7m9eazS2/GXb0Rq/fax4nxGChcrIt/jly1mQISBzx1ysdSxy2Foko
rLayVXu7OBJVyfmuvvB+HK4LlbTyAi7i4VORJIp/QpFcYcYjWjXgD0q5XVou/zFX
Ou2tKcLFptMwgtB+ZX6BtBcKJbD++zHHVw2ALtZR3WQdVcSN5bzutWw0jq23LFNO
+530l7MiJmPDXusROhhP9/jaTzMs31TfVL3Y1gHay9EykJxfOnALNVLZF1QIS3At
92Kr404IR4zGmY9063XFjSNnl9PGKw4JdGvcxNcSzZE8NG7e9dKTMKQyp9/lhXzX
U+9GeKEWW1HBw4mdt6b1mzHXyxZAdnV88D5DHdGwgbN7qjT32YM4nQgalysgzVc/
WEdTwVDq67jzZOdBGY+lCABL32fXoRHJe484Ks0VtUmvTgjZS8/AX8CQ5FA+BAVl
JozKaWl9jgNOZH15tF28SOnGKQpVQ3G8pdaH9ZY93tWCAaYZ9waFpWyWMc22cxkc
D91CpELN0yhAg0I03llUcUTlfI03P43zEsio5xIiU8ZLXlzSexyg9Amdo4n0ytwO
9Bsn7OZnYfkWI0Yn1vs9
=TQiQ
-----END PGP SIGNATURE-----

--TRYliJ5NKNqkz5bu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161018193454.GB22296>