[asterisk-bugs] [Asterisk 0012250]: chan_isavail segfaulting asterisk after sip_hangup (introduced after #8556 changes)

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Mar 18 13:11:04 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12250 
====================================================================== 
Reported By:                caio1982
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12250
Category:                   Applications/app_chanisavail
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 109577 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-18-2008 13:08 CDT
Last Modified:              03-18-2008 13:11 CDT
====================================================================== 
Summary:                    chan_isavail segfaulting asterisk after sip_hangup
(introduced after http://bugs.digium.com/view.php?id=8556 changes)
Description: 
While testing a pristine copy of Asterisk before going after
http://bugs.digium.com/view.php?id=12248 I've
got a segfault when ast_hangup(tempchan) is called from app_chanisavail,
which then calls sip_hangup and crash. It was introduced after the commits
for http://bugs.digium.com/view.php?id=8556 (revision 108439).

The problem seems to be lying under if (!p->alreadygone &&
!ast_strlen_zero(p->initreq.data->str)) though my friends and I are not
completely sure.
====================================================================== 

---------------------------------------------------------------------- 
 caio1982 - 03-18-08 13:11  
---------------------------------------------------------------------- 
Damn, I forgot to remove the optimization out. Reuploading bt full. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-18-08 13:11  caio1982       Note Added: 0084153                          
======================================================================




More information about the asterisk-bugs mailing list