[Home]

Summary:ASTERISK-11605: asterisk random crashes
Reporter:Aleksey Kishkin (walrus)Labels:
Date Opened:2008-03-10 07:38:57Date Closed:2011-06-07 14:00:56
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I have a callcenter on asterisk 1.4.18. Workload - about 40 talks simultaneously.  And about once every 2..3 day I see a crashes of asterisk.

Server:  uname -a
Linux ast2007 2.6.20-1.2962.fc6 #1 SMP Tue Jun 19 18:50:05 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

In the /var/log/messages
Mar 10 11:46:02 ast2007 kernel: asterisk[2288]: segfault at 0000000000043058 rip 00000000004a68df rsp 000000004064fd00 error 4
Mar 10 11:46:48 ast2007 kernel: asterisk[4415] general protection rip:2aaaaaed22b9 rsp:4077bce0 error:0.

And in the /tmp appears a couple of coredumps.
First is:
Core was generated by `/usr/sbin/asterisk -n -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  ast_translator_free_path (p=0x43000) at translate.c:143
143             if (ast_test_flag(&pvt->f, AST_FRFLAG_FROM_TRANSLATOR)) {
(gdb) bt
#0  ast_translator_free_path (p=0x43000) at translate.c:143
#1  0x000000000043b0a8 in ast_do_masquerade (original=0xaea720) at channel.c:1401
#2  0x000000000043bf06 in ast_waitfor_nandfds (c=0x406500e0, n=1, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0x4065303c) at channel.c:1645
#3  0x000000000043c677 in ast_waitfor_n (c=0x43000, n=1, ms=<value optimized out>) at channel.c:1764
#4  0x000000000042bc7e in autoservice_run (ign=<value optimized out>) at autoservice.c:104
ASTERISK-1  0x00000000004a98bc in dummy_start (data=<value optimized out>) at utils.c:852
ASTERISK-2  0x00002aaaaaed0305 in start_thread () from /lib64/libpthread.so.0
ASTERISK-3  0x00002aaaab8a750d in clone () from /lib64/libc.so.6
ASTERISK-4  0x0000000000000000 in ?? ()


Second is:
Core was generated by `/usr/sbin/asterisk -n -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002aaaaaed22b9 in pthread_mutex_lock () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00002aaaaaed22b9 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x000000000043b061 in ast_do_masquerade (original=0x7d4290) at /home/walrus/asterisk-1.4.18/include/asterisk/lock.h:701
#2  0x000000000043bf06 in ast_waitfor_nandfds (c=0x4077c0e0, n=1, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0x4077f03c) at channel.c:1645
#3  0x000000000043c677 in ast_waitfor_n (c=0x61772e7d4449461d, n=1, ms=<value optimized out>) at channel.c:1764
#4  0x000000000042bc7e in autoservice_run (ign=<value optimized out>) at autoservice.c:104
ASTERISK-1  0x00000000004a98bc in dummy_start (data=<value optimized out>) at utils.c:852
ASTERISK-2  0x00002aaaaaed0305 in start_thread () from /lib64/libpthread.so.0
ASTERISK-3  0x00002aaaab8a750d in clone () from /lib64/libc.so.6
ASTERISK-4  0x0000000000000000 in ?? ()


Please let me know if you need additional info
Comments:By: Joshua C. Colp (jcolp) 2008-03-10 09:01:00

This issue has already been solved in SVN and will be fixed in the next release.