[asterisk-bugs] [Asterisk 0017294]: endless cycle with ast_channel->lock held leeds to complete system stuck

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 6 04:39:27 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17294 
====================================================================== 
Reported By:                under
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17294
Category:                   Core/Channels
Reproducibility:            sometimes
Severity:                   block
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0.26 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-06 04:39 CDT
Last Modified:              2010-05-06 04:39 CDT
====================================================================== 
Summary:                    endless cycle with ast_channel->lock held leeds to
complete system stuck
Description: 
(gdb) bt
https://issues.asterisk.org/view.php?id=0  decode_length (buf=0x361a55f0
"\200\022\200\nê\233ïè\22546mø:Ú\001|
\233\r\2137Ð\226\227±ER+\002\034/Þ", limit=32, len=0xbedcecec,
pvalue=0xbedcebd4) at asterisk/main/udptl.c:212
https://issues.asterisk.org/view.php?id=1  0x0816565d in decode_open_type
(buf=0x361a55f0
"\200\022\200\nê\233ïè\22546mø:Ú\001|
\233\r\2137Ð\226\227±ER+\002\034/Þ", limit=32, len=0xbedcecec,
p_object=0xbedcece0, p_num_octets=0x361b1590)
    at asterisk/main/udptl.c:246
https://issues.asterisk.org/view.php?id=2  0x08165e66 in udptl_rx_packet
(s=0x361a51a8, buf=0x361a55f0
"\200\022\200\nê\233ïè\22546mø:Ú\001|
\233\r\2137Ð\226\227±ER+\002\034/Þ", len=32) at
asterisk/main/udptl.c:453
https://issues.asterisk.org/view.php?id=3  0x0816701c in ast_udptl_read
(udptl=0x361a51a8) at
asterisk/main/udptl.c:746
https://issues.asterisk.org/view.php?id=4  0x2b252f28 in sip_rtp_read
(ast=0x35c7d1a8, p=0x35ae9268,
faxdetect=0xbedceea0) at asterisk/channels/chan_sip.c:6132
https://issues.asterisk.org/view.php?id=5  0x2b25349c in sip_read
(ast=0x35c7d1a8) at
asterisk/channels/chan_sip.c:6192
https://issues.asterisk.org/view.php?id=6  0x080b52f8 in __ast_read
(chan=0x35c7d1a8, dropaudio=0) at
asterisk/main/channel.c:2714
https://issues.asterisk.org/view.php?id=7  0x080b69f9 in ast_read
(chan=0x35c7d1a8) at
asterisk/main/channel.c:3012
https://issues.asterisk.org/view.php?id=8  0x0813cd13 in bridge_p2p_loop
(c0=0x35c7d1a8, c1=0x2d01a9a8,
p0=0x356f31a8, p1=0x2d0c11a8, timeoutms=-1, flags=0, fo=0xbedcf7f4,
rc=0xbedcf7f0, pvt0=0x35ae9268, pvt1=0x2d039268) at
asterisk/main/rtp.c:3782
https://issues.asterisk.org/view.php?id=9  0x0813e047 in ast_rtp_bridge
(c0=0x35c7d1a8, c1=0x2d01a9a8, flags=0,
fo=0xbedcf7f4, rc=0xbedcf7f0, timeoutms=-1) at asterisk/main/rtp.c:4058
https://issues.asterisk.org/view.php?id=10 0x080be076 in ast_channel_bridge
(c0=0x35c7d1a8, c1=0x2d01a9a8,
config=0xbedd045c, fo=0xbedcf7f4, rc=0xbedcf7f0) at
asterisk/main/channel.c:5059
https://issues.asterisk.org/view.php?id=11 0x0806c5b8 in ast_bridge_call
(chan=0x35c7d1a8, peer=0x2d01a9a8,
config=0xbedd045c) at asterisk/main/features.c:2292
https://issues.asterisk.org/view.php?id=12 0x2b5a9ad4 in dial_exec_full
(chan=0x35c7d1a8, data=0x2e641f8c,
peerflags=0xbedd07bc, continue_exec=0x0) at asterisk/apps/app_dial.c:2042
https://issues.asterisk.org/view.php?id=13 0x2b5aa1ee in dial_exec
(chan=0x35c7d1a8, data=0x2e641f8c) at
asterisk/apps/app_dial.c:2108
https://issues.asterisk.org/view.php?id=14 0x0811474b in pbx_exec (c=0x35c7d1a8,
app=0x2b4c5318, data=0x2e641f8c)
at asterisk/main/pbx.c:951
https://issues.asterisk.org/view.php?id=15 0x2b0d0d83 in app_dial_wrapper
(chan=0x35c7d1a8, data=0xbedd30d8) at
app_dial_wrapper/app_dial_wrapper.cxx:165
https://issues.asterisk.org/view.php?id=16 0x0811474b in pbx_exec (c=0x35c7d1a8,
app=0x291996c8, data=0xbedd30d8)
at asterisk/main/pbx.c:951
https://issues.asterisk.org/view.php?id=17 0x0811c5c8 in pbx_extension_helper
(c=0x35c7d1a8, con=0x0,
context=0x35c7d3d4 "dial", exten=0x35c7d424 "s", priority=2, label=0x0,
callerid=0x2d011e68 "4992705543", action=E_SPAWN, found=0xbedd5848,
combined_find_spawn=1)
    at asterisk/main/pbx.c:3141
https://issues.asterisk.org/view.php?id=18 0x0811e453 in ast_spawn_extension
(c=0x35c7d1a8, context=0x35c7d3d4
"dial", exten=0x35c7d424 "s", priority=2, callerid=0x2d011e68 "4992705543",
found=0xbedd5848, combined_find_spawn=1) at asterisk/main/pbx.c:3608
https://issues.asterisk.org/view.php?id=19 0x2b5c1b2c in _macro_exec
(chan=0x35c7d1a8, data=0x336fd84c,
exclusive=0) at asterisk/apps/app_macro.c:336
https://issues.asterisk.org/view.php?id=20 0x2b5c3ab0 in macro_exec
(chan=0x35c7d1a8, data=0x336fd84c) at
asterisk/apps/app_macro.c:499
https://issues.asterisk.org/view.php?id=21 0x0811474b in pbx_exec (c=0x35c7d1a8,
app=0x2b4c6aa8, data=0x336fd84c)
at asterisk/main/pbx.c:951
https://issues.asterisk.org/view.php?id=22 0x296384ea in hunt_cycle
(chan=0x35c7d1a8, router=@0xbedd7a7c,
caller_id=@0xbedd7aa8, callee_id=@0xbedd7aa4, huntstatus=@0xbedd882c) at
res_smartswitch/hunt.cxx:123
https://issues.asterisk.org/view.php?id=23 0x2963971e in hunt (chan=0x35c7d1a8,
router=@0xbedd7a7c,
caller_id=@0xbedd7aa8, callee_id=@0xbedd7aa4, huntstatus=@0xbedd882c,
nof_cycles=5) at res_smartswitch/hunt.cxx:178
https://issues.asterisk.org/view.php?id=24 0x2b1c317d in handle_originator_call
(chan=0x35c7d1a8, id=19,
caller_id=@0xbedd8870, callee_id=@0xbedd886c, huntstatus=@0xbedd882c) at
app_softswitch/handle_originator_call.cxx:77
https://issues.asterisk.org/view.php?id=25 0x2b1b0fe3 in app_softswitch
(chan=0x35c7d1a8, data=0xbeddaab8) at
app_softswitch/app_softswitch.cxx:84
https://issues.asterisk.org/view.php?id=26 0x0811474b in pbx_exec (c=0x35c7d1a8,
app=0x291bc328, data=0xbeddaab8)
at asterisk/main/pbx.c:951
https://issues.asterisk.org/view.php?id=27 0x0811c5c8 in pbx_extension_helper
(c=0x35c7d1a8, con=0x0,
context=0x35c7d3d4 "dial", exten=0x35c7d424 "s", priority=1, label=0x0,
callerid=0x35c03f28 "907784360897", action=E_SPAWN, found=0xbeddcf0c,
combined_find_spawn=1)
    at asterisk/main/pbx.c:3141
https://issues.asterisk.org/view.php?id=28 0x0811e453 in ast_spawn_extension
(c=0x35c7d1a8, context=0x35c7d3d4
"dial", exten=0x35c7d424 "s", priority=1, callerid=0x35c03f28
"907784360897", found=0xbeddcf0c, combined_find_spawn=1) at
asterisk/main/pbx.c:3608
https://issues.asterisk.org/view.php?id=29 0x0811eb33 in __ast_pbx_run
(c=0x35c7d1a8, args=0x0) at
asterisk/main/pbx.c:3699
https://issues.asterisk.org/view.php?id=30 0x0811fc9f in pbx_thread
(data=0x35c7d1a8) at
asterisk/main/pbx.c:3972
https://issues.asterisk.org/view.php?id=31 0x0816d9f2 in dummy_start
(data=0x35c04628) at
asterisk/main/utils.c:861
https://issues.asterisk.org/view.php?id=32 0x2821b73f in pthread_getprio () from
/lib/libthr.so.3
https://issues.asterisk.org/view.php?id=33 0xbdaaefec in ?? ()

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 688922128 (do_monitor           started at [20526]
asterisk/channels/chan_sip.c restart_monitor())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/channels/chan_sip.c):
MUTEX 20466 do_monitor dialog 0x35ae91a8 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690330864 (netconsole           started at [ 1086]
asterisk/main/asterisk.c listener())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690328416 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX 2553 __ast_read
&chan->lock_dont_use 0x35c7d234 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1
(asterisk/channels/chan_sip.c): MUTEX 6191 sip_read p
0x35ae91a8 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 690329504 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 688918864 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754349728 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754362240 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690330048 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754351904 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754361424 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754357616 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754364144 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 759661136 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690326512 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 759658416 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690331136 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 759660320 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754358704 (netconsole           started at [ 1086]
asterisk/main/asterisk.c listener())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754356256 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754355984 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690328144 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754363328 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754363872 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754352176 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 754362784 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)
=== -------------------------------------------------------------------
===
=== Thread ID: 690324880 (pbx_thread           started at [ 3993]
asterisk/main/pbx.c ast_pbx_start())
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=0
(asterisk/main/channel.c): MUTEX
1131 channel_find_locked &c->lock_dont_use 0x35c7d234 (0)

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-06 04:39 under          New Issue                                    
2010-05-06 04:39 under          Asterisk Version          => 1.6.0.26        
2010-05-06 04:39 under          Regression                => No              
2010-05-06 04:39 under          SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list