Date: Sat, 22 Oct 2022 01:33:39 +0000 From: Alexey Dokuchaev <danfe@freebsd.org> To: Kristof Provost <kp@freebsd.org> Cc: Konstantin Belousov <kib@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 9cabef3d146e - main - ldd: use direct exec mode unconditionally Message-ID: <Y1NIc1g66CAdzY2e@FreeBSD.org> In-Reply-To: <7F982005-246F-4607-A17B-08C81CE65E0B@FreeBSD.org> References: <202210061550.296FoVrm088661@gitrepo.freebsd.org> <7F982005-246F-4607-A17B-08C81CE65E0B@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 21, 2022 at 02:18:04PM +0200, Kristof Provost wrote: > On 6 Oct 2022, at 17:50, Konstantin Belousov wrote: > > commit 9cabef3d146e9a844813b6bc8952d6cf2e9d45e5 > > > > ldd: use direct exec mode unconditionally > > > > Trying to exec malformed or unusual binary, for instance, a > > non-FreeBSD ABI, or using a non-standard interpreter, might > > give unexpected outcome. > > > This appears to break things for armv7 (running on aarch64). > > During that build a couple ports fail to build, including > databases/sqlite3. > It fails running `/usr/bin/ldd -a > "/wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/bin/sqlite3" > "/wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/lib/libsqlite3.so???`, > which produces: > > ld-elf.so.1: > /wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/bin/sqlite3: > mmap of entire address space failed: Cannot allocate memory I'm seeing something similar on i386 as well for one of my ports: http://beefy17.nyi.freebsd.org/data/main-i386-default/pce69f38a72dd_s9c95013905/logs/netradiant-20150621_4.log ./danfe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y1NIc1g66CAdzY2e>