Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2017 15:45:01 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: pkg fails to install on aarch64/rpi3
Message-ID:  <20170102204501.3ybcu3naj4saktru@mutt-hardenedbsd>
In-Reply-To: <d493645d-2430-ff89-46c2-529f768e92a2@zyxst.net>
References:  <d493645d-2430-ff89-46c2-529f768e92a2@zyxst.net>

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

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

On Mon, Jan 02, 2017 at 01:35:27PM +0000, tech-lists wrote:
> Hello list,
>=20
> It seems jemalloc path from the system that created the crochet rpi3
> image is remembered by the image, so ports won't install. The quoted
> path in the error below doesn't exist on my rpi3 system.
>=20
> Are ports meant to be working for the rpi3?
>=20
> root@rpi3:/usr/ports/ports-mgmt/pkg # make install clean
> =3D=3D=3D>  Installing for pkg-1.9.4_1
> =3D=3D=3D>  Checking if pkg already installed
> =3D=3D=3D>   Registering installation for pkg-1.9.4_1
> <jemalloc>:
> /root/tmp/crochet/fbsd12-src/lib/libc/../../contrib/jemalloc/include/jema=
lloc/internal/tcache.h:346:
> Failed assertion: "binind < nhbins"
> Child process pid=3D73566 terminated abnormally: Abort trap
> *** Error code 134
>=20
> Stop.
> make[1]: stopped in /usr/ports/ports-mgmt/pkg
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/ports/ports-mgmt/pkg
> root@rpi3:/usr/ports/ports-mgmt/pkg #

This is due to either a bug in jemalloc or a bug in freebsd's locking
code. You can work around it by running this command:

ln -s 'tcache:false' /etc/malloc.conf

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

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

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlhqu8gACgkQaoRlj1JF
bu4dxw//QgN4nbb/8ZZag0TyotkgqjnNN9edsSS8r+hBlUgt1id8iBVHbhKH7+aI
4HAcRp+sM1oyla3WBQRveoN1ZYs+O8+KQmAihHxp9pr1eqxcT4E6nl+7mAZd2//3
dkMY7QWzc551QD0xy9IVU9ouVwRrw3zPKUxS7pXlVdqcVAE/7uieqWvS77xmbqbw
CxxwfHzdlTgJVd+euiB1EP+TGoMcNccI600Obm0Gdvprws09iNhvt6zzLEtNMGYr
4E8nC395/ibFvaxNedh4/vQYl9qVG/8aL/NcxbULYpz31ydsh8M7djIQf0F2Se/J
edtNGNvKJzxeOV72AutmUCRidQyJVsHhSVETH80r/ZhDo0Q5fdITlTKOhRyjaULA
7PscVqslXEyKyqMMqe5D/kXNT2C1wxshEmbcHQahKn9OSP+fsrOxK8GUI2k3urir
S6ms2gpsgqhTImncxDdb+iyj2xQaF9ccYoMSqDEGjAL3VDr67Nn6lY7QNS0lDFT0
8ys7+RNM6pACgWgTmNfLFSM5zc5HPKtA2Ah0it19jHTo3EF70LXbQYhZx5gcDEKv
zcNW77ytsjvy5oGrjOucWQQSgQIEYS6xgRO+tzVYLaZFA93lGdOdrt3LH+EuMD5r
kel1IC0CNNdn5e56Fxi+g+kevpkt4jmSb24PXUOv12ii3v/8Prk=
=6rVI
-----END PGP SIGNATURE-----

--42dtv7luyjxbjbgw--



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