[Pkg-shadow-devel] Bug#317366: passwd: pwck/grpck Segmentation fault when making changes to shadow/gshadow file

Daniel C. Chao "Daniel C. Chao" <danchao@o3.net>, 317366@bugs.debian.org
Fri, 08 Jul 2005 06:39:02 +0800


Package: passwd
Version: 1:4.0.3-36
Severity: normal

# grpck
no matching group file entry in /etc/gshadow
add group `man' in /etc/gshadow? y
Segmentation fault
#

This is the strace result:
write(1, "add group `man\' in /etc/gshadow?"..., 33add group `man' in
/etc/gshadow? ) = 33
read(0, y
"y\n", 1024)                    = 2
time([1120775798])                      = 1120775798
open("/etc/localtime", O_RDONLY)        = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=268, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40185000
read(6, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0\0\0\2\0"...,
4096) = 268
close(6)                                = 0
munmap(0x40185000, 4096)                = 0
getpid()                                = 18788
rt_sigaction(SIGPIPE, {0x40121a70, [], 0}, {SIG_DFL}, 8) = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 6
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
connect(6, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1 EPROTOTYPE
(Protocol wrong type for socket)
close(6)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 6
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
connect(6, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(6, "<86>Jul  8 06:36:38 grpck[18788]"..., 68, 0) = 68
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=zh_TW, LC_CTYPE=zh_TW (charmap=BIG5)

Versions of packages passwd depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libpam-modules              0.76-22      Pluggable Authentication Modules f
ii  libpam0g                    0.76-22      Pluggable Authentication Modules l
ii  login                       1:4.0.3-36   system login tools

passwd recommends no packages.

-- debconf information:
  passwd/password-mismatch:
* passwd/username: danchao
  passwd/password-empty:
* passwd/md5: true
* passwd/shadow: true
  passwd/username-bad:
* passwd/user-fullname: Daniel Chao
* passwd/make-user: true