[Asterisk-Users] Asterisk 1.2.7.1 bad file descriptor

Administrator TOOTAI admin at tootai.net
Thu Jun 8 06:54:16 MST 2006


Hi all,

could someone tell me what this does mean "bad file descriptor" when
trying to start asterisk. It goes till the CLI command and then die with
this message. Below an strace output from asterisk -vvvvvvvvvc

It's on debian Sarge kernel 2.6.7 with packages from debian VoIP team.
The server was running fine till now with this version. Filesystem is 
ok, checked with fsck (ext3).

Thanks

stat64("/etc/asterisk/enum.conf", {st_mode=S_IFREG|0660, st_size=586,
...}) = 0
   == Parsing '/etc/asterisk/enum.conf': ) = 61n"..., 61
open("/etc/asterisk/enum.conf", O_RDONLY) = 9
write(1, "Found\n", 6Found
)                  = 6
fstat64(9, {st_mode=S_IFREG|0660, st_size=586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4103f000
read(9, ";\n; ENUM Configuration for resol"..., 4096) = 586
read(9, "", 4096)                       = 0
close(9)                                = 0
munmap(0x4103f000, 4096)                = 0
Asterisk Ready.[1;37;40mAsterisk Ready.\n", 27
) = 27
write(1, "\33[0;37;40m", 10)            = 10
rt_sigprocmask(SIG_UNBLOCK, [HUP INT PIPE TERM WINCH], NULL, 8) = 0
time([1149625396])                      = 1149625396
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, TIOCGWINSZ, {ws_row=37, ws_col=111, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=37, ws_col=111, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo
...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x4003e1a0, [], 0}, {0x80a6420, [INT],
SA_RESTART}, 8) = 0
rt_sigaction(SIGTERM, {0x4003e1a0, [], 0}, {0x80a6420, [TERM],
SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {0x4003e1a0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGALRM, {0x4003e1a0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTSTP, {0x4003e1a0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTTOU, {0x4003e1a0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTTIN, {0x4003e1a0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGWINCH, {0x4003e270, [], SA_RESTART}, {SIG_DFL}, 8) = 0
write(1, "*CLI> ", 6*CLI> )                   = 6
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(-1, 0xbffff830, 511)               = -1 EBADF (Bad file descriptor)
write(2, "\nDisconnected from Asterisk serv"..., 57
) = 57
open("/home/dh/.asterisk_history", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 9
write(9, "", 0)                         = 0
close(9)                                = 0
write(1, "Executing last minute cleanups\n", 31Executing last minute
cleanups
) = 31
tgkill(2974, 2974, SIGURG)              = 0
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x80a5cc0, [URG], SA_RESTART}, {0x80a5cc0, [URG],
SA_RESTART}, 8) = 0
sigreturn()                             = ? (mask now [])
   == Destroying musiconhold processes;40mDestro"..., 59
) = 59
tgkill(2974, 2974, SIGURG)              = 0
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x80a5cc0, [URG], SA_RESTART}, {0x80a5cc0, [URG],
SA_RESTART}, 8) = 0
sigreturn()                             = ? (mask now [])
time(NULL)                              = 1149625396
kill(2980, SIGKILL)                     = 0
poll([{fd=8, events=POLLIN|POLLPRI, revents=POLLIN}], 1, 100) = 1
read(8, "\1\0\377\377\1\0\377\377\0\0\0\0\0\0\1\0\377\377\0\0\0"...,
8192) = 8192
time(NULL)                              = 1149625396
poll([{fd=8, events=POLLIN|POLLPRI, revents=POLLHUP}], 1, 100) = 1
read(8, "", 8192)                       = 0
close(8)                                = 0
Asterisk cleanly ending (0). ending (0).\n", 30
) = 30
tgkill(2974, 2974, SIGURG)              = 0
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x80a5cc0, [URG], SA_RESTART}, {0x80a5cc0, [URG],
SA_RESTART}, 8) = 0
sigreturn()                             = ? (mask now [])
close(3)                                = 0
unlink("/var/run/asterisk/asterisk.pid") = 0
write(1, "\33[0m", 4)                   = 4
munmap(0x40407000, 4096)                = 0
munmap(0x40405000, 4096)                = 0
munmap(0x40018000, 4096)                = 0
exit_group(0)                           = ?

-- 
Daniel




More information about the asterisk-users mailing list