[asterisk-bugs] [Asterisk 0017472]: parser mangles #include

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 11 07:27:34 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17472 
====================================================================== 
Reported By:                seandarcy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17472
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.8 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-06-05 10:10 CDT
Last Modified:              2010-06-11 07:27 CDT
====================================================================== 
Summary:                    parser mangles #include
Description: 
With an #include in extensions.conf:

[general]
static=yes
writeprotect=no

#include "exts/extensions-for-fax"

[globals]
TRUNK=DAHDI/g0
TRUNKMSD=1
.............

to a file that exists:

ls -l exts/extensions-for-fax
-rw-r--r--. 1 root root 6157 Nov 13  2009 exts/extensions-for-fax

the parser mangles the #include:

 == Parsing '/etc/asterisk/extensions.conf':   == Found
[Jun  5 10:41:42] ERROR[26393]: config.c:1098 process_text_line: The file
'exts/etensions--for-fax' was listed as a #include but it does not exist.

====================================================================== 

---------------------------------------------------------------------- 
 (0123280) dlynes (reporter) - 2010-06-11 07:27
 https://issues.asterisk.org/view.php?id=17472#c123280 
---------------------------------------------------------------------- 
Same thing happens to me on:  Asterisk 1.6.2.5-0ubuntu1 built by buildd @
yellow on a x86_64 running Linux on 2010-04-16 05:34:19 UTC

[Jun 11 05:17:21]   == Parsing '/etc/asterisk/extensions.conf': [Jun 11
05:17:21]   == Found
The file 'macro.cconf' was listed as a #include but it does not exist.

In my extensions.conf file, this happens when I include using double
quotation marks, but not when I include using angle brackets. (#include
"macros.conf" vs #include <macros.conf>).

If it also helps, Ubuntu 10.04 ships with gcc (Ubuntu 4.4.3-4ubuntu5)
4.4.3, so that's probably the version that it's compiled with.  But, if
that's the issue, I would think it's probably more a memory corruption
issue or something that comes out in the wash when certain optimizations
are enabled in gcc 4.4.3.

modules.conf:
;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
;
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using 'preload'. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those
configuration
; files are initialized.
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
; If you want, load the GTK console right away.  
; Don't load the KDE console since
; it's not as sophisticated right now.
;
;noload => res_ael_share.so
;noload => pbx_ael.so
load => pbx_config.so
noload => pbx_lua.so
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss.  Don't load it.
;
noload => app_intercom.so
;
; The 'modem' channel driver and its subdrivers are
; obsolete, don't load them.
;
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
noload => chan_jabber.so

;
; Comment this out (after installing CAPI middleware and hardware
; drivers) if you have CAPI-able hardware and wish to use it in
; Asterisk.
;
noload => chan_capi.so
;
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
;
; Disable CDR logging to SQLite by default since it writes unconditionally
to 
; cdr.db without a way to rotate it.
;
noload => cdr_sqlite.so
;
; These conflict with app_voicemail.so/app_directory.so and each other
; These are for IMAP and ODBC storage for Voicemail
noload => app_directory_odbc.so
noload => app_voicemail_odbc.so
noload => app_voicemail_imap.so
;
; Enable these if you want to configure Asterisk in a database
;
noload => res_config_odbc.so
noload => res_config_pgsql.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global] 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-11 07:27 dlynes         Note Added: 0123280                          
======================================================================




More information about the asterisk-bugs mailing list