Thread (3 messages) 3 messages, 2 authors, 2012-03-03

What is the difference between a kernel BUG and a kernel Oops?

From: hujun_hotmail <hidden>
Date: 2012-03-03 13:49:30

very professional!

--------------------------------------------------
From: <redacted>
Sent: Saturday, March 03, 2012 6:55 PM
To: "hujun_hotmail" <redacted>
Cc: "newbies kenel" <redacted>
Subject: Re: What is the difference between a kernel BUG and a kernel Oops?
Hi!

On 17:38 Sat 03 Mar     , hujun_hotmail wrote:
quoted
I want to know what is the difference between a kernel BUG and a kernel 
Oops , who can tell me?
A BUG() is something like an assertion. Basically this means that a 
developer
thought that a certain situation should never be happen and if it does,
execution should stop. It is possible to ignore this and continue 
executing:

config BUG
       bool "BUG() support" if EXPERT
       default y
       help
         Disabling this option eliminates support for BUG and WARN, 
reducing
         the size of your kernel image and potentially quietly ignoring
         numerous fatal conditions. You should only consider disabling 
this
         option for embedded systems with no facilities for reporting 
errors.
         Just say Y.

A kernel oops is basically a crash. This can be caused by bad memory 
accesses
and things like that.

-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help