From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#30785: Man pages truncated, repeated Date: Mon, 14 Jan 2019 18:50:54 +0100 Message-ID: <20190114185054.37ddef40@scratchpost.org> References: <87va2s8row.fsf@ambrevar.xyz> <87tvic8rfq.fsf@ambrevar.xyz> <878szo5w6z.fsf@gnu.org> <87r2dg8nxd.fsf@ambrevar.xyz> <87pnt08ndl.fsf@ambrevar.xyz> <8736pw5mmh.fsf@gnu.org> <87muo48fay.fsf@ambrevar.xyz> <87r2dfy6t0.fsf@gnu.org> <87k1j78vzd.fsf@ambrevar.xyz> <87imyr8rsg.fsf@ambrevar.xyz> <87ef9f8ei5.fsf@ambrevar.xyz> <87a7k3rzio.fsf@gnu.org> <87won78aw8.fsf@ambrevar.xyz> <20190114174240.557e64b5@scratchpost.org> <87va2r89ef.fsf@ambrevar.xyz> <20190114184853.1d1fe010@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_//2MztRSy15pGtkdF1EeVoc."; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj6O9-0008Cy-JT for bug-guix@gnu.org; Mon, 14 Jan 2019 12:51:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gj6O7-0003DB-F4 for bug-guix@gnu.org; Mon, 14 Jan 2019 12:51:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gj6O6-0003Bu-2H for bug-guix@gnu.org; Mon, 14 Jan 2019 12:51:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gj6O6-0001vi-0V for bug-guix@gnu.org; Mon, 14 Jan 2019 12:51:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190114184853.1d1fe010@scratchpost.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: Pierre Neidhardt Cc: 30785@debbugs.gnu.org --Sig_//2MztRSy15pGtkdF1EeVoc. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 14 Jan 2019 18:48:53 +0100 Danny Milosavljevic wrote: > set_current_prefix() searches for the current program executable file in = $PATH, > and it can fail and return 0.=20 >=20 > In that case, relocatep will probably segfault at the location marked bel= ow: >=20 > > char *relocated_path =3D new char[curr_prefix_len + relative_path_len= + 1]; > > strcpy(relocated_path, curr_prefix); =20 > ^^^^^^^^^^^ This probably happens when argv[0] is not an absolute path, but still the p= rogram somehow got started, but it is not found in $PATH either. --Sig_//2MztRSy15pGtkdF1EeVoc. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlw8y/4ACgkQ5xo1VCww uqVM8Qf/SAFeklUJo3Mv1is/dXFg4/OXowJs4SCg6uC0ihjPVzhC66sWT4P0LBub Rtoru0CihxtoReshCRXvqaFjx5XpZxbZKCmmzFO7tb/qvpzv5+1XsyGLSUPN7kuK S/fdjvpkcsSjh1IKq7FKlEOAfBCc7baclUiSszx+DfN/MqgREryLWyfleymLX17C vvAz/spjJPF/Ihbo8VbqawZXF938fcQyZZd3MKzW0aCDa2bBMdHwHbFUxCzLMY9v ZsKJ5Pul08WAlnnD1uN/GkrXtlUPc9/Oza1p6HaXO2RNPvC44qXDght6/sMI2Cd6 a6jZJ8TKnW/Zvb8VrbuUzrqyqLk3CQ== =RdXh -----END PGP SIGNATURE----- --Sig_//2MztRSy15pGtkdF1EeVoc.--