[asterisk-bugs] [Asterisk 0018903]: Crash in res_phoneprov on reload

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 26 09:14:08 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18903 
====================================================================== 
Reported By:                pdugas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18903
Category:                   Resources/res_phoneprov
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-01 20:10 CST
Last Modified:              2011-04-26 09:14 CDT
====================================================================== 
Summary:                    Crash in res_phoneprov on reload
Description: 
I've been working with a new 1.8.2.2 setup using the RPMs served up in the
YUM repository.  I'm using res_phoneprov and the built-in HTTP server to
configure a batch of Polycom phones.  All's usually working well.

Occasionally, when I "reload" from the CLI to apply some dialplan tweaks
or add some users.conf entries, I'm crashing Asterisk and getting core
files in /tmp.  I managed to get stack traces from a few of them tonight
and they're all the same.  See "Additional Information" below.

*** NOTE: The "Asterisk Version" field doesn't include 1.8.2.2 so I choose
1.8.2.3.  I hope this doesn't lead someone astray.
====================================================================== 

---------------------------------------------------------------------- 
 (0134127) pdugas (reporter) - 2011-04-26 09:14
 https://issues.asterisk.org/view.php?id=18903#c134127 
---------------------------------------------------------------------- 
pabelanger: 

As I wrote before, The fault occurred on a machine running the binary RPM
packages from the Asterisk/Digium YUM repository.  It was being built as a
production machine and was not built from source so enabling debug dumps
was not possible.  Perhaps Digium should look into adjusting their RPM
build system to produce the necessary .debug packages that could be
installed in cases like this.

The machine is in service and no longer exhibits the fault.  I suspect
that some inconsistency in the configs was triggering the crash but I have
been unable to reproduce it and the configs were not under revision control
at the time.  I completely understand the desire for the level of detail
you are requesting and apologize for not being able to provide it.  

All of that said, I was able to provide a stack trace that indicated a
call to free() within the delete_extension() routine in res_phoneprov.c
triggered a SEGV.  I am not yet familiar enough with the memory management
within Asterisk to track this down any further.  Seems like a pretty good
lead for someone more familiar that I am.

If nobody is willing/able to look into this any further without the level
of detail you are asking for, I suggest again closing this issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-26 09:14 pdugas         Note Added: 0134127                          
======================================================================




More information about the asterisk-bugs mailing list