Summary: | ASTERISK-12005: [patch] Zap channels locking, staying in 'Rsrv' Mode and phone muted | ||
Reporter: | Fabiano Heringer (fabianoheringer) | Labels: | |
Date Opened: | 2008-05-09 19:06:53 | Date Closed: | 2008-06-24 20:06:30 |
Priority: | Blocker | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_zap |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20080612__bug12621.diff.txt | |
Description: | For some reason, that I could not identify, some zap channels of my TDM2400 are showed in Rsrv mode, and the phone stay muted, I can only reset the channel killing forced asterisk and starting again (when I type core show channels asterisk hangs). I´m open for connection via SSH for informations. | ||
Comments: | By: Tilghman Lesher (tilghman) 2008-06-03 13:07:27 Please recompile with the flag DEBUG_THREADS and upload the output of 'core show locks'. By: Fabiano Heringer (fabianoheringer) 2008-06-12 19:25:03 hi, I compiled 1.4.20.1 version with DEBUG_THREADS, now I have a locked channel... here´s the "core show locks" output: asterisk*CLI> ======================================================================= === Currently Held Locks ============================================== ======================================================================= === === <file> <line num> <function> <lock name> <lock addr> (times locked) === === Thread ID: 3083488176 (netconsole started at [ 1011] asterisk.c listener()) === ---> Tried and failed to get Lock #0 (channel.c): MUTEX 1065 channel_find_locked (channel lock) 0x8304728 (0) === ------------------------------------------------------------------- === === Thread ID: 3002715056 (ss_thread started at [ 6646] chan_zap.c handle_init_event()) === ---> Lock #0 (channel.c): MUTEX 1950 __ast_read (channel lock) 0x82fc960 (1) === ---> Waiting for Lock #1 (chan_zap.c): MUTEX 4647 zt_read &p->lock 0x820db70 (1) === --- ---> Locked Here: chan_zap.c line 4632 (zt_exception) === ------------------------------------------------------------------- === === Thread ID: 3002469296 (ss_thread started at [ 4302] chan_zap.c zt_handle_event()) === ---> Lock #0 (channel.c): MUTEX 1950 __ast_read (channel lock) 0x8304728 (1) === ---> Lock #1 (chan_zap.c): MUTEX 4632 zt_exception &p->lock 0x820db70 (1) === ---> Waiting for Lock #2 (channel.c): MUTEX 897 ast_queue_frame (channel lock) 0x82fc960 (1) === --- ---> Locked Here: channel.c line 1950 (__ast_read) === ------------------------------------------------------------------- === === Thread ID: 3003452336 (ss_thread started at [ 6679] chan_zap.c handle_init_event()) === ---> Tried and failed to get Lock #0 (channel.c): MUTEX 1065 channel_find_locked (channel lock) 0x8304728 (0) === ------------------------------------------------------------------- === ======================================================================= By: Tilghman Lesher (tilghman) 2008-06-12 21:15:59 This patch should fix the deadlock. Please apply, test, and get back to me with a note after you've confirmed that it does (or does not) fix the issue. By: Tilghman Lesher (tilghman) 2008-06-24 14:47:31 fabianoheringer: need some feedback here. By: Fabiano Heringer (fabianoheringer) 2008-06-24 18:09:04 Sorry, the patch look likes corrected the error, no crash anymore! Thanks By: Digium Subversion (svnbot) 2008-06-24 19:39:16 Repository: asterisk Revision: 124965 U branches/1.4/channels/chan_dahdi.c ------------------------------------------------------------------------ r124965 | tilghman | 2008-06-24 19:39:11 -0500 (Tue, 24 Jun 2008) | 7 lines Pvt deadlock causes some channels to get stuck in Reserved status. (closes issue ASTERISK-12005) Reported by: fabianoheringer Patches: 20080612__bug12621.diff.txt uploaded by Corydon76 (license 14) Tested by: fabianoheringer ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=124965 By: Digium Subversion (svnbot) 2008-06-24 20:01:24 Repository: asterisk Revision: 124966 _U trunk/ U trunk/channels/chan_dahdi.c U trunk/include/asterisk/lock.h ------------------------------------------------------------------------ r124966 | tilghman | 2008-06-24 20:01:22 -0500 (Tue, 24 Jun 2008) | 15 lines Merged revisions 124965 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124965 | tilghman | 2008-06-24 19:46:24 -0500 (Tue, 24 Jun 2008) | 7 lines Pvt deadlock causes some channels to get stuck in Reserved status. (closes issue ASTERISK-12005) Reported by: fabianoheringer Patches: 20080612__bug12621.diff.txt uploaded by Corydon76 (license 14) Tested by: fabianoheringer ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=124966 By: Digium Subversion (svnbot) 2008-06-24 20:06:30 Repository: asterisk Revision: 124967 _U branches/1.6.0/ U branches/1.6.0/channels/chan_dahdi.c U branches/1.6.0/include/asterisk/lock.h ------------------------------------------------------------------------ r124967 | tilghman | 2008-06-24 20:06:27 -0500 (Tue, 24 Jun 2008) | 23 lines Merged revisions 124966 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r124966 | tilghman | 2008-06-24 20:08:37 -0500 (Tue, 24 Jun 2008) | 15 lines Merged revisions 124965 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124965 | tilghman | 2008-06-24 19:46:24 -0500 (Tue, 24 Jun 2008) | 7 lines Pvt deadlock causes some channels to get stuck in Reserved status. (closes issue ASTERISK-12005) Reported by: fabianoheringer Patches: 20080612__bug12621.diff.txt uploaded by Corydon76 (license 14) Tested by: fabianoheringer ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=124967 |