Package: dpkg
Version: 1.14.16.1
Severity: important
Starting asterisk using start-stop-daemon:
# start-stop-daemon --start --group asterisk --pidfile
/var/run/asterisk/asterisk.pid --exec /usr/sbin/asterisk -- -U asterisk
Segmentation fault
The problem is the "--group asterisk":
Using GDB (don't know how to get debugging symbols for start-stop-daemon
:-/):
# gdb --args start-stop-daemon --start --group asterisk --pidfile
/var/run/asterisk/asterisk.pid --exec /usr/sbin/asterisk -- -U asterisk
GNU gdb 6.7.1-debian
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /sbin/start-stop-daemon --start --group asterisk
--pidfile /var/run/asterisk/asterisk.pid --exec /usr/sbin/asterisk -- -U
asterisk
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program received signal SIGSEGV, Segmentation fault.
0xb7e5ddec in strcmp () from /lib/libc.so.6
(gdb) bt
#0 0xb7e5ddec in strcmp () from /lib/libc.so.6
#1 0xb7de7b6d in _nss_compat_initgroups_dyn () from /lib/libnss_compat.so.2
#2 0xb7e7ead6 in ?? () from /lib/libc.so.6
#3 0xb7e7ecbd in initgroups () from /lib/libc.so.6
#4 0x0804ab75 in ?? ()
#5 0x00000000 in ?? ()
Using strace:
# strace start-stop-daemon --start --group asterisk --pidfile
/var/run/asterisk/asterisk.pid --exec /usr/sbin/asterisk -- -U asterisk
chdir("/") = 0
getgid32() = 0
getgroups32(0, []) = 0
getgroups32(0, []) = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
read(3, "65536\n", 31) = 6
close(3) = 0
open("/etc/group", O_RDONLY|0x80000 /* O_??? */) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
_llseek(3, 0, [0], SEEK_CUR) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=637, ...}) = 0
mmap2(NULL, 637, PROT_READ, MAP_SHARED, 3, 0) = 0xb7ef1000
_llseek(3, 637, [637], SEEK_SET) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 31911 detached
Starting without "--group asterisk" works (but is not a fix, of course)
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-028stab053 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages dpkg depends on:
ii coreutils 5.97-5.7 The GNU core utilities
ii libc6 2.7-6 GNU C Library: Shared libraries
dpkg recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]