[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1211: libc __nis_getgrnam() segfaults for dpkg when using NIS

Package: libc
Version: 4.6.27-5

When unpackaing packages with dpkg an NIS is turned on for groups ('+:::'
entry last in /etc/group) __nis_getgrnam() will segfault on line
grp/getgrnam.c:121. Transcript from gdb follows:
bash# gdb ~ac/dpkg
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.14 (i486-debian-linux), Copyright 1995 Free Software Foundation, Inc...
(gdb) run -i es-0.84-1.deb
Starting program: /home/ac/dpkg -i es-0.84-1.deb
(Reading database ...
dpkg: serious warning: files list file for package `bison' missing,
assuming pac
kage has no files currently installed.
8671 files and directories currently installed.)
Preparing to replace es (using es-0.84-1.deb) ...
Unpacking replacement es ...

Program received signal SIGSEGV, Segmentation fault.
0x1db22 in __nis_getgrnam (name=0x5ee01 "", more_members=0x4aec0,
    at getgrnam.c:121
getgrnam.c:121: No such file or directory.
(gdb) bt
#0  0x1db22 in __nis_getgrnam (name=0x5ee01 "", more_members=0x4aec0,
    info=0x4aee0) at getgrnam.c:121
#1  0x1d961 in getgrnam (name=0xbffff801 "") at getgrnam.c:68
#2  0x18440 in DecodeTarHeader (block=0xbffff6d8 "", d=0xbffff6b4)
    at tarfn.c:61
#3  0x1866b in TarExtractor (userData=0x3ce2c, functions=0x6dcc) at
#4  0x8915 in process_archive (filename=0xbffffeb5 "es-0.84-1.deb")
    at processarc.c:423
#5  0x6cbe in archivefiles (argv=0xbffffe58) at archives.c:513
#6  0x24dd in main (argc=3, argv=0xbffffe58) at main.c:262
(gdb) quit
The program is running.  Quit anyway (and kill it)? (y or n) y
dpkg-0.93.67 was compiled with debugging and without optimization.

Anders Chrigstrom               Email: ac@netg.se
TerraTel AB                       Tfn: +46 31 28 03 73

Reply to: