Skip to contentSkip to conversation

Crashing red hat linux

DISCUSSION dipankar das 6 participants 9 messages May 10, 2005

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · dipankar das

Hi
Does Red hat like Monta vista allow crashing the
kernel by writing to "/dev/crash" if not whats the easiest way ?

Is it practically useful? How is it used in monta vista?

Signature · 2 lines
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
#2 lore raw
In reply to dipankar das
Quoted 4 lines

Does Red hat like Monta vista allow crashing the
kernel by writing to "/dev/crash" if not whats the easiest way ?

I used to insmod a driver which calls panic() during module initialization. I used to do this for testing lkcd.

Raj

#3 lore raw
Quoted 7 lines · Raj Inguva
Quoted 4 lines

Does Red hat like Monta vista allow crashing the
kernel by writing to "/dev/crash" if not whats the easiest way ?

I used to insmod a driver which calls panic() during module initialization. I used to do this for testing lkcd.

Now we have crashdump shipped with kexec.

Signature · 2 lines
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
#4 lore raw
In reply to dipankar das
Quoted 4 lines · dipankar das

Hi
Does Red hat like Monta vista allow crashing the
kernel by writing to "/dev/crash" if not whats the easiest way ?

cat /dev/dsp > /dev/kmem should do it.

Lee

#5 lore raw

Why oh why would one do that??

On any recent redhat kernel, simply enable magic sysrq by:
echo 1 > /proc/sys/kernel/sysrq

Then force a panic at the console by hitting ALT-SysRq-c or by
echo c > /proc/sysrq-trigger

Quoted 16 lines · On Tue, 10 May 2005 11:42:39 -0400 Lee Revell <[email protected]> wrote:
Quoted 4 lines · dipankar das

Hi
Does Red hat like Monta vista allow crashing the
kernel by writing to "/dev/crash" if not whats the easiest way ?

cat /dev/dsp > /dev/kmem should do it.

Lee

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

#6 lore raw

Uttered James Washer <[email protected]>, spake thus:

Quoted 1 line

Why oh why would one do that??

So you could check fail-over? or the crash dump setup? That's why I sent the patch.

Cheers

#7 lore raw

My "why oh why" response was directed at the suggestion of "cat /dev/dsp > /dev/kmem should do it"

I understand the many reasons why one might wish to force a panic.

what patch??

- jim

Quoted 8 lines · On Tue, 10 May 2005 13:38:06 -0500 Tommy Reynolds…

Uttered James Washer <[email protected]>, spake thus:

Quoted 1 line

Why oh why would one do that??

So you could check fail-over? or the crash dump setup? That's why I sent the patch.

Cheers

#8 lore raw

Uttered James Washer <[email protected]>, spake thus:

Quoted 4 lines

I understand the many reasons why one might wish to force a panic.

what patch??

Internal RH patch, many moons ago.

Cheers!