[asterisk-bugs] [Asterisk 0015378]: [patch] Crash in do_monitor() in chan_dahdi.c

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Sep 14 16:48:46 CDT 2009


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15378 
====================================================================== 
Reported By:                samy
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   15378
Category:                   Channels/chan_dahdi
Reproducibility:            unable to reproduce
Severity:                   crash
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.6.0.13 
Regression:                 No 
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-06-22 12:54 CDT
Last Modified:              2009-09-14 16:48 CDT
====================================================================== 
Summary:                    [patch] Crash in do_monitor() in chan_dahdi.c
Description: 
I'm unable to reproduce but have a core file of Asterisk 1.6.0.10 of a
crash in chan_dahdi.c. It looks like `iflist` may have been modified
somewhere else without a lock though I'm not positive (see Additional
Information or attached file).

I have MALLOC_DEBUG, DONT_OPTIMIZE, DEBUG_THREADS and DEBUG_CHANNEL_LOCKS
enabled.

I'm running Asterisk 1.6.0.10 on linux:
[root ~]# cat /etc/redhat-release 
Fedora Core release 3 (Heidelberg)
[root ~]# uname -a
Linux pbxtra1063 2.6.9-1.667 https://issues.asterisk.org/view.php?id=1 Tue Nov 2
14:41:25 EST 2004 i686 i686 i386
GNU/Linux

I've attached a full backtrace. Please let me know if there is any more
info I can provide.
====================================================================== 

---------------------------------------------------------------------- 
 (0110637) svnbot (reporter) - 2009-09-14 16:48
 https://issues.asterisk.org/view.php?id=15378#c110637 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 218401

U   branches/1.4/channels/chan_dahdi.c

------------------------------------------------------------------------
r218401 | jpeeler | 2009-09-14 16:48:45 -0500 (Mon, 14 Sep 2009) | 11
lines

Fix handling of DAHDI_EVENT_REMOVED event to prevent crash in do_monitor.

After talking to rmudgett about some of his recent iflist locking changes,
it
was determined that the only place that would destroy a channel without
being
explicitly to do so was in handle_init_event. The loop to walk the
interface
list has been modified to wait to destroy the channel until the dahdi_pvt
of
the channel to be destroyed is no longer needed.

(closes issue https://issues.asterisk.org/view.php?id=15378)
Reported by: samy

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-14 16:48 svnbot         Note Added: 0110637                          
2009-09-14 16:48 svnbot         Status                   assigned => resolved
2009-09-14 16:48 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list