NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/41243: kernel core dump produces unusable core

>Number:         41243
>Category:       kern
>Synopsis:       kernel core dump produces unusable core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 17 20:55:00 +0000 2009
>Originator:     Michal Suchanek
>Release:        5.0 RC3
NetBSD  5.0_RC3 NetBSD 5.0_RC3 (Dell_CPxJ) #0: Tue Apr 14 10:54:55 CEST 2009  
Following the faq I tried to examine a kernel core dump with gdb.

However, the result of running bt in the kernel debugger and in gdb while 
examinig the core file produces very different results.

syncing disks... done
unmounting file systems...
unmounting /dev/pts (ptyfs)...
unmounting /kern (kernfs)...  
unmounting /home (/dev/wd0f)...
unmounting / (/dev/wd0a)... done
panic: cpu_switchto: switching above IPL_SCHED (8)
fatal breakpoint trap in supervisor mode          
trap type 1 code 0 eip c05331ac cs 8 eflags 246 cr2 bbbc0a80 ilevel 8
Stopped in pid 316.1 (reboot) at        netbsd:breakpoint+0x4:  popl    %ebp
db{0}> bt                                                                   
40,cb3cda9c,c0524dfa) at netbsd:breakpoint+0x4                                  
panic(c0100391,8,ca23fd00,ca7d4524,0,c0454d5d,cb3e4d40,ca23fd00,0,c0451730) at n
cpu_switchto(cb3e4d40,4,4,c07b06fa,0,7d4658,1,10,ca7d4524,0) at netbsd:cpu_switc
sleepq_block(4,0,c07b06fa,4,0,44,4,ca7d4658,2,1) at netbsd:sleepq_block+0xeb
7d8,ca7d4524,0) at netbsd:pccbb_power+0x302                                     
bcc,c02866b3,cb08c008,e29) at netbsd:pccbb_pcmcia_socket_disable+0x41           
c008) at netbsd:ep_pcmcia_disable+0x18                                          
epdisable(cb08c008,4000,e,0,c0861280,cb08c008,8,0,cb3cdd00,c07e3d20) at netbsd:e
epshutdown(cb08c008,0,cb3cdc2c,c053994b,8,cb3e4d40,0,0,cb3cdd00,0) at netbsd:eps
doshutdownhooks(8,cb3e4d40,0,0,cb3cdd00,0,cb3cdcdc,c0460aa4,0,0) at netbsd:doshu
cpu_reboot(0,0,0,0,0,0,cb3cdc9c,c05267ef,23,cb3cdcc0) at netbsd:cpu_reboot+0x1b
 at netbsd:sys_reboot+0x74
syscall(cb3cdd48,b3,ab,1f,1f,1,d,bfbfeb38,2,256) at netbsd:syscall+0xc8

# gdb /netbsd.gdb
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386--netbsdelf"...
(gdb) target kvm /var/crash/netbsd.2.core
#0  0xc05399f2 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:926
926                     dumpsys();
(gdb) bt
#0  0xc05399f2 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:926
#1  0xc04727e0 in panic (
    fmt=0xc0100391 "cpu_switchto: switching above IPL_SCHED (%d)")
    at ../../../../kern/subr_prf.c:253
#2  0xc010038e in cpu_switchto ()
#3  0xca7d4524 in ?? ()
#4  0x00000000 in ?? ()

Crash netbsd

run 'bt' in the kernel debugger

save the core


run 'bt' in gdb

# gunzip /var/crash/netbsd.0.core.gz
# gdb netbsd.gdb
(gdb) target kvm /var/crash.netbsd.0.core
(gdb) bt

Home | Main Index | Thread Index | Old Index