* How to provoke kernel panic
@ 2001-03-21 9:43 Antwerpen, Oliver
2001-03-21 10:08 ` Keith Owens
2001-03-21 13:54 ` Richard B. Johnson
0 siblings, 2 replies; 3+ messages in thread
From: Antwerpen, Oliver @ 2001-03-21 9:43 UTC (permalink / raw
To: linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to provoke kernel panic
2001-03-21 9:43 How to provoke kernel panic Antwerpen, Oliver
@ 2001-03-21 10:08 ` Keith Owens
2001-03-21 13:54 ` Richard B. Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-03-21 10:08 UTC (permalink / raw
To: Antwerpen, Oliver; +Cc: linux-kernel
On Wed, 21 Mar 2001 10:43:25 +0100,
"Antwerpen, Oliver" <Antwerpen@netsquare.org> wrote:
>Could someone kindly tell me how to provoke a kernel panic? I need to do so
>for testing some applications regarding system crash awareness.
Create fs/example-module.c
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/module.h>
int init_module(void)
{
printk("module loading\n");
panic("test panic\n");
return 0;
}
Add "obj-m += example-module.o" to fs/Makefile.
make modules, insmod fs/example-module.o and watch the bits fly.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to provoke kernel panic
2001-03-21 9:43 How to provoke kernel panic Antwerpen, Oliver
2001-03-21 10:08 ` Keith Owens
@ 2001-03-21 13:54 ` Richard B. Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Richard B. Johnson @ 2001-03-21 13:54 UTC (permalink / raw
To: Antwerpen, Oliver; +Cc: linux-kernel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-03-21 13:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-21 9:43 How to provoke kernel panic Antwerpen, Oliver
2001-03-21 10:08 ` Keith Owens
2001-03-21 13:54 ` Richard B. Johnson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.