From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?= Subject: bug#24138: SIGSEGV of useradd (from shadow package) Date: Wed, 3 Aug 2016 08:59:06 +0200 Message-ID: <20160803065906.tgckq77l7k6gqa4w@crashnator.suse.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lniklfcu5tzajpxl" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUqCr-0007c8-J9 for bug-guix@gnu.org; Wed, 03 Aug 2016 03:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUqCk-00055m-Hj for bug-guix@gnu.org; Wed, 03 Aug 2016 03:03:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUqCk-00055f-Em for bug-guix@gnu.org; Wed, 03 Aug 2016 03:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bUqCk-0005yH-64 for bug-guix@gnu.org; Wed, 03 Aug 2016 03:03:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUqBp-00073Z-EE for bug-guix@gnu.org; Wed, 03 Aug 2016 03:02:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUqBl-0004x6-7h for bug-guix@gnu.org; Wed, 03 Aug 2016 03:02:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:44918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUqBk-0004wa-HO for bug-guix@gnu.org; Wed, 03 Aug 2016 03:02:01 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BF1C1ABBB for ; Wed, 3 Aug 2016 07:01:59 +0000 (UTC) Resent-Message-ID: <20160803070159.tr4f54m5f7w3t747@crashnator.suse.cz> Resent-To: bug-guix@gnu.org Content-Disposition: inline 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: 24138@debbugs.gnu.org --lniklfcu5tzajpxl Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable It seems to be easy to crash useradd (from shadow package). # ls -l $(which useradd) lrwxrwxrwx 4 root guixbuild 69 Jan 1 1970 /root/.guix-profile/sbin/userad= d -> /gnu/store/ylnc73apl1irl0s613rxjl445x2zx8a5-shadow-4.2.1/sbin/useradd # useradd test Neopr=C3=A1vn=C4=9Bn=C3=BD p=C5=99=C3=ADstup do pam=C4=9Bti (SIGSEGV) (core= dumped [obraz pam=C4=9Bti ulo=C5=BEen]) (139) # gdb $(which useradd) core GNU gdb (GDB) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /root/.guix-profile/sbin/useradd...(no debugging symbo= ls found)...done. [New LWP 1603] warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? Core was generated by `useradd test'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f457ee6503c in call_init.part () from /gnu/store/8m00x5x8ykmar27= s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 (gdb) bt #0 0x00007f457ee6503c in call_init.part () from /gnu/store/8m00x5x8ykmar27= s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 #1 0x00007f457ee65205 in _dl_init () from /gnu/store/8m00x5x8ykmar27s9248c= mhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 #2 0x00007f457ee696a0 in dl_open_worker () from /gnu/store/8m00x5x8ykmar27= s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 #3 0x00007f457ee64f34 in _dl_catch_error () from /gnu/store/8m00x5x8ykmar2= 7s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 #4 0x00007f457ee68d33 in _dl_open () from /gnu/store/8m00x5x8ykmar27s9248c= mhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 #5 0x00007f457e841fb9 in dlopen_doit () from /gnu/store/8m00x5x8ykmar27s92= 48cmhnkdb2n54a-glibc-2.22/lib/libdl.so.2 #6 0x00007f457ee64f34 in _dl_catch_error () from /gnu/store/8m00x5x8ykmar2= 7s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 #7 0x00007f457e842589 in _dlerror_run () from /gnu/store/8m00x5x8ykmar27s9= 248cmhnkdb2n54a-glibc-2.22/lib/libdl.so.2 #8 0x00007f457e842051 in dlopen@@GLIBC_2.2.5 () from /gnu/store/8m00x5x8yk= mar27s9248cmhnkdb2n54a-glibc-2.22/lib/libdl.so.2 #9 0x00007f457ea49e8d in _pam_load_module () from /gnu/store/2xmwkq2ycwk89= xlxnvib5wnjaacfy0rg-linux-pam-1.2.1/lib/libpam.so.0 #10 0x00007f457ea4a4f9 in _pam_add_handler () from /gnu/store/2xmwkq2ycwk89= xlxnvib5wnjaacfy0rg-linux-pam-1.2.1/lib/libpam.so.0 #11 0x00007f457ea4ad90 in _pam_parse_conf_file () from /gnu/store/2xmwkq2yc= wk89xlxnvib5wnjaacfy0rg-linux-pam-1.2.1/lib/libpam.so.0 #12 0x00007f457ea4b395 in _pam_init_handlers () from /gnu/store/2xmwkq2ycwk= 89xlxnvib5wnjaacfy0rg-linux-pam-1.2.1/lib/libpam.so.0 #13 0x00007f457ea4cae1 in pam_start () from /gnu/store/2xmwkq2ycwk89xlxnvib= 5wnjaacfy0rg-linux-pam-1.2.1/lib/libpam.so.0 #14 0x0000000000403351 in main () Interesting information about module causing it would be in stackframe #9 but there are no debugging information available. Adding debug `output' to linux-pam would diverge me from GuixSD. =66rom strace: read(3, "account required pam_deny.so \nau"..., 4096) =3D 223 open("/gnu/store/2xmwkq2ycwk89xlxnvib5wnjaacfy0rg-linux-pam-1.2.1/lib/secur= ity/pam_deny.so", O_RDONLY|O_CLOEXEC) =3D 5 read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\6\0\0\0\0\0\0".= =2E., 832) =3D 832 fstat(5, {st_mode=3DS_IFREG|0555, st_size=3D6728, ...}) =3D 0 mmap(NULL, 2100200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = =3D 0x7fb8b447c000 mprotect(0x7fb8b447d000, 2093056, PROT_NONE) =3D 0 mmap(0x7fb8b467c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_= DENYWRITE, 5, 0) =3D 0x7fb8b467c000 close(5) =3D 0 --- SIGSEGV {si_signo=3DSIGSEGV, si_code=3DSEGV_MAPERR, si_addr=3D0x7fb8b3d= 1bda8} --- +++ killed by SIGSEGV (core dumped) +++ # cat /etc/pam.d/useradd account required pam_unix.so auth sufficient pam_rootok.so password required pam_unix.so session required /gnu/store/4mmn5y6syzv7wwz1y6bl1ab4g0yvkdq1-elogind-219.14= /lib/security/pam_elogind.so session required pam_unix.so # cat /etc/pam.d/other account required pam_deny.so auth required pam_deny.so password required pam_deny.so session required /gnu/store/4mmn5y6syzv7wwz1y6bl1ab4g0yvkdq1-elogind-219.14= /lib/security/pam_elogind.so session required pam_deny.so --lniklfcu5tzajpxl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXoZYvAAoJEEoj40+gM0NtdJMP/A669+FX2N2jWo8quOOtf362 hp/fAGjaE/tAh3fU0CdFhIaTqQGloPd6v5ooJS2UtOWyeB3gzwfV/7bWPNosOxOx BPFcdrVdpy0Bwtym6XOlGtX+v0ETH+eOGFs/Q85MOAqcXS2Ww9Qy4z0xVkTWPelI 9CrM0WI3hX4f3fO4lbp3bVdqkASvTUA9mDq91WyznZCnC/UY9q6g3fEf+wbB7Vqt 3PCeYDnF11YeUN3CLP8+IQc50EXtjHXnfY+7I40+RM1dQUlQCQdLTeYvEA4aEQYm xm3K+4YQdfAYrEhCvin4OqqL46sU9Pn6YqlvxEGvlFn+qeitD2Ufxy7xj19g+b+P TiVhhMZLYh6/WM2V1XAwsIJZ48R3DjisuCmiDC7ymHqNs8fzt2bAVDWQSlACcTws ALw9Uwk0A1O4olDG5MD2T4QsAx7xNzaUg6/WUkzsMaye9wlHLfqEX1w1dGnGFpAr Xi/+nH3xXsj1ccPPKxj1vuKkOmvAuFV50D74CJnFOZKlQrwr6il28jMs9wyrcEEP 4VB0vAdTHjHTJ8fgCxU72/3mJC0k/7M4PLifeuPsySPp1xYnjKvOGMEmzQTvrBhP zqtO2p+uaKPhpvP3uOq7ewipV+6PbnbGWS5XBppb0TUGGmbHIy1I/B3JCdtFujAU 0urL0ynf5no53vkC/ni/ =UGBs -----END PGP SIGNATURE----- --lniklfcu5tzajpxl--