[asterisk-bugs] [JIRA] (ASTERISK-30039) cli: Targeted debug on startup deadlocks and creates unstable system

N A (JIRA) noreply at issues.asterisk.org
Mon May 2 06:22:40 CDT 2022


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

N A edited comment on ASTERISK-30039 at 5/2/22 6:21 AM:
--------------------------------------------------------

I can reproduce on different machines, with different 18 versions.

It's unlikely to happen on faster machines because the restart is so quick. I tried on one machine and I just can't type the command fast enough before Asterisk initializes.

Tried:
{noformat}
PID=20926 /var/lib/asterisk/scripts/ast_coredumper --running
Can't determine pid of the running asterisk instance
{noformat}

Am I doing this right? Same thing with --RUNNING

Funny thing is /var/run/asterisk/asterisk.pid has the right value here. Not sure why it's not reading that.


was (Author: interlinked):
I can reproduce on different machines, with different 18 versions.

It's unlikely to happen on faster machines because the restart is so quick. I tried on one machine and I just can't type the command fast enough before Asterisk initializes.

Tried:
{noformat}
PID=20926 /var/lib/asterisk/scripts/ast_coredumper --running
Can't determine pid of the running asterisk instance
{noformat}

Am I doing this right? Same thing with --RUNNING

> cli: Targeted debug on startup deadlocks and creates unstable system
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-30039
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30039
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 18.9.0
>            Reporter: N A
>            Assignee: Unassigned
>
> If, while Asterisk is starting, you attempt to use tab completion with "core set debug X <tab complete>", and you do this BEFORE Asterisk is fully ready, the CLI will deadlock and the system will become permanently unstable and fail to ever initialize. Not all commands do this but "core set debug X <tab complete>" does do it. Seems to be an "unsafe" operation if Asterisk is not ready for some reason.
> e.g. if you use SIGQUIT to exit the CLI and then go back into a remote console, if you run "core restart now" it will say no command found because the system never fully started so Asterisk is still not (and will never be) ready.
> Even ast_coredumper fails because it fails to get the PID and there isn't an option to manually specify it.
> This does reproduce consistently.



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



More information about the asterisk-bugs mailing list