[Home]

Summary:ASTERISK-14517: Crash on chan_local
Reporter:Joel Vandal (jvandal)Labels:
Date Opened:2009-07-23 14:58:56Date Closed:2009-11-10 15:52:11.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/Jitterbuffer
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bt_full-2.txt
( 1) gdb-1.txt
( 2) gdb-2.txt
Description:Using SVN 1.4 revision 207360, I have a server that crashed 2 times this morning. Sorry but I still have some difficulty to fully understand coredump.

****** ADDITIONAL INFORMATION ******

Thread 1 (process 17903):
#0  0x008d59a3 in strlen () from /lib/tls/libc.so.6
#1  0x080ac86b in ast_frdup ()
#2  0x08084868 in __ast_queue_frame ()
#3  0x08084c9f in ast_queue_frame ()
#4  0x00afadce in local_queue_frame (p=0xb7cd60d8, isoutbound=1, f=0x3a38410,
   us=0xb7812810, us_locked=1) at chan_local.c:211
ASTERISK-1  0x00afb9e8 in local_write (ast=0xb7812810, f=0x3a38410) at chan_local.c:330
ASTERISK-2  0x0808a714 in ast_write ()
ASTERISK-3  0x08057282 in jb_get_and_deliver ()
ASTERISK-4  0x0805703a in ast_jb_get_and_deliver ()
ASTERISK-5  0x0808e59c in ast_generic_bridge ()
ASTERISK-6 0x0808f547 in ast_channel_bridge ()
ASTERISK-7 0x00fd0fe6 in ast_bridge_call (chan=0xb7812810, peer=0x980cbe0,
   config=0x3a38a10) at res_features.c:1949
ASTERISK-8 0x00bb935f in dial_exec_full (chan=0xb7812810, data=0x3a3966a,
   peerflags=0x3a39370, continue_exec=0x0) at app_dial.c:1825
ASTERISK-9 0x00bb9632 in dial_exec (chan=0xb7812810, data=0x3a3966a)
   at app_dial.c:1864
ASTERISK-10 0x080c9952 in pbx_exec ()
ASTERISK-11 0x00e3b8da in handle_exec (chan=0xb7812810, agi=0x3a39ed0, argc=3,
   argv=0x3a39420) at res_agi.c:1143
ASTERISK-12 0x00e3ca6a in agi_handle_command (chan=0xb7812810, agi=0x3a39ed0,
   buf=0x3a39660 "EXEC") at res_agi.c:1864
ASTERISK-13 0x00e3cf5f in run_agi (chan=0xb7812810,
   request=0x3a39f00 "/var/www/scopserv/telephony/scripts/agi/dial.php",
   agi=0x3a39ed0, pid=17904, status=0x3a39ecc, dead=0) at res_agi.c:1975
ASTERISK-14 0x00e3d969 in agi_exec_full (chan=0xb7812810, data=0x3a3ca60, enhanced=0,
   dead=0) at res_agi.c:2144
ASTERISK-15 0x00e3dadd in agi_exec (chan=0xb7812810, data=0x3a3ca60) at res_agi.c:2176
ASTERISK-16 0x080c9952 in pbx_exec ()
ASTERISK-17 0x080ccd39 in pbx_extension_helper ()
ASTERISK-18 0x080cdcbe in ast_spawn_extension ()
ASTERISK-19 0x00e69629 in _macro_exec (chan=0xb7812810, data=0x3a41f50, exclusive=0)
   at app_macro.c:352
ASTERISK-20 0x00e6a864 in macro_exec (chan=0xb7812810, data=0x3a41f50)
   at app_macro.c:544
ASTERISK-21 0x080c9952 in pbx_exec ()
ASTERISK-22 0x080ccd39 in pbx_extension_helper ()
ASTERISK-23 0x080cdcbe in ast_spawn_extension ()
ASTERISK-24 0x080ce0c7 in __ast_pbx_run ()
ASTERISK-25 0x080cee7f in pbx_thread ()
ASTERISK-26 0x0810b6c7 in dummy_start ()
ASTERISK-27 0x009ca3cc in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-28 0x009351ae in clone () from /lib/tls/libc.so.6
Comments:By: Joel Vandal (jvandal) 2009-07-24 15:31:22

Have disable the Jitter Buffer on SIP and Zap channels and all look to work correctly, server up since 24 hours, about 2000 calls.

With jitterbuffer, it crashed 3-4 times daily.

Not sure if fully related, but on trace we see the following line, why we disabled JB :

0000007 0x08057282 in jb_get_and_deliver ()
0000008 0x0805703a in ast_jb_get_and_deliver ()

By: Joel Vandal (jvandal) 2009-08-26 10:46:56

Just got same problem on another server today and have uploaded new back trace. Meantime, I've ask the customer to disable Jitterbuffer to see if it help.

By: Digium Subversion (svnbot) 2009-11-06 10:46:56.000-0600

Repository: asterisk
Revision: 228409

U   branches/1.4/main/abstract_jb.c

------------------------------------------------------------------------
r228409 | file | 2009-11-06 10:46:56 -0600 (Fri, 06 Nov 2009) | 7 lines

Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.

(closes issue ASTERISK-14517)
Reported by: jvandal
(closes issue ASTERISK-14646)
Reported by: covici

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=228409

By: Digium Subversion (svnbot) 2009-11-06 10:47:59.000-0600

Repository: asterisk
Revision: 228410

_U  trunk/
U   trunk/main/abstract_jb.c

------------------------------------------------------------------------
r228410 | file | 2009-11-06 10:47:58 -0600 (Fri, 06 Nov 2009) | 14 lines

Merged revisions 228409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7 lines
 
 Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.
 
 (closes issue ASTERISK-14517)
 Reported by: jvandal
 (closes issue ASTERISK-14646)
 Reported by: covici
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=228410

By: Digium Subversion (svnbot) 2009-11-06 10:49:12.000-0600

Repository: asterisk
Revision: 228411

_U  branches/1.6.0/
U   branches/1.6.0/main/abstract_jb.c

------------------------------------------------------------------------
r228411 | file | 2009-11-06 10:49:12 -0600 (Fri, 06 Nov 2009) | 21 lines

Merged revisions 228410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r228410 | file | 2009-11-06 12:42:23 -0400 (Fri, 06 Nov 2009) | 14 lines
 
 Merged revisions 228409 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7 lines
   
   Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.
   
   (closes issue ASTERISK-14517)
   Reported by: jvandal
   (closes issue ASTERISK-14646)
   Reported by: covici
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=228411

By: Digium Subversion (svnbot) 2009-11-06 10:49:59.000-0600

Repository: asterisk
Revision: 228412

_U  branches/1.6.1/
U   branches/1.6.1/main/abstract_jb.c

------------------------------------------------------------------------
r228412 | file | 2009-11-06 10:49:58 -0600 (Fri, 06 Nov 2009) | 21 lines

Merged revisions 228410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r228410 | file | 2009-11-06 12:42:23 -0400 (Fri, 06 Nov 2009) | 14 lines
 
 Merged revisions 228409 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7 lines
   
   Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.
   
   (closes issue ASTERISK-14517)
   Reported by: jvandal
   (closes issue ASTERISK-14646)
   Reported by: covici
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=228412

By: Digium Subversion (svnbot) 2009-11-06 10:50:32.000-0600

Repository: asterisk
Revision: 228413

_U  branches/1.6.2/
U   branches/1.6.2/main/abstract_jb.c

------------------------------------------------------------------------
r228413 | file | 2009-11-06 10:50:32 -0600 (Fri, 06 Nov 2009) | 21 lines

Merged revisions 228410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r228410 | file | 2009-11-06 12:42:23 -0400 (Fri, 06 Nov 2009) | 14 lines
 
 Merged revisions 228409 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7 lines
   
   Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.
   
   (closes issue ASTERISK-14517)
   Reported by: jvandal
   (closes issue ASTERISK-14646)
   Reported by: covici
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=228413