[asterisk-bugs] [JIRA] (ASTERISK-23265) Preloading Certain Modules in Asterisk 12 causes a core dump

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Feb 20 20:44:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215500#comment-215500 ] 

Matt Jordan commented on ASTERISK-23265:
----------------------------------------

Rusty:

The key here is the existence of the dialplan hint. A dialplan hint that references a presence state provider should cause the crash.

This is because we don't initialize the presence state engine - or really, the device state engine either - before we pre-load modules. Pre-loading {{pbx_config}} in particular is problematic for this, as it will go ahead and create all of the hints - but creating the hints before the entities that can service those hints have been initialized is rather explosive.


                
> Preloading Certain Modules in Asterisk 12 causes a core dump
> ------------------------------------------------------------
>
>                 Key: ASTERISK-23265
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23265
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 12.1.0
>         Environment: CentOS 6.5
>            Reporter: Andrew Nagy
>            Assignee: Rusty Newton
>         Attachments: backtrace.txt
>
>
> Preloading pbx_config.so and chan_local.so causes asterisk to Core Dump. The original module.conf is below:
> {code}
> [modules]
> autoload=yes
> preload = pbx_config.so
> preload = chan_local.so
> noload = pbx_gtkconsole.so
> noload = pbx_kdeconsole.so
> noload = app_intercom.so
> noload = chan_modem.so
> noload = chan_modem_bestdata.so
> noload = chan_modem_i4l.so
> noload = app_trunkisavail.so
> noload = chan_alsa.so
> noload = chan_oss.so
> noload = app_directory_odbcstorage.so
> noload = app_voicemail_odbcstorage.so
> noload = chan_modem_aopen.so
> load = format_wav.so
> load = format_pcm.so
> load = format_mp3.so
> load = res_musiconhold.so
> {code}
> Removing the two preloads allows asterisk to function normally
> {code}
> [modules]
> autoload=yes
> noload = pbx_gtkconsole.so
> noload = pbx_kdeconsole.so
> noload = app_intercom.so
> noload = chan_modem.so
> noload = chan_modem_bestdata.so
> noload = chan_modem_i4l.so
> noload = app_trunkisavail.so
> noload = chan_alsa.so
> noload = chan_oss.so
> noload = app_directory_odbcstorage.so
> noload = app_voicemail_odbcstorage.so
> noload = chan_modem_aopen.so
> load = format_wav.so
> load = format_pcm.so
> load = format_mp3.so
> load = res_musiconhold.so
> {code}

--
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