[asterisk-bugs] [Asterisk 0013741]: Seg. fault when including missing extensions file

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 20 12:42:40 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13741 
====================================================================== 
Reported By:                Laureano
Assigned To:                bweschke
====================================================================== 
Project:                    Asterisk
Issue ID:                   13741
Category:                   Core/FileFormatInterface
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 151018 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-10-19 21:14 CDT
Last Modified:              2008-10-20 12:42 CDT
====================================================================== 
Summary:                    Seg. fault when including missing extensions file
Description: 
If a missing file is defined to be included at extensions.conf, Asterisk
will segfault when starting or reloading the dialplan configuration.

Example:
[root at asterisk1 asterisk]# cd /etc/asterisk
[root at asterisk1 asterisk]# asterisk -g
[root at asterisk1 asterisk]# asterisk -r
Asterisk SVN-trunk-r142992, Copyright (C) 1999 - 2008 Digium, Inc. and
others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk SVN-trunk-r142992 currently running on asterisk1
(pid = 24961)
asterisk1*CLI> exit
[root at asterisk1 asterisk]# sed -i s/";#include
\"filename.conf\""/"#include \"filename.conf\""/ extensions.conf
[root at asterisk1 asterisk]# ls -l filename.conf
ls: filename.conf: No such file or directory
[root at asterisk1 asterisk]# asterisk -r
Asterisk SVN-trunk-r142992, Copyright (C) 1999 - 2008 Digium, Inc. and
others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk SVN-trunk-r142992 currently running on asterisk1
(pid = 24961)
asterisk1*CLI> dialplan reload 
asterisk1*CLI> 
Disconnected from Asterisk server
====================================================================== 

---------------------------------------------------------------------- 
 (0093991) svnbot (reporter) - 2008-10-20 12:42
 http://bugs.digium.com/view.php?id=13741#c93991 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 151246

U   trunk/main/config.c
U   trunk/pbx/pbx_config.c

------------------------------------------------------------------------
r151246 | bweschke | 2008-10-20 12:42:39 -0500 (Mon, 20 Oct 2008) | 5
lines

 Do NOT attempt to do anything with the ast_config struct when it's been
returned as INVALID by the config file interpreter.

 (closes issue http://bugs.digium.com/view.php?id=13741)
 

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-20 12:42 svnbot         Checkin                                      
2008-10-20 12:42 svnbot         Note Added: 0093991                          
======================================================================




More information about the asterisk-bugs mailing list