Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 1997 21:53:32 +0200 (SAT)
From:      John Hay <jhay@zibbi.mikom.csir.co.za>
To:        hackers@FreeBSD.ORG (FreeBSD-hackers)
Subject:   help needed with kernel debuging and gdb
Message-ID:  <199705041953.VAA00504@zibbi.mikom.csir.co.za>

next in thread | raw e-mail | index | archive | help
Hi,

I'm getting a kernel panic with my latest ipx changes (the struct proc *
thingies). It panic trying to execute at address 0. I can't get gdb to
show me which function is doing that. The backtrace don't want to go
past trap(). I have tried setting the frame like in the example in
the handbook, but it does not seem to work. Is there someone that can
tell me how?

======
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x0
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0x0
stack pointer           = 0x10:0xf34a2ec4
frame pointer           = 0x10:0xf34a2f18
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 156 (IPXrouted)
interrupt mask          = 
trap number             = 12
panic: page fault
=====

# gdb -k kernel vmcore.3
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i386-unknown-freebsd), 
Copyright 1996 Free Software Foundation, Inc...
IdlePTD 1c5000
current pcb at 1ab1e8
panic: page fault
#0  0xf010dda3 in boot ()
(kgdb) bt
#0  0xf010dda3 in boot ()
#1  0xf010e062 in panic ()
#2  0xf0181231 in trap_fatal (frame=0xf34a2e88) at ../../i386/i386/trap.c:754
#3  0xf0180d00 in trap_pfault (frame=0xf34a2e88, usermode=0)
    at ../../i386/i386/trap.c:661
#4  0xf01809cf in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -263440896, 
      tf_esi = 10, tf_ebp = -213242088, tf_isp = -213242192, tf_ebx = 0, 
      tf_edx = -263274752, tf_ecx = -266709880, tf_eax = 0, tf_trapno = 12, 
      tf_err = 0, tf_eip = 0, tf_cs = 8, tf_eflags = 66118, 
      tf_esp = -267246481, tf_ss = -263274752}) at ../../i386/i386/trap.c:319
(kgdb) frame 4
#4  0xf01809cf in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -263440896, 
      tf_esi = 10, tf_ebp = -213242088, tf_isp = -213242192, tf_ebx = 0, 
      tf_edx = -263274752, tf_ecx = -266709880, tf_eax = 0, tf_trapno = 12, 
      tf_err = 0, tf_eip = 0, tf_cs = 8, tf_eflags = 66118, 
      tf_esp = -267246481, tf_ss = -263274752}) at ../../i386/i386/trap.c:319
319                             (void) trap_pfault(&frame, FALSE);
(kgdb) frame frame->tf_ebp frame->tf_eip
#0  0x0 in ?? ()
(kgdb) 
======

Thanks.

John
-- 
John Hay -- John.Hay@mikom.csir.co.za



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705041953.VAA00504>