From mboxrd@z Thu Jan 1 00:00:00 1970 From: s.psomadakis@gmail.com (Stratos Psomadakis) Date: Mon, 29 Aug 2011 14:01:50 +0300 Subject: question about oops and panic In-Reply-To: References: Message-ID: <4E5B719E.9020008@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 08/28/2011 08:19 PM, Parmenides wrote: > Hi, > > 1. I think oops and panic are both some way to deal with errors occurs > in kernel space. Is there any relationship between them? afaik, the difference is that the panic is non-recoverable, and occurs only in certain very critical situations > > 2. I make a NULL pointer reference deliberately in a kernel module and > get an oops like: > > ... ... ... > > Aug 29 00:58:45 lfs kernel: Call Trace: > Aug 29 00:58:45 lfs kernel: [] ? do_one_initcall+0x44/0x120 > Aug 29 00:58:45 lfs kernel: [] ? sys_init_module+0xa7/0x1d9 > Aug 29 00:58:45 lfs kernel: [] ? syscall_call+0x7/0xb > > ... ... ... > > I wonder what is the meaning of the tow numbers after a function name. the first one is the offset within the function that the error occurred, and the second one I think it is the function size (you'll usually need only the first one for debugging) -- Stratos Psomadakis