mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: "Greg Nate" <Greg_Nate@adp.com>
Cc: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org,
	kernelnewbies@nl.linux.org
Subject: Re: Kernel 2.4.21 Crashing
Date: Mon, 11 Aug 2003 12:43:17 -0700	[thread overview]
Message-ID: <20030811124317.07f7a426.rddunlap@osdl.org> (raw)
In-Reply-To: <BF2EFB3523C48E47806C1C94D4EFB80301245729@nexus.plaza.ds.adp.com>

On Mon, 11 Aug 2003 10:19:56 -0700 "Greg Nate" <Greg_Nate@adp.com> wrote:

| This example would be a good opportunity for explanation.  Hopefully, I am not the only one that has trouble deciphering the output from an Oops or panic.
| 
| If anyone is in the "know" and has the time, could you please give a little explanation as to what is being displayed below.  I understand that the there is a stack trace and register dumps, but I am not all that familiar with the registers being displayed, their significance and meaning.


kernelnewbies.org (web, email, wiki, or irc) would be a good place
for such documentation....

and please use hard returns so that your lines are max 72 characters.

This (below) is all very x86 specific.
It helps (probably an understatement) to know how stacks grow,
how compilers generate code, how registers are used, etc.


| On Sun, 10 Aug 2003, war wrote:
| 
| > Unable to handle kernel NULL pointer dereference at virtual address 00000000

Some code tried to reference address 0.  There is nothing mapped
at address 0 on purpose, to catch errant code such as this.

| >  printing eip:
| > c0131906

EIP is the (Extended) Instruction Pointer register, aka the next
instruction pointer.  It points just beyond the current (faulting)
instruction.

| > *pde = 00000000
| > Oops: 0002

This value is the page fault error code: (from source code):
 * error_code:
 *	bit 0 == 0 means no page found, 1 means protection fault
 *	bit 1 == 0 means read, 1 means write
 *	bit 2 == 0 means kernel, 1 means user-mode

| > CPU:    0
| > EIP:    0010:[<c0131906>]    Not tainted
0010 is the CS register value (Code segment selector).

| > EFLAGS: 00010246

i386 EFlags register

| > eax: c0306a18   ebx: 00000000   ecx: c250fffc   edx: 00000000

i386 general-purpose (GP) registers

| > esi: c250ffe0   edi: 0001328a   ebp: c0306c40   esp: c2821f40

i386 index and stack registers

| > ds: 0018   es: 0018   ss: 0018

These are the other i386 segment/selector registers.

| > Process kswapd (pid: 5, stackpage=c2821000)
| > Stack: c2095dd0 000001d0 000001ff 000001d0 00000016 0000001f 000001d0 00000020
| >        00000006 c0131ca3 00000006 c0306b90 c0306c40 000001d0 00000006 c0306c40
| >        00000000 c0131d1e 00000020 c0306c40 00000002 c2820000 c0131e3c c0306c40

Kernel stack, beginning at top of stack.

| > Call Trace:    [<c0131ca3>] [<c0131d1e>] [<c0131e3c>] [<c0131eb8>] [<c0131fe8>]
| >   [<c0131f50>] [<c0105000>] [<c01057ae>] [<c0131f50>]

show_trace() tries to pick out kernel text addresses from the stack
and only print those addresses.  Running this thru ksymoops
with a matching System.map file will decode these addresses into
kernel function names.

| > Code: 89 02 c7 01 00 00 00 00 89 50 04 a1 18 6a 30 c0 89 48 04 89


That was fairly straightforward.  Did it help any?

--
~Randy

  reply	other threads:[~2003-08-11 19:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 17:19 Greg Nate
2003-08-11 19:43 ` Randy.Dunlap [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-11  1:09 war
2003-08-11 14:19 ` Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030811124317.07f7a426.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=Greg_Nate@adp.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®