[Bug 634389] New: getent crash
https://bugzilla.novell.com/show_bug.cgi?id=634389 https://bugzilla.novell.com/show_bug.cgi?id=634389#c0 Summary: getent crash Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- "getent aliases key" crashes for exactly one aliases record in our nis map. this crash shows up on *all* suse version from 9.0 to 11.1 and 11.3, plus sles10sp1/sp3 and sles11sp0 (and may other linux distros). where can I get glibc-debuginfo and -debugsource packages for either 11.1 or 11.3 64bit current glibc package? this is the key/value data of the record which triggers the crash from "ypmatch -k xxxxxxxxxxxxx-xxx aliases" (all letters replaced by 'x' -- only one non-letter '2' included): key: xxxxxxxxxxxxx-xxx value: xxxxxx,xxx,xxxx,xxxxx,xxxxx,xxxx,xxxxxxx,xxxxxxxx,xxxxxxx,xxxxxxx,xxxxxxx,xxxx,xxxxxxxx,xxxxx,xxxxx,xxxxx,xxxxxxx,xxxxxxx,xxxxxxx,xxxxxxx,xxxxxx,xxxxxx,xxxxx,xxxxxx,xxxxxxx,xxxxxx,xxxxxxx,xxxx,xxxx,xxxxx,xxxxxxx,xxxxx,xxxxx,xxxxx,xxxx,xxxxx,xxxxxx,xxxxxxxx,xxxxx,xxxxxxx,xxxxxx,xxxxx,xxxxxx,xxxxxx,xxxx,xxxxxxx,xxxxxxx,xxxxx,xxxxxx,xxxxxxxx,xxxxxx,xxxxxx,xxxxxxxx,xxxxxxx,xxxxxxx,xxxxxx,xxxx,xxxxxxx,xxxxxxx,xxxxxxx,xx,xxxxxx,xxxxxx,xxxx,xxxxx,xxxxxxxx,xxxxxxx,xxxxxx,xxxx,xxxxx,xxxxxxxx,xxxxxx,xxxxx,xxxxxxxx,xxxxxxxx,xxxxxxxx,xxxxxxx,xxxxxxx,xxxxx,xxxxxx,xxxxxx,xxxxxxx,xxxxx,xxxxxxxx,xxxxxx,xxx2,xxxxxx,xxxxx,xxxxx,xxxxxx,xxxxxxx,xxxxx,xxxxx,xxxxx,xxxxx,xxxxxx,xxxxxxx,xxxxxx,xxxxxx,xxxxxxx,xxx,xxxxxxx,xxxx,xxxxxxx,xxxxxxxx note that this is not the largest record in our aliases map (only 727 chars vs. 773 chars for the longest entry) but it contains the largest number of names (105 for this record, 86 names work in another record with 594 chars, the 773 chars record only has 28 entries). here are crash log and valgrind info for suse 11.1 x86_64: ------------------------------------------------------------------------------- *** glibc detected *** /usr/bin/getent: realloc(): invalid next size: 0x00000000006073c0 *** ======= Backtrace: ========= /lib64/libc.so.6[0x7facf7d4e108] /lib64/libc.so.6[0x7facf7d52081] /lib64/libc.so.6(realloc+0x138)[0x7facf7d52e48] /lib64/libc.so.6(getaliasbyname+0x96)[0x7facf7dcaac6] /usr/bin/getent[0x403800] /usr/bin/getent[0x40352b] /lib64/libc.so.6(__libc_start_main+0xe6)[0x7facf7cf8586] /usr/bin/getent[0x402029] ======= Memory map: ======== 00400000-00405000 r-xp 00000000 08:03 1555262 /usr/bin/getent 00604000-00605000 r--p 00004000 08:03 1555262 /usr/bin/getent 00605000-00606000 rw-p 00005000 08:03 1555262 /usr/bin/getent 00606000-00627000 rw-p 00606000 00:00 0 [heap] 7facf0000000-7facf0021000 rw-p 7facf0000000 00:00 0 7facf0021000-7facf4000000 ---p 7facf0021000 00:00 0 7facf7493000-7facf74a9000 r-xp 00000000 08:03 1823373 /lib64/libgcc_s.so.1 7facf74a9000-7facf76a9000 ---p 00016000 08:03 1823373 /lib64/libgcc_s.so.1 7facf76a9000-7facf76aa000 r--p 00016000 08:03 1823373 /lib64/libgcc_s.so.1 7facf76aa000-7facf76ab000 rw-p 00017000 08:03 1823373 /lib64/libgcc_s.so.1 7facf76ab000-7facf76b6000 r-xp 00000000 08:03 1823300 /lib64/libnss_files-2.9.so 7facf76b6000-7facf78b5000 ---p 0000b000 08:03 1823300 /lib64/libnss_files-2.9.so 7facf78b5000-7facf78b6000 r--p 0000a000 08:03 1823300 /lib64/libnss_files-2.9.so 7facf78b6000-7facf78b7000 rw-p 0000b000 08:03 1823300 /lib64/libnss_files-2.9.so 7facf78b7000-7facf78cc000 r-xp 00000000 08:03 1823385 /lib64/libnsl-2.9.so 7facf78cc000-7facf7acb000 ---p 00015000 08:03 1823385 /lib64/libnsl-2.9.so 7facf7acb000-7facf7acc000 r--p 00014000 08:03 1823385 /lib64/libnsl-2.9.so 7facf7acc000-7facf7acd000 rw-p 00015000 08:03 1823385 /lib64/libnsl-2.9.so 7facf7acd000-7facf7acf000 rw-p 7facf7acd000 00:00 0 7facf7acf000-7facf7ad9000 r-xp 00000000 08:03 1823302 /lib64/libnss_nis-2.9.so 7facf7ad9000-7facf7cd8000 ---p 0000a000 08:03 1823302 /lib64/libnss_nis-2.9.so 7facf7cd8000-7facf7cd9000 r--p 00009000 08:03 1823302 /lib64/libnss_nis-2.9.so 7facf7cd9000-7facf7cda000 rw-p 0000a000 08:03 1823302 /lib64/libnss_nis-2.9.so 7facf7cda000-7facf7e29000 r-xp 00000000 08:03 1823256 /lib64/libc-2.9.so 7facf7e29000-7facf8029000 ---p 0014f000 08:03 1823256 /lib64/libc-2.9.so 7facf8029000-7facf802d000 r--p 0014f000 08:03 1823256 /lib64/libc-2.9.so 7facf802d000-7facf802e000 rw-p 00153000 08:03 1823256 /lib64/libc-2.9.so 7facf802e000-7facf8033000 rw-p 7facf802e000 00:00 0 7facf8033000-7facf8051000 r-xp 00000000 08:03 1823536 /lib64/ld-2.9.so 7facf8210000-7facf8212000 rw-p 7facf8210000 00:00 0 7facf8217000-7facf824e000 r--p 00000000 08:03 1611860 /usr/lib/locale/de_DE/LC_CTYPE 7facf824e000-7facf8250000 rw-p 7facf824e000 00:00 0 7facf8250000-7facf8251000 r--p 0001d000 08:03 1823536 /lib64/ld-2.9.so 7facf8251000-7facf8252000 rw-p 0001e000 08:03 1823536 /lib64/ld-2.9.so 7fff3ae63000-7fff3ae78000 rw-p 7ffffffea000 00:00 0 [stack] 7fff3afd2000-7fff3afd3000 r-xp 7fff3afd2000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted (core dumped) ------------------------------------------------------------------------------- ==29315== Conditional jump or move depends on uninitialised value(s) ==29315== at 0x5589F0F: (within /lib64/libnss_nis-2.9.so) ==29315== by 0x558A18F: _nss_nis_getaliasbyname_r (in /lib64/libnss_nis-2.9.so) ==29315== by 0x4F1AC5C: getaliasbyname_r (in /lib64/libc-2.9.so) ==29315== by 0x4F1AA9F: getaliasbyname (in /lib64/libc-2.9.so) ==29315== by 0x4037FF: (within /usr/bin/getent) ==29315== by 0x40352A: (within /usr/bin/getent) ==29315== by 0x4E48585: (below main) (in /lib64/libc-2.9.so) ==29315== ==29315== Invalid write of size 8 ==29315== at 0x5589FC0: (within /lib64/libnss_nis-2.9.so) ==29315== by 0x558A18F: _nss_nis_getaliasbyname_r (in /lib64/libnss_nis-2.9.so) ==29315== by 0x4F1AC5C: getaliasbyname_r (in /lib64/libc-2.9.so) ==29315== by 0x4F1AA9F: getaliasbyname (in /lib64/libc-2.9.so) ==29315== by 0x4037FF: (within /usr/bin/getent) ==29315== by 0x40352A: (within /usr/bin/getent) ==29315== by 0x4E48585: (below main) (in /lib64/libc-2.9.so) ==29315== Address 0x5185230 is 0 bytes after a block of size 1,024 alloc'd ==29315== at 0x4C259AE: malloc (vg_replace_malloc.c:207) ==29315== by 0x4F1AB50: getaliasbyname (in /lib64/libc-2.9.so) ==29315== by 0x4037FF: (within /usr/bin/getent) ==29315== by 0x40352A: (within /usr/bin/getent) ==29315== by 0x4E48585: (below main) (in /lib64/libc-2.9.so) ==29315== ==29315== Invalid read of size 8 ==29315== at 0x5589FD8: (within /lib64/libnss_nis-2.9.so) ==29315== by 0x558A18F: _nss_nis_getaliasbyname_r (in /lib64/libnss_nis-2.9.so) ==29315== by 0x4F1AC5C: getaliasbyname_r (in /lib64/libc-2.9.so) ==29315== by 0x4F1AA9F: getaliasbyname (in /lib64/libc-2.9.so) ==29315== by 0x4037FF: (within /usr/bin/getent) ==29315== by 0x40352A: (within /usr/bin/getent) ==29315== by 0x4E48585: (below main) (in /lib64/libc-2.9.so) ==29315== Address 0x5185230 is 0 bytes after a block of size 1,024 alloc'd ==29315== at 0x4C259AE: malloc (vg_replace_malloc.c:207) ==29315== by 0x4F1AB50: getaliasbyname (in /lib64/libc-2.9.so) ==29315== by 0x4037FF: (within /usr/bin/getent) ==29315== by 0x40352A: (within /usr/bin/getent) ==29315== by 0x4E48585: (below main) (in /lib64/libc-2.9.so) ------------------------------------------------------------------------------- and again for suse 11.3 x86_64: ------------------------------------------------------------------------------- *** glibc detected *** getent: realloc(): invalid next size: 0x00000000006083c0 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x73226)[0x7f652b7bb226] /lib64/libc.so.6(+0x76a6c)[0x7f652b7bea6c] /lib64/libc.so.6(realloc+0x102)[0x7f652b7c0142] /lib64/libc.so.6(getaliasbyname+0x9e)[0x7f652b83774e] getent[0x4037ec] getent[0x40413d] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f652b766b7d] getent[0x402219] ======= Memory map: ======== 00400000-00405000 r-xp 00000000 08:07 954976 /usr/bin/getent 00605000-00606000 r--p 00005000 08:07 954976 /usr/bin/getent 00606000-00607000 rw-p 00006000 08:07 954976 /usr/bin/getent 00607000-00628000 rw-p 00000000 00:00 0 [heap] 7f6524000000-7f6524021000 rw-p 00000000 00:00 0 7f6524021000-7f6528000000 ---p 00000000 00:00 0 7f652af02000-7f652af17000 r-xp 00000000 08:07 232416 /lib64/libgcc_s.so.1 7f652af17000-7f652b116000 ---p 00015000 08:07 232416 /lib64/libgcc_s.so.1 7f652b116000-7f652b117000 r--p 00014000 08:07 232416 /lib64/libgcc_s.so.1 7f652b117000-7f652b118000 rw-p 00015000 08:07 232416 /lib64/libgcc_s.so.1 7f652b118000-7f652b124000 r-xp 00000000 08:07 228601 /lib64/libnss_files-2.11.2.so 7f652b124000-7f652b323000 ---p 0000c000 08:07 228601 /lib64/libnss_files-2.11.2.so 7f652b323000-7f652b324000 r--p 0000b000 08:07 228601 /lib64/libnss_files-2.11.2.so 7f652b324000-7f652b325000 rw-p 0000c000 08:07 228601 /lib64/libnss_files-2.11.2.so 7f652b325000-7f652b33a000 r-xp 00000000 08:07 228569 /lib64/libnsl-2.11.2.so 7f652b33a000-7f652b539000 ---p 00015000 08:07 228569 /lib64/libnsl-2.11.2.so 7f652b539000-7f652b53a000 r--p 00014000 08:07 228569 /lib64/libnsl-2.11.2.so 7f652b53a000-7f652b53b000 rw-p 00015000 08:07 228569 /lib64/libnsl-2.11.2.so 7f652b53b000-7f652b53d000 rw-p 00000000 00:00 0 7f652b53d000-7f652b547000 r-xp 00000000 08:07 228708 /lib64/libnss_nis-2.11.2.so 7f652b547000-7f652b746000 ---p 0000a000 08:07 228708 /lib64/libnss_nis-2.11.2.so 7f652b746000-7f652b747000 r--p 00009000 08:07 228708 /lib64/libnss_nis-2.11.2.so 7f652b747000-7f652b748000 rw-p 0000a000 08:07 228708 /lib64/libnss_nis-2.11.2.so 7f652b748000-7f652b89e000 r-xp 00000000 08:07 228505 /lib64/libc-2.11.2.so 7f652b89e000-7f652ba9e000 ---p 00156000 08:07 228505 /lib64/libc-2.11.2.so 7f652ba9e000-7f652baa2000 r--p 00156000 08:07 228505 /lib64/libc-2.11.2.so 7f652baa2000-7f652baa3000 rw-p 0015a000 08:07 228505 /lib64/libc-2.11.2.so 7f652baa3000-7f652baa8000 rw-p 00000000 00:00 0 7f652baa8000-7f652bac7000 r-xp 00000000 08:07 232373 /lib64/ld-2.11.2.so 7f652bc80000-7f652bc83000 rw-p 00000000 00:00 0 7f652bc8e000-7f652bcc5000 r--p 00000000 08:07 156190 /usr/lib/locale/de_DE/LC_CTYPE 7f652bcc5000-7f652bcc6000 rw-p 00000000 00:00 0 7f652bcc6000-7f652bcc7000 r--p 0001e000 08:07 232373 /lib64/ld-2.11.2.so 7f652bcc7000-7f652bcc8000 rw-p 0001f000 08:07 232373 /lib64/ld-2.11.2.so 7f652bcc8000-7f652bcc9000 rw-p 00000000 00:00 0 7fff25299000-7fff252ba000 rw-p 00000000 00:00 0 [stack] 7fff25358000-7fff25359000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted (core dumped) ------------------------------------------------------------------------------- ==10856== Conditional jump or move depends on uninitialised value(s) ==10856== at 0x55930DC: _nss_nis_parse_aliasent (in /lib64/libnss_nis-2.11.2.so) ==10856== by 0x5593628: _nss_nis_getaliasbyname_r (in /lib64/libnss_nis-2.11.2.so) ==10856== by 0x4F1B904: getaliasbyname_r@@GLIBC_2.2.5 (in /lib64/libc-2.11.2.so) ==10856== by 0x4F1B727: getaliasbyname (in /lib64/libc-2.11.2.so) ==10856== by 0x4037EB: ??? (in /usr/bin/getent) ==10856== by 0x40413C: ??? (in /usr/bin/getent) ==10856== by 0x4E4AB7C: (below main) (in /lib64/libc-2.11.2.so) ==10856== ==10856== Invalid write of size 8 ==10856== at 0x559317B: _nss_nis_parse_aliasent (in /lib64/libnss_nis-2.11.2.so) ==10856== by 0x5593628: _nss_nis_getaliasbyname_r (in /lib64/libnss_nis-2.11.2.so) ==10856== by 0x4F1B904: getaliasbyname_r@@GLIBC_2.2.5 (in /lib64/libc-2.11.2.so) ==10856== by 0x4F1B727: getaliasbyname (in /lib64/libc-2.11.2.so) ==10856== by 0x4037EB: ??? (in /usr/bin/getent) ==10856== by 0x40413C: ??? (in /usr/bin/getent) ==10856== by 0x4E4AB7C: (below main) (in /lib64/libc-2.11.2.so) ==10856== Address 0x518e370 is 0 bytes after a block of size 1,024 alloc'd ==10856== at 0x4C26C3A: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10856== by 0x4F1B7DC: getaliasbyname (in /lib64/libc-2.11.2.so) ==10856== by 0x4037EB: ??? (in /usr/bin/getent) ==10856== by 0x40413C: ??? (in /usr/bin/getent) ==10856== by 0x4E4AB7C: (below main) (in /lib64/libc-2.11.2.so) ==10856== ==10856== Invalid read of size 8 ==10856== at 0x55931AC: _nss_nis_parse_aliasent (in /lib64/libnss_nis-2.11.2.so) ==10856== by 0x5593628: _nss_nis_getaliasbyname_r (in /lib64/libnss_nis-2.11.2.so) ==10856== by 0x4F1B904: getaliasbyname_r@@GLIBC_2.2.5 (in /lib64/libc-2.11.2.so) ==10856== by 0x4F1B727: getaliasbyname (in /lib64/libc-2.11.2.so) ==10856== by 0x4037EB: ??? (in /usr/bin/getent) ==10856== by 0x40413C: ??? (in /usr/bin/getent) ==10856== by 0x4E4AB7C: (below main) (in /lib64/libc-2.11.2.so) ==10856== Address 0x518e370 is 0 bytes after a block of size 1,024 alloc'd ==10856== at 0x4C26C3A: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10856== by 0x4F1B7DC: getaliasbyname (in /lib64/libc-2.11.2.so) ==10856== by 0x4037EB: ??? (in /usr/bin/getent) ==10856== by 0x40413C: ??? (in /usr/bin/getent) ==10856== by 0x4E4AB7C: (below main) (in /lib64/libc-2.11.2.so) ==10856== ------------------------------------------------------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=634389
https://bugzilla.novell.com/show_bug.cgi?id=634389#c
yang xiaoyu
participants (1)
-
bugzilla_noreply@novell.com