Computer Association of SIUE - Forums

CAOS Supported Groups => LUUCS => Topic started by: sivakalyan on 2006-03-13T15:49:26-06:00 (Monday)

Title: Kernel Panic in Linux
Post by: sivakalyan on 2006-03-13T15:49:26-06:00 (Monday)
Hi,

Can anyone tell me the various situations in which a 'kernel panic' can occur in Linux.

Thankyou.
Title: Re: Kernel Panic in Linux
Post by: rajiv on 2006-03-13T16:27:29-06:00 (Monday)
http://docs.info.apple.com/article.html?artnum=106227
Title: Re: Kernel Panic in Linux
Post by: Peter Motyka on 2006-03-13T16:32:20-06:00 (Monday)
That Apple doc would be applicable to BSD-based Unix systems since OS X is a varient of FreeBSD.

WikiPedia says:
In Linux, a "panic" is an unrecoverable system error detected by the kernel as opposed to similar errors detected by user space code. It is possible for kernel code to indicate such a condition by calling the panic function located in the header file sys/system.h. However, most panics are the result of unhandled processor exceptions in kernel code, such as references to invalid memory addresses. These are typically indicative of a bug somewhere in the call chain leading to the panic. They can also indicate a failure of hardware, such as a failed RAM cell or errors in arithmetic functions in the processor caused by a processor bug or overheating/damaged processor.

http://en.wikipedia.org/wiki/Linux_kernel#Kernel_panic
Title: Re: Kernel Panic in Linux
Post by: sivakalyan on 2006-03-14T00:15:39-06:00 (Tuesday)
Thanks a lot for the replies.

Is there any way that a kernel panic might occur due to boot problems?? (like some problem in GRUB etc...)

Thanks.
Title: Re: Kernel Panic in Linux
Post by: William Grim on 2006-03-14T02:39:43-06:00 (Tuesday)
No, grub would not cause a kernel panic unless it failed to reconfigure the 8259A microcontroller to other interrupts, overwrote a part of the kernel after loading it, etc.  Since this is all pretty routine stuff that happens all the time and has a set pattern, grub is highly unlikely to be the problem.

As far as getting a panic on boot, it could be a number of things.  Get a core dump and analyze it with gdb instead of guessing.