[Home]

Summary:ASTERISK-12258: Asterisk-1.4.21 becomes unresponsive
Reporter:destiny6628 (destiny6628)Labels:
Date Opened:2008-06-24 10:44:32Date Closed:2008-07-05 10:14:20
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:Applications/app_dial
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) dalvir24jun.txt
( 1) gaurav.txt
Description:Hi

We are using asterisk-1.4.21 , libpri-1.4.4 and zaptel-1.4.11 and during the calling on daily basis asterisk goes unresponsive and both outbound and inbound calls stops .

At this point of time we have to stop asterisk and start it again .

We are using Single E1 card with asterisk and dialing on zap channels and transferring the calls on SIP channels .



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

We have tried taking the output of show channels which was

show channels
Channel              Location             State   Application(Data)
Zap/pseudo-139279208 s@default:1          Rsrvd   (None)
SIP/104-09a51510     50104@local:1        Up      MeetMe(50104)

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

Then we tried taking the output of core show locks but that was also unresponsive

hyd-static-171-8-12-61*CLI> core show locks
hyd-static-171-8-12-61*CLI>exit


Then we have taken the backtrace of the asterisk at that time and m attaching it .

bt
bt full
thread apply all bt
thread apply all bt full
list

Looking for the positive response like always .


Comments:By: Tilghman Lesher (tilghman) 2008-06-24 11:30:21

What is the output of:

asterisk -rx 'core show locks'

By: destiny6628 (destiny6628) 2008-06-25 01:31:29

core show locks didnt also responded at that time .

However will check with this command as well .

Thanks

By: destiny6628 (destiny6628) 2008-06-27 13:58:50

Hi ,

This time some different issue came .All calls stopped going and when we were running asterisk -vvvgrc it was not coming on cli prompt and was hanged .

[root@hyd-static-171-8-12-61 ~]# asterisk -vvvgrc
Asterisk 1.4.21, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
 == Parsing '/etc/asterisk/asterisk.conf': Found
 == Parsing '/etc/asterisk/extconfig.conf': Found



It was not going beyond that .

Tried taking asterisk -rx 'core show locks' but this command was also not going ahead .

Have taken the backtrace of the asterisk at that time .

Please guide what needs to be done .

Thanks

By: destiny6628 (destiny6628) 2008-06-27 14:00:45

gaurav.txt is attached which is the latest backtrace of asterisk .

By: Tilghman Lesher (tilghman) 2008-06-27 14:08:27

Please update to the latest 1.4 SVN.  We discovered an issue yesterday which can cause 'core show locks' not to display anything.

By: destiny6628 (destiny6628) 2008-06-28 04:34:50

sure , give me some time will upgrade to svn 1.4 and update you on same .

Thanks

By: destiny6628 (destiny6628) 2008-06-30 01:39:06

Hi

Due to some reasons i unable to update it to svn 1.4 .

Is it possible to have a patch for same .

However i am still working on same .

Thanks

By: Digium Subversion (svnbot) 2008-06-30 10:58:13

Repository: asterisk
Revision: 126573

U   branches/1.4/include/asterisk/lock.h

------------------------------------------------------------------------
r126573 | russell | 2008-06-30 10:57:56 -0500 (Mon, 30 Jun 2008) | 10 lines

Fix a typo in the non-DEBUG_THREADS version of the recently added DEADLOCK_AVOIDANCE()
macro.  This caused the lock to not actually be released, and as a result, not
avoid deadlocks at all.  This resolves the issues reported in the last while about
Asterisk locking up all over the place (and most commonly, in chan_iax2).

(closes issue ASTERISK-12258)
(closes issue ASTERISK-12270)
(closes issue ASTERISK-12256)
(potentially closes others ...)

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

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

By: Digium Subversion (svnbot) 2008-06-30 11:09:52

Repository: asterisk
Revision: 126578

U   tags/1.4.21.1/include/asterisk/lock.h

------------------------------------------------------------------------
r126578 | russell | 2008-06-30 11:09:42 -0500 (Mon, 30 Jun 2008) | 10 lines

Fix a typo in the non-DEBUG_THREADS version of the recently added DEADLOCK_AVOIDANCE()
macro.  This caused the lock to not actually be released, and as a result, not
avoid deadlocks at all.  This resolves the issues reported in the last while about
Asterisk locking up all over the place (and most commonly, in chan_iax2).

(closes issue ASTERISK-12258)
(closes issue ASTERISK-12270)
(closes issue ASTERISK-12256)
(potentially closes others ...)

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

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