NetBSD-Bugs archive

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

Re: kern/40947: Thinkpad panics during shutdown



The following reply was made to PR kern/40947; it has been noted by GNATS.

From: Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
To: "Jared D. McNeill" <jmcneill%invisible.ca@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/40947: Thinkpad panics during shutdown
Date: Wed, 04 Mar 2009 09:41:36 +0100

 Jared D. McNeill wrote:
 > elink3.c should be adapted to use the new pmf instead of shutdownhooks. 
 > Can you please try the attached patch?
 
 Thanks. Stack trace looks a little different, but same panic. I'll 
 enclose the full dmesg.
 
        hauke
 
 <snip>
 kernel text is mapped with 0 large pages and 1007 normal pages
 Loaded initial symtab at 0xc045c394, strtab at 0xc0499808, # entries 14844
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
 
 NetBSD 5.0_RC2 (TP380D) #0: Wed Mar  4 09:16:40 CET 2009
        hf@Hochstuhl:/var/obj/netbsd-builds/5/i386/sys/arch/i386/compile/TP380D
 total memory = 81532 KB
 avail memory = 75956 KB
 Generic PC
 mainbus0 (root)
 cpu0 at mainbus0: Intel 586-class, 152MHz, id 0x52c
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0
 pchb0: Intel 82437MX (MTSC) Mobile System Controller (rev. 0x02)
 pcib0 at pci0 dev 1 function 0
 pcib0: Intel 82371MX (MPIIX) Mobile PCI I/O IDE Xcelerator (rev. 0x03)
 vga0 at pci0 dev 3 function 0: Neomagic MagicGraph 128ZV (rev. 0x02)
 wsdisplay0 at vga0 kbdmux 1
 drm at vga0 not configured
 pcic0 at pci0 dev 19 function 0: Cirrus Logic PD6729 PCMCIA controller
 pcic0: controller 0 (Cirrus PD6710/2X) has sockets A and B
 isa0 at pcib0
 lpt2 at isa0 port 0x3bc-0x3bf irq : polled
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 com0: console
 com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0 mux 1
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 attimer0 at isa0 port 0x40-0x43: AT Timer
 wdc0 at isa0 port 0x1f0-0x1f7 irq 14
 atabus0 at wdc0 channel 0
 sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.02
 audio0 at sb0: half duplex, mmap, independent
 opl0 at sb0: model OPL3
 midi0 at opl0: SB Yamaha OPL3 (CPU-intensive output)
 wss0 at isa0 port 0x530-0x537 irq 10 drq 0,1: CS4236B
 audio1 at wss0: full duplex, mmap
 pcppi0 at isa0 port 0x61
 midi1 at pcppi0: PC speaker (CPU-intensive output)
 spkr0 at pcppi0
 sysbeep0 at pcppi0
 npx0 at isa0 port 0xf0-0xff
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 attimer0: attached to pcppi0
 pcmcia0 at pcic0 controller 0 socket 0
 pcmcia1 at pcic0 controller 0 socket 1
 apm0 at mainbus0: Advanced Power Management BIOS: Power Management spec V1.2
 apm0: battery life expectancy: 80%
 apm0: A/C state: on
 apm0: battery charge state: high charging
 pcic0: using irq 7 for socket events
 pcic0: WARNING: powerhook_establish is deprecated
 pcic0: WARNING: powerhook_establish is deprecated
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 1: <CD-38E, , 2.0A> cdrom removable
 wd0 at atabus0 drive 0: <IC25N040ATCS05-0>
 wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
 pcmcia1: CIS version PCMCIA 2.0 or 2.1
 pcmcia1: CIS info: 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002
 pcmcia1: Manufacturer code 0x101, product 0x589
 pcmcia1: function 0: network adapter, ccr addr 10000 mask 3
 pcmcia1: function 0, config table entry 1: I/O card; irq mask ffff; 
 iomask 4, iospace 0-f; io8 io16 irqlevel
 pcmcia1: function 0, config table entry 3: I/O card; irq mask ffff; 
 iomask 4, iospace 0-f; io8 io16 irqlevel
 ep0 at pcmcia1 function 0: <3Com Corporation, 3C589D, TP/BNC LAN Card 
 Ver. 2a, 000002>
 pcic0: port 0x400-0x40f
 pcmcia1: card irq 9
 ep0: address 00:10:4b:7f:61:a3, 8KB byte-wide FIFO, 5:3 Rx:Tx split
 ep0: 10baseT, 10base5, 10base2 (default 10baseT)
 pad: requested 1 units
 pad0: outputs: 44100Hz, 16-bit, stereo
 audio2 at pad0: half duplex
 boot device: wd0
 root on wd0a dumps on wd0b
 dump_misc_init: max_paddr = 0x5000000
 init: copying out path `/sbin/init' 11
 Wed Mar  4 09:21:09 CET 2009
 swapctl: adding /dev/wd0b as swap device at priority 0
 Starting file system checks:
 /dev/rwd0a: file system is clean; not checking
 /dev/rwd0e: file system is clean; not checking
 /dev/rwd0f: file system is clean; not checking
 /dev/rwd0g: file system is clean; not checking
 Setting tty flags.
 Setting sysctl variables:
 vm.anonmin: 10 -> 50
 vm.anonmax: 80 -> 90
 vm.execmin: 5 -> 2
 vm.execmax: 30 -> 8
 vm.filemin: 10 -> 1
 vm.filemax: 50 -> 10
 vm.bufcache: 15 -> 8
 kern.logsigexit: 1 -> 1
 ddb.onpanic: 0 -> 1
 Starting network.
 /etc/rc: WARNING: $hostname not set.
 IPv6 mode: host
 Configuring network interfaces: ep0pcmcia1: card irq 9
 .
 Adding interface aliases:.
 Building databases: dev, utmp, utmpx done
 encoding -> de.nodead
 Starting syslogd.
 Setting date via ntp.
 Checking for core dump...
 savecore: no core dump
 Starting rpcbind.
 Mounting all filesystems...
 Clearing temporary files.
 Starting amd.
 Mar  4 09:21:43 Kolm amd[220]/info:  using configuration file /etc/amd.conf
 Creating a.out runtime link editor directory cache.
 Checking quotas: done.
 Starting statd.
 Starting lockd.
 Starting virecover.
 Starting apmd.
 Starting local daemons:.
 Updating motd.
 Starting ntpd.
 Starting xdm.
 Starting sshd.
 Starting sendmail.
 Starting smmsp.
 Starting inetd.
 Starting cron.
 Wed Mar  4 09:21:53 CET 2009
 Mar  4 09:21:56 Kolm getty[406]: /dev/ttyE0: Device not configured
 
 NetBSD/i386 (Kolm) (tty00)
 
 login: root
 Password:
 Mar  4 09:22:09 Kolm login: ROOT LOGIN (root) ON tty00
 Last login: Wed Mar  4 09:14:58 2009 on ttyE0
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
 
 NetBSD 5.0_RC2 (TP380D) #0: Wed Mar 4 09:16:40 CET 2009
 
 Welcome to NetBSD!
 
 You have new mail.
 [root@Kolm] ~ # shutdown -r now
 Shutdown NOW!
 shutdown: [pid 550]
 [root@Kolm] ~ # wall: You have write permission turned off; no reply 
 possible
  
 
 *** FINAL System shutdown message from root@Kolm ***
 System going down IMMEDIATELY 
 
  
 
 System shutdown time has arrived
 
 About to run shutdown hooks...
 Stopping cron.
 Stopping inetd.
 Stopping xdm.
 Waiting for PIDS: 325.
 Removing block-type swap devices
 swapctl: removing /dev/wd0b as swap device
 Wed Mar  4 09:22:48 CET 2009
 
 Done running shutdown hooks.
 Mar  4 09:22:55 Kolm syslogd: Exiting on signal 15
 syncing disks... done
 unmounting file systems...
 unmounting /dev/pts (ptyfs)...
 unmounting /kern (kernfs)...
 unmounting /var/tmp (tmpfs)...
 unmounting /tmp (tmpfs)...
 unmounting /local (/dev/wd0g)...
 unmounting /usr/pkg (/dev/wd0e)...
 unmounting /var (/dev/wd0f)...
 unmounting / (/dev/wd0a)...apm0: battery life expectancy: 80%
 apm0: A/C state: on
 apm0: battery charge state: high charging
   done
 panic: cpu_switchto: switching above IPL_SCHED (8)
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c02fc8cc cs 8 eflags 246 cr2 bbb99d6c ilevel 8
 Stopped in pid 550.1 (reboot) at        netbsd:breakpoint+0x4:  popl    %ebp
 db{0}> t
 
breakpoint(c7d85a3c,c02f33cf,c6931ce0,c7d85a50,c7d85a94,c7ce0500,c7d85aac,c010038e,c0100391,8)
 
 at netbsd:breakpoint+0x4
 
panic(c0100391,8,c7ce0500,c7ce0500,c7d85a94,c025efef,c7ce0500,c6931ce0,0,c03fbe40)
 
 at netbsd:panic+0x182
 cpu_switchto(c7ce0500,1e,c7ce0500,c7ce0500,0,3eaa4b,1,c0436fd4,c7ce0500,0) 
 at netbsd:cpu_switchto+0x1e
 sleepq_block(1e,0,8,8,c6920030,c0940010,c7d80010,c7ce0500,0,c7d85b4c) at 
 netbsd:sleepq_block+0xa9
 ltsleep(c033ccd7,20,c03eaa4b,1e,0,3e0,1,0,c6e526b8,8) at 
 netbsd:ltsleep+0x10f
 
pcic_delay(c6e526b8,12c,c03eaa4b,c0387b20,c771d808,c771d808,c7d85b8c,c0341f69,c6e526b8,400)
 
 at netbsd:pcic_delay+0x8a
 
pcic_chip_socket_disable(c6e526b8,400,c7d85bac,c018637b,0,c771d808,c7d85bac,c018619f,c771d808,400)
 
 at netbsd:pcic_chip_socket_disable+0x64
 
ep_pcmcia_disable(c771d808,400,e,c771d808,8,c771d808,c7d85bcc,c0186b39,c771d808,0)
 
 at netbsd:ep_pcmcia_disable+0x15
 epdisable(c771d808,0,8,8,c6c7b6a4,0,c7d85bec,c0267d7e,c6c7b6a4,0) at 
 netbsd:epdisable+0x23
 epshutdown(c6c7b6a4,0,1,1,c6c7b6a4,c7d85bf8,c7d85c0c,c0252a45,c6c7b6a4,0) 
 at netbsd:epshutdown+0x48
 device_pmf_driver_shutdown(c6c7b6a4,0,1,1,0,c7d85d00,c7d85c2c,c025dead,0,0) 
 at netbsd:device_pmf_driver_shutdown+0x1d
 pmf_system_shutdown(0,0,0,c0300c6a,8,0,c7d85c3c,c0300c85,c7d85d00,0) at 
 netbsd:pmf_system_shutdown+0x70
 doshutdownhooks(c7d85d00,0,c7d85cdc,c026750f,0,0,c7d85c9c,c025adbb,c6924f40,1) 
 at netbsd:doshutdownhooks+0x3f
 cpu_reboot(0,0,c7d85c9c,c025adbb,c6924f40,1,4e1c000,4e1c000,c7d85c90,c7d68b1c) 
 at netbsd:cpu_reboot+0x6e
 
sys_reboot(c7ce0500,c7d85d00,c7d85d28,c7d68b1c,c02f54e1,c693acc0,1,0,0,bfbfeef8)
 
 at netbsd:sys_reboot+0x6b
 syscall(c7d85d48,b3,ab,1f,1f,1,d,bfbfeef8,0,256) at netbsd:syscall+0xf7
 db{0}>
 
 </snip>
 


Home | Main Index | Thread Index | Old Index