NetBSD Problem Report #41243

From  Fri Apr 17 20:50:24 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 94F3763C1FB
	for <>; Fri, 17 Apr 2009 20:50:23 +0000 (UTC)
Message-Id: <>
Date: Fri, 17 Apr 2009 20:50:23 +0000 (UTC)
Subject: kernel core dump produces unusable core
X-Send-Pr-Version: www-1.0

>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
>Last-Modified:  Tue Nov 13 15:56:26 +0000 2012
>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  root@:/usr/src/sys/arch/i386/compile/Dell6
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                                                                   
breakpoint(c07cbdf2,cb3cda90,c07e8240,c0f9dac6,cb3cda6c,c0454b7c,ca219040,cb3e4d40,cb3cda9c,c0524dfa) at netbsd:breakpoint+0x4                                  
panic(c0100391,8,ca23fd00,ca7d4524,0,c0454d5d,cb3e4d40,ca23fd00,0,c0451730) at netbsd:panic+0x1b0                                                               
cpu_switchto(cb3e4d40,4,4,c07b06fa,0,7d4658,1,10,ca7d4524,0) at netbsd:cpu_switchto+0x1e                                                                        
sleepq_block(4,0,c07b06fa,4,0,44,4,ca7d4658,2,1) at netbsd:sleepq_block+0xeb
pccbb_power(ca7d4524,c0fb5b2c,cb3cdb9c,c05efd01,ca7d4edc,cb08c008,cb3cdbbc,c05f37d8,ca7d4524,0) at netbsd:pccbb_power+0x302                                     
pccbb_pcmcia_socket_disable(ca7d4524,0,cb3cdbcc,c0592595,cb08c008,cb08c008,cb3cdbcc,c02866b3,cb08c008,e29) at netbsd:pccbb_pcmcia_socket_disable+0x41           
ep_pcmcia_disable(cb08c008,e29,cb3cdbfc,c028843d,cb08c008,4000,e,0,c0861280,cb08c008) at netbsd:ep_pcmcia_disable+0x18                                          
epdisable(cb08c008,4000,e,0,c0861280,cb08c008,8,0,cb3cdd00,c07e3d20) at netbsd:epdisable+0x23                                                                   
epshutdown(cb08c008,0,cb3cdc2c,c053994b,8,cb3e4d40,0,0,cb3cdd00,0) at netbsd:epshutdown+0xbd                                                                    
doshutdownhooks(8,cb3e4d40,0,0,cb3cdd00,0,cb3cdcdc,c0460aa4,0,0) at netbsd:doshutdownhooks+0x2a                                                                 
cpu_reboot(0,0,0,0,0,0,cb3cdc9c,c05267ef,23,cb3cdcc0) at netbsd:cpu_reboot+0x1b
sys_reboot(cb3e4d40,cb3cdd00,cb3cdd28,cb3cdd40,c052679d,ca23af60,1,0,0,bfbfeb38) 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



State-Changed-From-To: open->feedback
State-Changed-When: Mon, 13 Jun 2011 02:17:37 +0000
Does this still happen? If it hasn't been fixed, I'd like to get it fixed
before -6.

From: Michal Suchanek <>
Subject: Re: kern/41243 (kernel core dump produces unusable core)
Date: Mon, 13 Jun 2011 13:49:48 +0200

 On 13 June 2011 04:17,  <> wrote:

 > Does this still happen? If it hasn't been fixed, I'd like to get it fixed
 > before -6.

 I have no idea. I got rid of the CPxJ notebook and I don't get crashes
 on the one I am still using.

 If it works for you then it might have been some issue with the power
 management messing up the kernel. After all, it crashed on suspend or
 resume. Or it's already fixed.



State-Changed-From-To: feedback->open
State-Changed-When: Wed, 22 Jun 2011 04:48:06 +0000
I don't have an i386 that has space for crashdumps (nor have I had any
crashes in a while on any of those) so I don't know if the problem with
crashdumps remains, or even if it ever affected anyone else.

Anybody want to speak up?


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.