[asterisk-bugs] [Asterisk 0015686]: [patch] app_queue crashes randomly, it seems to be during call-transfers

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 30 10:45:00 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15686 
====================================================================== 
Reported By:                Hatrix
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   15686
Category:                   Applications/app_queue
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     closed
Target Version:             1.4.28
Asterisk Version:           SVN 
JIRA:                       SWP-261 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-10 02:16 CDT
Last Modified:              2009-11-30 10:44 CST
====================================================================== 
Summary:                    [patch] app_queue crashes randomly, it seems to be
during call-transfers
Description: 
We have had lot's of crashes in app_queue in our system. As the system was
never really stable it received software upgrades as well as totally new
(IBM) Hardware.

The crashes to app_queue are once or twice a week, sometimes more often,
mostly we have NO indication in the asterisk Log-Files. Ultimately (and
this may be because of a debug recompile) we get lines in the error log
like these:

[Aug  7 19:07:23] ERROR[27115]
/usr/local/src/asterisk-1.4.26/include/asterisk/lock.h: app_queue.c line
2559 (update_queue): Error obtaining mutex: Invalid argument

Funny thing is the system crashed on August the 6th (I do not have a
coredump) and on August the 7th at nearly the same time:

Aug  7 19:07:23 logitravel-voip2 kernel: [7905412.479435] asterisk[27115]:
segfault at d5d69fd0 ip b798757e sp b5258ef0 error 5 in
app_queue.so[b7984000+1c000]
Aug  6 19:00:57 logitravel-voip2 kernel: [7720142.069484] asterisk[7274]:
segfault at bb0f1be8 ip b796e57e sp b55f8ef0 error 4 in
app_queue.so[b796b000+1c000]


I have attached a backtrace, with bt, bt full and threads applied. I hope
it's any help because our client (a medium sized call-center) is waiting
for a solution.

We consider right now downgrading to debian stable (1.4.21.2) 

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

---------------------------------------------------------------------- 
 (0114369) svnbot (reporter) - 2009-11-30 10:44
 https://issues.asterisk.org/view.php?id=15686#c114369 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 231438

_U  trunk/

------------------------------------------------------------------------
r231438 | dvossel | 2009-11-30 10:44:59 -0600 (Mon, 30 Nov 2009) | 23
lines

Blocked revisions 231437 via svnmerge

........
  r231437 | dvossel | 2009-11-30 10:32:58 -0600 (Mon, 30 Nov 2009) | 18
lines
  
  app_queue crashes randomly, often during call-transfers
  
  In app_queue, it is possible for a call_queue to be destroyed
  while another object still holds a pointer to it.  This patch
  converts call_queue objects to ao2 objects allowing them to be
  ref counted.  This makes it safe for the queue_ent object in
  queue_exec() to reference it's parent call_queue even after it
  has left the queue.
  
  (closes issue https://issues.asterisk.org/view.php?id=15686)
  Reported by: Hatrix
  Patches:
        v2_queue_ao2.diff uploaded by dvossel (license 671)
  Tested by: dvossel, aragon
  
  Review: https://reviewboard.asterisk.org/r/427/
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-30 10:44 svnbot         Checkin                                      
2009-11-30 10:44 svnbot         Note Added: 0114369                          
======================================================================




More information about the asterisk-bugs mailing list