[asterisk-bugs] [Asterisk 0015984]: QUEUE_MEMBER and QUEUE_MEMBER_COUNT tries to destroy queue, leading to segmentation fault

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 24 14:42:03 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15984 
====================================================================== 
Reported By:                atis
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15984
Category:                   Applications/app_queue
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     closed
Target Version:             1.6.1.11
Asterisk Version:           SVN 
JIRA:                       SWP-315 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 220631 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-09-29 10:12 CDT
Last Modified:              2009-11-24 14:42 CST
====================================================================== 
Summary:                    QUEUE_MEMBER and QUEUE_MEMBER_COUNT tries to destroy
queue, leading to segmentation fault
Description: 
Loops for queue_function_qac and queue_function_qac_dep are identical, so
both those functions should be affected.

Backtrace shows that queue_unref is calling destroy_queue, which however
calls queue_unref again, thus leading to recursion, limited by queue member
count.

Backtrace attached
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015982 [patch] Segmentation fault in queue_cmp_cb
====================================================================== 

---------------------------------------------------------------------- 
 (0114252) svnbot (reporter) - 2009-11-24 14:42
 https://issues.asterisk.org/view.php?id=15984#c114252 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 231135

_U  branches/1.6.1/
U   branches/1.6.1/apps/app_queue.c

------------------------------------------------------------------------
r231135 | tilghman | 2009-11-24 14:42:01 -0600 (Tue, 24 Nov 2009) | 14
lines

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

........
  r231134 | tilghman | 2009-11-24 14:31:28 -0600 (Tue, 24 Nov 2009) | 7
lines
  
  Found a few places where queue refcounts were counted incorrectly.  Also
add debug statements.
  (closes issue https://issues.asterisk.org/view.php?id=15982, closes issue
https://issues.asterisk.org/view.php?id=15984)
   Reported by: atis
   Patches: 
         20091111__issue15982.diff.txt uploaded by tilghman (license 14)
   Tested by: atis
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-24 14:42 svnbot         Checkin                                      
2009-11-24 14:42 svnbot         Note Added: 0114252                          
======================================================================




More information about the asterisk-bugs mailing list