Can anyone confirm that closing a CLI console window causes a linux system lockup / freeze? This is happening to me, and I am not sure whether this is a n Asterisk issue or a linux/kde issue. Of note, Asterisk CLI (asterisk -r -vvv) is the only application that does this for me.
No, I do not exit from CLI. I simply try to close the KDE window without exiting CLI, and the system completely freezes requiring a hardware reset. This behavior is distinctly different from any/every other application I have run as root user in a KDE konsole shell.
Several users noticed that a remote Asterisk console runs up 100% of CPU if the TTY disconnects. If you escape into a shell from within the console, and disconnect, you are almost guaranteed to have this condition. The process runs away and one must kill the process to bring system back.
I suspect that killing a window has the same effect as disconnecting TTY and the process does not automatically die. Whereas in text mode the system does not hang, complications could arise when X is also running.
Did you escape into a shell during the console session?
[quote=“valley”]Several users noticed that a remote Asterisk console runs up 100% of CPU if the TTY disconnects. If you escape into a shell from within the console, and disconnect, you are almost guaranteed to have this condition. The process runs away and one must kill the process to bring system back.
I suspect that killing a window has the same effect as disconnecting TTY and the process does not automatically die. Whereas in text mode the system does not hang, complications could arise when X is also running.
Did you escape into a shell during the console session?[/quote]
I can start a remote ssh shell, get to root, start asterisk (“asterisk r -vvv”), and then exit asterisk back to the shell without a problem. It is only when I try to close the ssh window (I use putty) while CLI is running in it, or when I close a local console with CLI running in it that the problem happens.
By the way, can you confirm that this happens on your system?
Yes, it does - except I don’t run X, and system doesn’t freeze. If I start a remote console, use ! to escape into a shell (this is a shell spawn by Asterisk), and lose the TTY, this remote console lives on and runs wild. I can’t say definitely but I remember seeing wild Asterisk even without escaping into a shell. See this recent thread forums.digium.com/viewtopic.php?t=14478