From owner-freebsd-hackers Sun May 4 12:53:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA13319 for hackers-outgoing; Sun, 4 May 1997 12:53:44 -0700 (PDT) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA13313 for ; Sun, 4 May 1997 12:53:40 -0700 (PDT) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id VAA00504 for hackers@FreeBSD.ORG; Sun, 4 May 1997 21:53:32 +0200 (SAT) From: John Hay Message-Id: <199705041953.VAA00504@zibbi.mikom.csir.co.za> Subject: help needed with kernel debuging and gdb To: hackers@FreeBSD.ORG (FreeBSD-hackers) Date: Sun, 4 May 1997 21:53:32 +0200 (SAT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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