Skip to main content


How to safely manually trigger a kernel panic?


I've been using Linux for 1.5 year now one of the reason is the number tux represented how many CPU core I have on boot, but I'm disappointed because they don't do that anymore, another reason is to experience kernel panic and I never got one how can I manually and safety trigger it?
in reply to ColdWater

en.m.wikipedia.org/wiki/Magic_…

Alt+SysRq+C, although your distro may have it disabled by default.

A fair warning though, safety is relative and crashing the kernel can be destructive. Make sure you have backups when breaking things.

in reply to ColdWater

You could write a small kernel module that just triggers one as soon as it's loaded

Linux reshared this.

in reply to ColdWater

echo 1 > /proc/sys/kernel/sysrq &&
echo c > /proc/sysrq-trigger
This entry was edited (23 hours ago)