[asterisk-bugs] [JIRA] (ASTERISK-23297) Asterisk 12, pbx_config.so segfaults if res_parking.so is not loaded, or if res_parking.conf has no configuration

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Feb 13 19:17:03 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-23297:
-----------------------------------

    Attachment: ASTERISK-23297-12.diff

Attached is a patch that fixes the issue for me. If you could please test it, that'd be great.

With this patch, I was able to unload, noload, module load, and generally muck with things that provide dialplan - including {{pbx_ael}}, {{pbx_config}}, {{res_parking}} - all starting with no configuration.
                
> Asterisk 12, pbx_config.so segfaults if res_parking.so is not loaded, or if res_parking.conf has no configuration
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-23297
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23297
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/pbx_config, Resources/res_parking
>    Affects Versions: 12.0.0
>         Environment: CentOS 6.5, running as a KVM vm on top of a CentOS 5.10 cluster.
> Linux localhost 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: CJ Oster
>            Assignee: Matt Jordan
>         Attachments: ASTERISK-23297-12.diff, backtrace.txt
>
>
> Pretty straight forward.  If you try to turn off parking, either by not loading the module, or commenting out the modules config, pbx_config (at least that's what it appears to do) segfaults on startup.  Below is the out put of 'asterisk -fvvvvvdddddd' when it crashes (I have removed all config from extensions.conf/ael/lua):
> {noformat}
> ------------
> <snip>
>  Loading pbx_config.so.
>   == Parsing '/etc/asterisk/extensions.conf': Found
>   == Setting global variable 'CONSOLE' to 'Console/dsp'
>   == Setting global variable 'IAXINFO' to 'guest'
>   == Setting global variable 'TRUNK' to 'DAHDI/G2'
>   == Setting global variable 'TRUNKMSD' to '1'
> (Segfault)
> -------------
> {noformat}
> Here's the same section when it doesn't crash:
> {noformat}
> <snip>
>  Loading pbx_config.so.
>   == Parsing '/etc/asterisk/extensions.conf': Found
>   == Setting global variable 'CONSOLE' to 'Console/dsp'
>   == Setting global variable 'IAXINFO' to 'guest'
>   == Setting global variable 'TRUNK' to 'DAHDI/G2'
>   == Setting global variable 'TRUNKMSD' to '1'
>     -- Registered extension context 'parkedcalls'; registrar: res_parking/default
>     -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_config
>     -- Added extension '720' priority 1 to parkedcalls
>     -- Added extension '719' priority 1 to parkedcalls
>        (...etc...)
>     -- Added extension '700' priority 1 to parkedcalls
>     -- Time to scan old dialplan and merge leftovers back into the new: 0.002096 sec
>     -- Time to restore hints and swap in new dialplan: 0.000003 sec
>     -- Time to delete the old dialplan: 0.000012 sec
>     -- Total time merge_contexts_delete: 0.002111 sec
>  pbx_config.so => (Text Extension Configuration)
> (...continues to load normally...)
> {noformat}
> ------------------
> STEPS TO REPRODUCE
> ------------------
> 1) Freshly install system, and update.
> 2) Install asterisk yum repo.
> 3) Install asterisk and asterisk-config.
> 3.5) Remove all valid contexts from extensions.conf
> 4) Asterisk should start fine.
> 5) Add "noload => res_parking.so" to /etc/asterisk/modules.conf
> 6) Asterisk will now crash on startup.
> 7) Remove the noload, asterisk will start normally.
> 8) Comment out the 3 uncommented-lines in res_parking.conf
> 9) Asterisk will now crash on startup.
> 10) Repeat steps 5-9 as needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list