Package: user-mode-linux
Version: 2.6.26-1um-2

        When started under user-mode-linux, asterisk (as of
        1:1.4.21.2~dfsg-3) hangs, with the last lines of the strace(1)
        output being like the following:

# strace asterisk -p -U asterisk 
...
fstat64(3, {st_mode=S_IFREG|0644, st_size=925, ...}) = 0
mmap2(NULL, 925, PROT_READ, MAP_SHARED, 3, 0) = 0x4001d000
_llseek(3, 925, [925], SEEK_SET)        = 0
munmap(0x4001d000, 925)                 = 0
close(3)                                = 0
prctl(0x8, 0x1, 0, 0, 0)                = 0
setgid32(103)                           = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
read(3, "65536\n"..., 31)               = 6
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT
close(3)                                = 0
open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
_llseek(3, 0, [0], SEEK_CUR)            = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=519, ...}) = 0
mmap2(NULL, 519, PROT_READ, MAP_SHARED, 3, 0) = 0x4001d000
_llseek(3, 519, [519], SEEK_SET)        = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=519, ...}) = 0
munmap(0x4001d000, 519)                 = 0
close(3)                                = 0
setgroups32(3, [103, 20, 29])           = 0
setuid32(102)                           = 0

        Also, $ ps ax shows:

$ ps ax | grep aste 
 1075 ?        Rsl    0:00 /usr/sbin/asterisk -p -U asterisk
...
$ 

        However, when started without the `-U <user>' option, it seems
        to start just fine, like:

# su -p asterisk -c 'asterisk -d -c -p'
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
[ Booting...
[ Reading Master Configuration ]
Parsing /etc/asterisk/asterisk.conf
[ Initializing Custom Configuration Options ]
Parsing /etc/asterisk/extconfig.conf
Parsing /etc/asterisk/logger.conf
[Mar  8 14:38:19] NOTICE[1110]: cdr.c:1373 do_reload: CDR simple logging 
enabled.
[Mar  8 14:38:19] NOTICE[1110]: loader.c:859 load_modules: 160 modules will be 
loaded.
...

-- 
FSF associate member #7257



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to