[asterisk-bugs] [JIRA] (ASTERISK-25825) Crashes during shutdown when running CLI commands

Corey Farrell (JIRA) noreply at issues.asterisk.org
Tue Mar 15 17:28:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229903#comment-229903 ] 

Corey Farrell commented on ASTERISK-25825:
------------------------------------------

Sorry I was slow to look at this I was busy then had the flu.  I feel that the issue here is startup and shutdown order being wrong.  For example 'core show channels' and related commands maybe should be moved to stasis_channels.c or another more appropriate source.  If registered at the correct time during startup these commands will be unregistered before they become unsafe.  It's also worth acknowledging that the current startup order means it is theoretically possible to run 'core show channels' before it's safe.

One quick fix would be to just move {{ast_builtins_init}} later in the initialization.  Obviously there may be other units that are inappropriately initialized before stasis or other dependencies, but I think they should each be looked at individually.

> Crashes during shutdown when running CLI commands
> -------------------------------------------------
>
>                 Key: ASTERISK-25825
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25825
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>            Reporter: Mark Michelson
>         Attachments: chanlist_bt.txt
>
>
> During some test runs, we've witnessed crashes occur during Asterisk shutdown when certain CLI commands are run. Attached are some backtraces from such crashes.
> The trend is that shutdown tends to NULL out or destroy structures that CLI commands may be relying on.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list