diff options
author | Joshua Colp <jcolp@digium.com> | 2012-09-27 16:53:19 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2012-09-27 16:53:19 +0000 |
commit | 9e9f3b760991afbb82cef39959b6c9df3ec76efe (patch) | |
tree | 5b6c9aec0ca772984f486a85f26907b224f3a0f0 /CHANGES | |
parent | 10eb78d213fe3bfa4c41ceb5dffe65491d9d0d1a (diff) |
loader: Ensure dependent modules are properly initialized.
If an Asterisk module specifies a dependency in ast_module_info.nonoptreq, it
is possible for Asterisk to skip calling the modules's .load function.
Asterisk was loading and linking the module via load_dynamic_module() but was
not adding the module to the resource_heap. Therefore the module was not
initialized based on it's priority along with the other modules in the heap.
Now use load_resource() instead of load_dynamic_module() for non-optional
requirement. This will add the module to the resource_heap so the module can
be properly initialized in the correct order.
This is required if there are any module global data structures initialized in
the .load() callback for the module on platforms which do not support weak
references.
(issue ASTERISK-20439)
Reported by: sruffell
Patches:
0001-loader-Ensure-dependent-modules-are-properly-initial.patch uploaded by sruffell (license 5417)
........
Merged revisions 373909 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 373910 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 373911 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'CHANGES')
0 files changed, 0 insertions, 0 deletions