[asterisk-bugs] [Asterisk 0013489]: Asterisk crash 1.4 SVN

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 23 11:32:06 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13489 
====================================================================== 
Reported By:                DougUDI
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13489
Category:                   Core/PBX
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-16 09:00 CDT
Last Modified:              2008-09-23 11:32 CDT
====================================================================== 
Summary:                    Asterisk crash 1.4 SVN
Description: 
We are often getting crashes on the SVN branch. I am not sure from the GDB
output what is causing this so I have attached this info.

Thanks
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013467 Seg fault 1.6.0 trunk
related to          0013490 crash in ast_cdr_start, backtraces atta...
====================================================================== 

---------------------------------------------------------------------- 
 (0092793) svnbot (reporter) - 2008-09-23 11:32
 http://bugs.digium.com/view.php?id=13489#c92793 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 144066

U   branches/1.4/res/res_features.c

------------------------------------------------------------------------
r144066 | murf | 2008-09-23 11:32:04 -0500 (Tue, 23 Sep 2008) | 29 lines

(closes issue http://bugs.digium.com/view.php?id=13489)
Reported by: DougUDI
Tested by: murf

(closes issue http://bugs.digium.com/view.php?id=13490)
Reported by: seanbright
Tested by: murf

(closes issue http://bugs.digium.com/view.php?id=13467)
Reported by: edantie
Tested by: murf, edantie, DougUDI


This crash happens because we are unsafely handling old pointers.
The channel whose cdr is being handled, has been hung up and 
destroyed already. I reorganized the code a bit, and tried not
to lose the fork-cdr-chain concepts of the previous code.
I now verify that the 'previous' channel (the channel we
had when the bridge was started), still exists, by looking it up
by name in the channel list. I also do not try to reset the
CDR's of channels involved in bridges. 

Testing shows it solves the crash problem, and should not
negatively impact previous fixes involving CDR's generated
during/after blind transfers. (The reason we need to reset
the CDR's on the "beginning" channels in the first place).



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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-23 11:32 svnbot         Checkin                                      
2008-09-23 11:32 svnbot         Note Added: 0092793                          
======================================================================




More information about the asterisk-bugs mailing list