Re: How to provoke kernel panic

Richard B. Johnson (root@chaos.analogic.com)
Wed, 21 Mar 2001 08:54:12 -0500 (EST)


On Wed, 21 Mar 2001, Antwerpen, Oliver wrote:

> Moin,
>
> Could someone kindly tell me how to provoke a kernel panic? I need to do so
> for testing some applications regarding system crash awareness.
>
> Olli
> -

If you want a real crash, rather than an induced panic(), just:

`cp /dev/zero /dev/mem`

.... from the root account.

This will demonstrate that most 'crash detector' programs are
worthless (including some watchdog timers).

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/