[asterisk-bugs] [Asterisk 0013041]: Asterisk crash while unloading pbx_ael.so

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 11 14:08:05 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13041 
====================================================================== 
Reported By:                eliel
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13041
Category:                   Core/PBX
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 129454 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-09-2008 15:45 CDT
Last Modified:              07-11-2008 14:08 CDT
====================================================================== 
Summary:                    Asterisk crash while unloading pbx_ael.so
Description: 
If we unload the first module that registered a context, then asterisk
crash.
How to reproduce it:
1) Check the first module in the 'contexts' hashtab.
      > dialplan show
        .......... [pbx_ael]       1st
        ............ [pbx_config]   2nd
        etc...
    So in this example pbx_ael is the first.
2) unload the first module that registered a context.
      > module unload pbx_ael.so
3.1) Asterisk crash.
3.2) Asterisk didn't crash but if you run 'dialplan show' you continue
seeing pbx_ael contexts that werent removed.

Backtrace full uploaded.
====================================================================== 

---------------------------------------------------------------------- 
 eliel - 07-11-08 14:08  
---------------------------------------------------------------------- 
The problem appears while having this in the extensions.conf.
[parkedcalls]
exten => s,1,Hangup()  ; Something.

So, pbx_config is the registrar of this context, but some extens are being
added by another module (features.so), so when we unload module
pbx_config.so the context is not destroyed because of the features.so added
extensions.
And the registrars are static in each module, so when the module is
unloaded the registrar memory address is not there. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-11-08 14:08  eliel          Note Added: 0090116                          
======================================================================




More information about the asterisk-bugs mailing list