"Forcing" a kernel panic from the terminal on Linux
1
vote
2
answers
7058
views
I'm using Solus 4.0 (in a VM) and trying to make screenshots of "typical" kernel panic output ("BSOD"). The init system in Solus is
systemd
.
I tried the following commands in the terminal without success:
$ kill -6 1
Doesn't do anything (no echo).
$ sudo kill -SEGV 1
Also does nothing...
# echo c > /proc/sysrq-trigger
Freezes the system but it's not what I need.
Any ideas?
I'd like to see the stack calls and all. It's not about freezing the system with a fork bomb.
**References used:**
- https://unix.stackexchange.com/questions/85357/intentional-kernel-panic-under-linux
- https://unix.stackexchange.com/questions/66197/how-to-cause-kernel-panic-with-a-single-command
- https://unix.stackexchange.com/questions/66698/how-does-systemd-survive-a-kill-9
- https://stackoverflow.com/questions/49655943/how-to-create-a-kernel-panic-in-rhel-without-rebooting-after-panic
Asked by Frederik
(11 rep)
Apr 16, 2019, 03:56 PM
Last activity: May 4, 2025, 07:03 PM
Last activity: May 4, 2025, 07:03 PM