From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: bug#38055: patchelf: Assertion failed when setting interpreter Date: Tue, 5 Nov 2019 18:18:22 +0200 Message-ID: <20191105161822.GG14453@E5400> References: <20191104045614.GI17621@sax.terramar.selidor.net> <87muda1kfs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FLPM4o+7JoHGki3m" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55261) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS1Xr-0002zT-IA for bug-guix@gnu.org; Tue, 05 Nov 2019 11:19:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS1Xq-0008Oo-B0 for bug-guix@gnu.org; Tue, 05 Nov 2019 11:19:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iS1Xq-0008OB-7W for bug-guix@gnu.org; Tue, 05 Nov 2019 11:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iS1Xq-0001zt-0s for bug-guix@gnu.org; Tue, 05 Nov 2019 11:19:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87muda1kfs.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 38055@debbugs.gnu.org, Ivan Vilata i Balaguer --FLPM4o+7JoHGki3m Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 05, 2019 at 03:12:23PM +0100, Ludovic Court=C3=A8s wrote: > Hi Ivan, >=20 > Ivan Vilata i Balaguer skribis: >=20 > > Hi, I'm using patchelf 0.8 from Guix commit 7f81cce3 on Debian Sid. Wh= en > > trying to patch the `go` binary from > > , I get the follo= wing > > error: > > > > ivan@sax /tmp/tmps2Cv6w [env]$ patchelf --print-interpreter $SHELL > > /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-linux= -x86-64.so.2 > > ivan@sax /tmp/tmps2Cv6w [env]$ patchelf --set-interpreter $(patchel= f --print-interpreter $SHELL) /tmp/tmps2Cv6w/golang/bin/go > > patchelf: patchelf.cc:701: void ElfFile::rewriteSectionsExecutable() \ > > [with Elf_Ehdr =3D Elf64_Ehdr; Elf_Phdr =3D Elf64_Phdr; Elf_Shdr = =3D Elf64_Shdr; Elf_Addr =3D long unsigned int; Elf_Off =3D long unsigned i= nt; \ > > Elf_Dyn =3D Elf64_Dyn; Elf_Sym =3D Elf64_Sym]: Assertion `(off_t) = rdi(hdr->e_shoff) >=3D startOffset' failed. > > Aborted >=20 > I think it=E2=80=99s a bug you should report upstream to the PatchELF > maintainers; it=E2=80=99s probably not Guix-specific. >=20 On the other hand, if I were the patchelf maintainers, I'd suggest upgrading our package from 0.8 to a newer version. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --FLPM4o+7JoHGki3m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl3BoMsACgkQQarn3Mo9 g1HZ6A/+NFxHrliqlxDzdAAOwYDGYRiOIgP0B7RyQSo0RC84f49Hb/hpGBIcwoJb DjJh+/KI28fsVSo2KppcSOhsB+x9uVxOTYUZnRmWNDQtN8njTEm7bkuy1QXY5h3e P7VgcdecTAjpmOJp1OLsPxigdIFK8wYkIga+FnUCM2C53Dl9aOBVI+XGH/4V4Klr vZ7GvJNaGhbot5WBAWca7LMXryz8LmWdhgs2yZJOpbnYmSmKapXxyl/TH7Tsq/xI +7HjXqYxiGgjNbu7z2FYzvS3+8b0nXX1c+yJ98C+mCG/WvFdr/bl35Fd0hKqRsK7 ms6IedVtuwUXy52XTMFCy09xciHVc5avzk9OIUBeOsJ/dHb7CveSRC7wReUjXr4c 35OEljICl3/915tHs5oyjg31gu/fD3AvP0Y64WMifwFNsJtEIGs2etcSrFY1yJ5H c7qbpqC294L3upywzZHpxjgaXA93HgTONmeTxqG0FE4C+8HU3tCgUKSQ/p3k90la LeYXKj3RjBBfmW9Dx52+FWUWOFcoLjx/wA1I37tVA/2mnqPophXks7eTyy5xN+B0 q1DXHTe5mgyem9anV2m5hzT9SPhkl8JJWZ8pVMwNNZXf8oWOaVD6Jah14GmqIT2z gDWaNDFX1EV+DwjO8fzmMkgpV/P5/ANahcVtZs7w47+S8Hfr+7w= =vqlY -----END PGP SIGNATURE----- --FLPM4o+7JoHGki3m--