[asterisk-bugs] [JIRA] (ASTERISK-25085) Potential crash after unload of func_periodic_hook or test_message
Corey Farrell (JIRA)
noreply at issues.asterisk.org
Thu May 14 00:08:33 CDT 2015
Corey Farrell created ASTERISK-25085:
----------------------------------------
Summary: Potential crash after unload of func_periodic_hook or test_message
Key: ASTERISK-25085
URL: https://issues.asterisk.org/jira/browse/ASTERISK-25085
Project: Asterisk
Issue Type: Bug
Security Level: None
Affects Versions: 13.3.2, SVN
Reporter: Corey Farrell
Severity: Minor
This crash can be very easily reproduced. Install the latest 13 or master with samples configs. Replace modules.conf:
{noformat}
[modules]
autoload=no
load=func_periodic_hook.so
load=pbx_config.so
{noformat}
Run {{asterisk -c}}, from CLI run:
{noformat}
module unload func_periodic_hook.so
dialplan show
{noformat}
The key to this bug is that func_periodic_hook is loaded first. Then the context is rebuilt during the load of pbx_config. At the unload of func_periodic_hook the original context pointer is no longer valid, so it fails to destroy the context. Any access to the priorities registered by func_periodic_hook like with {{dialplan show}} will cause a segmentation fault.
The problem with test_message.so is identical.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list