What good utility for terminate crashed software?

Hello. Thanks for reading my topic.
Here is Lubuntu 24.04.1.
Some times happen crash and hang for softwares at point not is possible alternate to desktop for select the star menu to open HTOP or QPS and both not start using hot keys when happen crash.
The problem is more worst if using an software with GUI similar as terminal. The software crash and need to be closed and hang the OS at point not is possible select start menu.
An good task manager with feature to terminate any software is an solution.
Have an good utility that can terminate softwares even in moments the OS happen hang at point not is possible run any command ?

Have an nice day.

This depends on how bad the crash is. If you can still get to a virtual terminal by pressing ctrl-alt-F1 (or F2 to F6, each F-key is one virtual terminal), you can log in on that terminal and then use all the usual command line tools (like ‘ps’ - process status - to see all processes and ‘kill’ to send signals to a process or ‘pgrep’ to find a process by the name of the executable). Even ‘top’ or ‘htop’ can be used to kill processes.

If you can’t get to a virtual terminal, then the best you can hope for is to manage a clean shutdown so you at least don’t damage the file system. You can do this using the Magic SysRequest and ‘R’,‘E’,‘I’,‘S’,‘U’, and ‘B’ to switch keyboard to translate mode, send sigterm to all processes except PID 1, send sigkill to all processes except pid 1, sync all filesystems, remount all filesystems read-only, and finally reboot. Leave a second or two between keys so the kernel can perform the requeste function.

1 Like

@hdd-gehrke
Thanks for your reply.
Have times the crash is high level at point not is possible start any terminal window and it is problem because I use an writeback cache in OS disk.
I have done CTRL+ALT+F1 and was showed an terminal with several lines related with OS bootup startup, but no any line available to do any command.
Have any way when happen an crash high level to run an bash file ( writeback flush to disk) before shutdown ?

You did notice the part of my post where I wrote that there are multiple virtual terminals ? ctrl-alt-f1 for the first, ctrl-alt-f2 for the second, ctrl-alt-f3 for the third … see the pattern ?

If there’s already something running in the first vt, try the others until you find one with a login prompt.
The seventh virtual terminal is normally used by the GUI on Ubuntu flavours, so ctrl-alt-F7 will get you back to your desktop once you’ve killed whatever program is responsible for the GUI hanging.

And writing out the cache to any mounted file system is the ‘S’ step of the REISUB Magic Sysrequest procedure. It does something similar to calling ‘sync’ from the shell.

This topic was automatically closed after 30 days. New replies are no longer allowed.