From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#30785: Man pages truncated, repeated Date: Mon, 14 Jan 2019 17:24:55 +0100 Message-ID: <87won78aw8.fsf@ambrevar.xyz> 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> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gj52t-00032d-Fr for bug-guix@gnu.org; Mon, 14 Jan 2019 11:25:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gj52s-0004Fg-LM for bug-guix@gnu.org; Mon, 14 Jan 2019 11:25:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gj52s-0004FL-IL for bug-guix@gnu.org; Mon, 14 Jan 2019 11:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gj52s-0008Ld-0S for bug-guix@gnu.org; Mon, 14 Jan 2019 11:25:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87a7k3rzio.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: 30785@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Maybe it=E2=80=99s just that the inferior is still running, no? Well, it should finish in a fraction of a second. sudo sh -c "echo '/tmp/core_%e.%p' > /proc/sys/kernel/core_pattern" > ulimit -c unlimited > man whatever that causes the crash > gdb /path/to/preconv core Smart! This gave me no coredump at first because the pipeline "cd" into the store/profile, which is readonly. So I did =2D-8<---------------cut here---------------start------------->8--- sudo sh -c "echo '/tmp/core_%e.%p' > /proc/sys/kernel/core_pattern" =2D-8<---------------cut here---------------end--------------->8--- and then the segfault would generate a core. From which GDB gives me: =2D-8<---------------cut here---------------start------------->8--- Core was generated by `preconv -e UTF-8'. Program terminated with signal SIGSEGV, Segmentation fault. #0 __stpcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcpy-sse2-u= naligned.S:298 298 ../sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: No such file o= r directory. (gdb) bt #0 __stpcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcpy-sse2-u= naligned.S:298 #1 0x00000000004062c3 in relocatep () #2 0x0000000000405b5d in locale_charset () #3 0x0000000000402445 in main () (gdb)=20 =2D-8<---------------cut here---------------end--------------->8--- I haven't looked at the code yet, but here is my clue: argv[0], the program name, is too long and overflows some string. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlw8t9cACgkQm9z0l6S7 zH/ZZAgAo3/DC64I329daJhf32v3TS/j8Mm2pfnzmPAjgydF8s76SMWj8ACe9bVs zkYVqJxXDO0qYxNfYH2aTDTaw5yV8oKEow2OsyX0iUutE6nJYKqYUZ/eGH4ob/Mq HWAdJZAl7T9r7pyrGvYyAyNVM99wqP2luceOxXQ4O3HxAgn2FSOHaalgHGl5aYtD A8hzZi+l52RitODIBaQc6xXiQF2T6bm36k4Cm7Wwk5cKO14TaxqjVIeq46Es4IJv hD9py9ydwTW+uQHEu+YNB+P6etf/H36BMfgr883CLB5Kg/J4nyo9DqKzY6IeOaaY 9v4VcyCt79Qg3z/XUH47W+b2yPX13g== =wXw4 -----END PGP SIGNATURE----- --=-=-=--