[asterisk-bugs] [Asterisk 0015058]: Core Dump on 1.4.24 - local_pvt_destroy (pvt=0x193cbc00) at chan_local.c:159

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 7 22:28:00 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=15058 
====================================================================== 
Reported By:                geoff2010
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15058
Category:                   Channels/chan_local
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-07 22:16 CDT
Last Modified:              2009-05-07 22:28 CDT
====================================================================== 
Summary:                    Core Dump on 1.4.24 - local_pvt_destroy
(pvt=0x193cbc00) at chan_local.c:159
Description: 
I had a server core dump on me tonight.  I have been running 1.4.21.2
without issue for a long time.  I upgraded to 1.4.24 about a month ago and
just had the problem for the first time.  The server had less than 100
calls up when the problem occurred.  Based on the fact that we do a few
hundred thousand calls/day and this is the first time this happened in a
month, I am pretty sure I won't be able to reproduce this on-demand.

Please let me know if there is anything else I can provide.  I have
attached 3 different bt outputs as well as the relevant dial plan as
referenced in the back trace.

The dial plan is executed by using a manager Originate to a Local channel
which then passes control off to a SIP channel.

Thanks!
====================================================================== 

---------------------------------------------------------------------- 
 (0104425) geoff2010 (reporter) - 2009-05-07 22:28
 http://bugs.digium.com/view.php?id=15058#c104425 
---------------------------------------------------------------------- 
just looking at some code here.   could this occur if for some reason pvt
is null when it's passed to free()?  I would think ast_mutex_destroy would
fail if pvt was NULL, but what do I know :)  I write Java, this manual
memory management is for the birds!


/*!
 * \note Assumes the pvt is no longer in the pvts list
 */
static struct local_pvt *local_pvt_destroy(struct local_pvt *pvt)
{
        ast_mutex_destroy(&pvt->lock);
        free(pvt);
        return NULL;
} 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-07 22:28 geoff2010      Note Added: 0104425                          
======================================================================




More information about the asterisk-bugs mailing list