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

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 11 16:55:36 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 16:55 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.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 07-11-08 16:55  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 130297

U   trunk/main/pbx.c

------------------------------------------------------------------------
r130297 | murf | 2008-07-11 16:55:34 -0500 (Fri, 11 Jul 2008) | 11 lines

(closes issue http://bugs.digium.com/view.php?id=13041)
Reported by: eliel

OK, now the context registrar slot is strdup'd. It is freed
on destruction. I don't see the need to do this with all
the structs' registrar fields, but if some wild case proves
they should also be handled this way, then we can 
put in the extra work at that time.



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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-11-08 16:55  svnbot         Note Added: 0090130                          
======================================================================




More information about the asterisk-bugs mailing list