[asterisk-bugs] [JIRA] (ASTERISK-27620) New module loader aborts startup if a required module declines load.
Corey Farrell (JIRA)
noreply at issues.asterisk.org
Wed Jan 24 20:44:49 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Corey Farrell updated ASTERISK-27620:
-------------------------------------
Assignee: Corey Farrell
Summary: New module loader aborts startup if a required module declines load. (was: crash when module config file not found)
I've reproduced this issue by installing only res_hep.so and res_hep_rtcp.so, enabling autoload and deleting hep.conf (the minimum test case).
I updated the issue title since the issue is not just limited to configs being missing, any issue which causes a load_module to return an error when another module requires that one will result in a failed startup.
> New module loader aborts startup if a required module declines load.
> --------------------------------------------------------------------
>
> Key: ASTERISK-27620
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27620
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/General
> Affects Versions: GIT
> Environment: debian 9.1
> Reporter: snuffy
> Assignee: Corey Farrell
> Severity: Minor
> Labels: pjsip
> Attachments: modules.conf
>
>
> Updated to latest git master branch,
> When I tried to start asterisk, it would fail and forcefully exit.
> On previous version lack of these config files would just mean that module did no load.
> For missing hep.conf:
> {noformat}
> Loading res_hep.so.
> [Jan 25 11:26:31] ERROR[26220]: config_options.c:706 aco_process_config: Unable to load config file 'hep.conf'
> [Jan 25 11:26:31] ERROR[26220]: loader.c:1640 start_resource_list: Failed to load res_hep_rtcp due to unfilled dependencies.
> [Jan 25 11:26:31] ERROR[26220]: asterisk.c:4336 check_init: Module initialization failed. ASTERISK EXITING!
> {noformat}
> For missing phoneprov.conf:
> {noformat}
> Loading res_phoneprov.so.
> [Jan 25 11:25:26] ERROR[25735]: res_phoneprov.c:1356 load_common: Unable to load config phoneprov.conf
> [Jan 25 11:25:26] ERROR[25735]: res_phoneprov.c:1429 load_module: Unable to load provisioning profiles.
> [Jan 25 11:25:26] ERROR[25735]: loader.c:1640 start_resource_list: Failed to load res_pjsip_phoneprov_provider due to unfilled dependencies.
> [Jan 25 11:25:26] ERROR[25735]: asterisk.c:4336 check_init: Module initialization failed. ASTERISK EXITING!
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list