[asterisk-bugs] [JIRA] (ASTERISK-25085) [patch]Potential crash after unload of func_periodic_hook or test_message

Corey Farrell (JIRA) noreply at issues.asterisk.org
Wed May 20 15:25:33 CDT 2015


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

Corey Farrell closed ASTERISK-25085.
------------------------------------


> [patch]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
>          Components: Functions/func_periodic_hook
>    Affects Versions: SVN, 13.3.2
>            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