Summary: | ASTERISK-07727: [patch] asterisk crash randomly | ||
Reporter: | Martin Dachselt (mada123) | Labels: | |
Date Opened: | 2006-09-12 08:34:21 | Date Closed: | 2006-11-15 16:34:58.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) patch7973.diff | |
Description: | asterisk crashes randomly, approx 1-2 times per day. "Program terminated with signal 11, Segmentation fault" Backtrace of core dump ----------------------------------------------------------- #0 0xa7f0a024 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0 (gdb) bt #0 0xa7f0a024 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0 #1 0xa767acf1 in local_fixup (oldchan=0x8161248, newchan=0x82ec860) at ../include/asterisk/lock.h:601 #2 0x0806417b in ast_do_masquerade (original=0x8161248) at channel.c:3084 #3 0x0806674c in ast_read (chan=0x8161248) at channel.c:1845 #4 0x08069b83 in ast_channel_bridge (c0=0x82b1068, c1=0x8161248, config=0xa6e4dabc, fo=0xa6e4d2e8, rc=0xa6e4d2e4) at channel.c:3372 ASTERISK-1 0xa7a6641e in ast_bridge_call (chan=0x82b1068, peer=0x8161248, config=0xa6e4dabc) at res_features.c:1329 ASTERISK-2 0xa72c812e in try_calling (qe=0xa6e4dda0, options=<value optimized out>, announceoverride=<value optimized out>, url=0xa6e4dba8 "", go_on=0xa6e4df10) at app_queue.c:2401 ASTERISK-3 0xa72cbcde in queue_exec (chan=0x82b1068, data=0xa6e51fe8) at app_queue.c:3136 ASTERISK-4 0x0808f8c8 in pbx_extension_helper (c=0x82b1068, con=<value optimized out>, context=<value optimized out>, exten=0x82b12ac "10903", priority=7, label=0x0, callerid=0x0, action=1) at pbx.c:553 ASTERISK-5 0x0809162e in __ast_pbx_run (c=0x82b1068) at pbx.c:2230 ASTERISK-6 0x0809228c in pbx_thread (data=0x82b1068) at pbx.c:2517 ASTERISK-7 0xa7f08240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 ASTERISK-8 0xa7de329e in clone () from /lib/tls/i686/cmov/libc.so.6 full log around crahs ------------------------------------------------ Sep 12 12:44:00 VERBOSE[17582] logger.c: dialparties.agi: Starting New Dialparties.agi Sep 12 12:44:00 NOTICE[17582] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination) Sep 12 12:44:00 VERBOSE[17583] logger.c: dialparties.agi: Starting New Dialparties.agi Sep 12 12:44:00 NOTICE[17583] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination) Sep 12 12:44:00 NOTICE[17585] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination) Sep 12 12:44:00 VERBOSE[17594] logger.c: dialparties.agi: Starting New Dialparties.agi Sep 12 12:44:03 WARNING[17582] cdr.c: CDR on channel 'Local/10149@from-internal-662b,2' not posted Sep 12 12:44:03 WARNING[17582] cdr.c: CDR on channel 'Local/10149@from-internal-662b,2' lacks end Sep 12 12:44:03 WARNING[17583] cdr.c: CDR on channel 'Local/10124@from-internal-524d,2' not posted Sep 12 12:44:03 WARNING[17583] cdr.c: CDR on channel 'Local/10124@from-internal-524d,2' lacks end Sep 12 12:44:03 WARNING[17584] cdr.c: CDR on channel 'Local/10123@from-internal-555e,2' not posted Sep 12 12:44:03 WARNING[17584] cdr.c: CDR on channel 'Local/10123@from-internal-555e,2' lacks end Sep 12 12:44:03 WARNING[17585] cdr.c: CDR on channel 'Local/10119@from-internal-4273,2' not posted Sep 12 12:44:03 WARNING[17585] cdr.c: CDR on channel 'Local/10119@from-internal-4273,2' lacks end Sep 12 12:44:13 VERBOSE[17689] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log Sep 12 12:44:13 VERBOSE[17689] logger.c: == Parsing '/etc/asterisk/dnsmgr.conf': Sep 12 12:44:13 VERBOSE[17689] logger.c: == Parsing '/etc/asterisk/dnsmgr.c onf': Found Sep 12 12:44:13 VERBOSE[17689] logger.c: Asterisk Dynamic Loader loading preload modules: Sep 12 12:44:13 VERBOSE[17689] logger.c: == Parsing '/etc/asterisk/modules.conf': Sep 12 12:44:13 VERBOSE[17689] logger.c: == Parsing '/etc/asterisk/modules .conf': Found Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Ping Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Events Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Logoff Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Hangup Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Status Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Setvar Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Getvar Sep 12 12:44:13 VERBOSE[17689] logger.c: == Manager registered action Redirect ****** ADDITIONAL INFORMATION ****** - OS: Debian Etch - Kernel: 2.6.16 - Hardware Dell 1750, 2x2.8G TE411P - Usage Callcenter, approx 15 concurrent agents - Software Freepbx | ||
Comments: | By: Serge Vecher (serge-v) 2006-09-13 10:29:26 if you are using Freepbx, why are you reporting a bug on the Asterisk bug-tracker? Please don't open bug reports here unless you are using Asterisk. By: Martin Dachselt (mada123) 2006-09-13 10:40:49 Sorry, it seems i wasnt clear. We are using asterisk 1.2.12. I just mentioned freebpx because this is the frontend we are using. By: Serge Vecher (serge-v) 2006-09-13 12:30:07 Ok, thanks for clarification. Was Asterisk compiled with "make dont-optimize". If not, please recompile and redo the backtrace. By: Martin Dachselt (mada123) 2006-09-14 14:23:35 as requested i rebuilded asterisk with "dont-optimize". ASterisk crashed today one time with the exception: Core was generated by `/usr/sbin/asterisk -p -g -vvv -c'. Program terminated with signal 11, Segmentation fault. #0 0xa7f0f024 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0 (gdb) bt #0 0xa7f0f024 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0 #1 0xa767f24e in ast_mutex_lock (pmutex=0x0) at ../include/asterisk/lock.h:601 #2 0xa767f5db in local_fixup (oldchan=0x818fdf8, newchan=0x830f0e0) at chan_local.c:266 #3 0x080679ad in ast_do_masquerade (original=0x818fdf8) at channel.c:3084 #4 0x08062886 in ast_hangup (chan=0x818fdf8) at channel.c:1324 ASTERISK-1 0xa73cfb13 in try_calling (qe=0xa53afa94, options=0xa53afc1b "", announceoverride=0xa53afc1d "", url=0xa53afc1c "", go_on=0xa53afc04) at app_queue.c:2434 ASTERISK-2 0xa73d2c35 in queue_exec (chan=0x8298f70, data=0xa53b4054) at app_queue.c:3136 ASTERISK-3 0x08084664 in pbx_exec (c=0x8298f70, app=0x823c840, data=0xa53b4054, newstack=1) at pbx.c:553 ASTERISK-4 0x08087cb3 in pbx_extension_helper (c=0x8298f70, con=0x0, context=0x82990c0 "ext-queues", exten=0x82991b4 "10905", priority=7, label=0x0, callerid=0x823da80 "2086251766", action=1) at pbx.c:1697 ASTERISK-5 0x08088f77 in ast_spawn_extension (c=0x8298f70, context=0x82990c0 "ext-queues", exten=0x82991b4 "10905", priority=7, callerid=0x823da80 "2086251766") at pbx.c:2230 ASTERISK-6 0x080893c4 in __ast_pbx_run (c=0x8298f70) at pbx.c:2296 ASTERISK-7 0x0808a12b in pbx_thread (data=0x8298f70) at pbx.c:2517 ASTERISK-8 0xa7f0d240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 ASTERISK-9 0xa7de829e in clone () from /lib/tls/i686/cmov/libc.so.6 By: Anthony LaMantia (alamantia) 2006-10-05 16:49:19 i have uploaded a patch aginst 1.2 trunk, please try using this and report back with your findings. By: Matt O'Gorman (mogorman) 2006-11-01 12:16:28.000-0600 does this patch resolve the crash? By: Joshua C. Colp (jcolp) 2006-11-15 16:34:57.000-0600 Fixed in 1.2 as of revision 47711, 1.4 as of revision 47712, and trunk as of revision 47713. It's a modified fix from the patch as it's not possible for fixup to be called without valid channels. |