From owner-freebsd-toolchain@freebsd.org Tue Oct 18 19:34:59 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 74165C17713 for ; Tue, 18 Oct 2016 19:34:59 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (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 0250AF45 for ; Tue, 18 Oct 2016 19:34:59 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x229.google.com with SMTP id m5so2582579qtb.3 for ; Tue, 18 Oct 2016 12:34:58 -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=o+vBNw9CpCdbyW3RfSCztQKiLty7i9uYFdMWfEHPm7A=; b=GGIrQ83NKsvoa+8f71ooVeJcaqtqC+ZM7hZ07fY0lOzrU5ek8HuKCUUgwySVZSekEK 77ArYPf/BQ0PoV7s4Z3jC9xiZwrQ8b+vDr8hSf0UkyDan+IoYpH4LXauXH5MXpRelrmr 6PKRlaznoUvJzvGMYWggmCtzVg1BKmnTEDKqW5dq08CzjtgxhAoGGuXawrlRhAliLZYj b8+yZxhIrU859aVqXsrQNadayFu02eLPTNTPmTBX4Qhvsmzd/uYTSg/LA/uApsFw/M2J KYZ4xOs8lJ7/3iHRk/8+bJ8MF+YFfmtrV/LkBfYjmaaccvOx+5eNWlXQDfE4Ua9dai/d rNjg== 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=o+vBNw9CpCdbyW3RfSCztQKiLty7i9uYFdMWfEHPm7A=; b=ma8SEqRbtNP0W3LCdIso1x0bGE/Yt/EOV9MBJQXOeLZGp3mWaEd3atw+aI9DdFEZST HVp1nINBR4YIhYANn3lRafvht7+t4jsnVVEL1HANMkAqENicEP5knGztJkftHVlFMkCZ u5bt9WcggKi+YT7k+Igp6lOHbh2rWJ9nW2pFjdYMmJKvoWOkG82SOaardWgrOn/HER9B zRoRKQSSn6ir/ZX6IxnaFF32hzYI4Ua3al3zAoSfheg+aMDmBKnNNKNZrYY9ke+RkCPU XPYdnbCvO1AD2AFr4Q6pQyAijY4feEP1W1nNztNXOX9VvhIfBvPY2VCcwLXlilQv92GY Bd/A== X-Gm-Message-State: AA6/9Rkj/aupLOmed7lqVpZf5JJieS8PZwgDo2eVt0K1O4Pl7ODWIkJomdCS0ExaMp1xjoAOgeO2mBPF+xeRAUNrR817iKAiKUGnpGY2h1h3yeVFZBSr/wtEDAGfMJqtIQbhGRAkKvrOKFXcBumes+NfwBQeJdwQi1gddp/AiM76V6FMNTq3bVVhjV0C5fAx9o5L6cWEdLw= X-Received: by 10.200.35.33 with SMTP id a30mr2378655qta.25.1476819297836; Tue, 18 Oct 2016 12:34:57 -0700 (PDT) Received: from mutt-hardenedbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id f16sm7761423qta.9.2016.10.18.12.34.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Oct 2016 12:34:56 -0700 (PDT) Date: Tue, 18 Oct 2016 15:34:54 -0400 From: Shawn Webb To: freebsd-toolchain@freebsd.org Subject: Re: RPI3 - clang 3.9.0 issues Message-ID: <20161018193454.GB22296@mutt-hardenedbsd> References: <20161017211143.GA20952@mutt-hardenedbsd> <20161018014053.GA793@mutt-hardenedbsd> <20161018192743.GA22296@mutt-hardenedbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TRYliJ5NKNqkz5bu" Content-Disposition: inline In-Reply-To: <20161018192743.GA22296@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:34:59 -0000 --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 > > : /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--