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

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:24:05 CDT 2016


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

Asterisk Team updated ASTERISK-25085:
-------------------------------------

    Target Release Version/s: 14.0.0

> [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
>      Target Release: 13.4.0, 14.0.0
>
>
> 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