Kernel panic with ACPI and IBM Thinkpad

Matthias Schmidt schmidtm at mathematik.uni-marburg.de
Fri Oct 14 01:54:31 PDT 2005


Hi,

my IBM Thinkpad T43 paniced after I resume the machine from sleep (ACPI 
S3).  I can reproduce the panic easily (just Suspend/Resume :)  I run a 
GENERIC kernel (DragonFly 1.3.6-DEVELOPMENT).

Fatal trap 18: integer divide fault while in kernel mode
instruction pointer     = 0x8:0xc0498c62
stack pointer           = 0x10:0xceb8492c
frame pointer           = 0x10:0xceb84948
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, IOPL = 0
current process         = 665 (acpiconf)
current thread          = pri 38 (CRIT)
(kgdb) bt
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:519
#1  0xc02a521d in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:352
#2  0xc02a56d2 in panic (fmt=0xc04edc0c "from debugger") at 
/usr/src/sys/kern/kern_shutdown.c:665
#3  0xc0161b16 in db_panic (addr=-1068921758, have_addr=0, count=1, 
modif=0xceb8479c "") at /usr/src/sys/ddb/db_command.c:449
#4  0xc0161aab in db_command (last_cmdp=0xc05a16f0, 
cmd_table=0xc054e540, aux_cmd_tablep=0xc0545a18, 
aux_cmd_tablep_end=0xc0545a30)
    at /usr/src/sys/ddb/db_command.c:345
#5  0xc0161b8b in db_command_loop () at /usr/src/sys/ddb/db_command.c:471
#6  0xc0164834 in db_trap (type=18, code=0) at /usr/src/sys/ddb/db_trap.c:72
#7  0xc0495f7c in kdb_trap (type=18, code=0, regs=0xceb848ec) at 
/usr/src/sys/i386/i386/db_interface.c:161
#8  0xc04aaa1c in trap_fatal (frame=0xceb848ec, eva=0) at 
/usr/src/sys/i386/i386/trap.c:1127
#9  0xc04aa48c in trap (frame=
      {tf_fs = -826802152, tf_es = -1066663920, tf_ds = 16, tf_edi = 0, 
tf_esi = -911061248, tf_ebp = -826783416, tf_isp = -826783464, tf_ebx = 
-911061248, tf_edx = 1, tf_ecx = 9, tf_eax = 0, tf_trapno = 18, tf_err = 
0, tf_eip = -1068921758, tf_cs = 8, tf_eflags = 519, tf_esp = 0, tf_ss = 
-8388608})
    at /usr/src/sys/i386/i386/trap.c:787
#10 0xc049725f in calltrap () at /usr/src/sys/i386/i386/exception.s:776
#11 0xceb80018 in ?? ()
#12 0xc06c0010 in ?? ()
#13 0x00000010 in ?? ()
#14 0x00000000 in ?? ()
#15 0xc9b24f00 in ?? ()
#16 0xceb84948 in ?? ()
#17 0xceb84918 in ?? ()
#18 0xc9b24f00 in ?? ()
#19 0x00000001 in ?? ()
#20 0x00000009 in ?? ()
#21 0x00000000 in ?? ()
#22 0x00000012 in ?? ()
#23 0x00000000 in ?? ()
#24 0xc0498c62 in splz_intr () at ipl.s:361
#25 0x00000008 in ?? ()
#26 0x00000207 in ?? ()
#27 0x00000000 in ?? ()
#28 0xff800000 in ?? ()
#29 0x00000297 in ?? ()
#30 0xc02aaf2a in lwkt_yield_quick () at /usr/src/sys/kern/lwkt_thread.c:900
#31 0xc06d9a2d in ?? ()
#32 0xc17e9ea8 in ?? ()
#33 0x00000003 in ?? ()
#34 0xc02e5d36 in vop_stdunlock (ap=0x0) at 
/usr/src/sys/kern/vfs_default.c:1236
#35 0xc0291a83 in cdevsw_putport (port=0xc05b9440, lmsg=0xceb849ac) at 
/usr/src/sys/kern/kern_device.c:100
#36 0xc02ac216 in lwkt_domsg (port=0x0, msg=0xceb849ac) at msgport2.h:86
#37 0xc0291cf3 in dev_dioctl (dev=0xccdb0b80, cmd=0, data=0x0, fflag=0, 
td=0x0) at /usr/src/sys/kern/kern_device.c:222
#38 0xc02fcbe0 in spec_ioctl (ap=0x0) at 
/usr/src/sys/vfs/specfs/spec_vnops.c:370
#39 0xc02fc76c in spec_vnoperate (ap=0x0) at 
/usr/src/sys/vfs/specfs/spec_vnops.c:125
#40 0xc0412f4b in ufs_vnoperatespec (ap=0x0) at 
/usr/src/sys/vfs/ufs/ufs_vnops.c:2396
#41 0xc02f772d in vop_ioctl (ops=0x0, vp=0x0, command=0, data=0x0, 
fflag=0, cred=0x0, td=0x0) at /usr/src/sys/kern/vfs_vopops.c:569
#42 0xc02f7240 in vn_ioctl (fp=0xc17451c0, com=2147766275, 
data=0xceb84b50 "\003", td=0x0) at /usr/src/sys/kern/vfs_vnops.c:894
#43 0xc02c03b5 in mapped_ioctl (fd=3, com=2147766275, uspc_data=---Can't 
read userspace from dump, or kernel process---

) at file2.h:91
#44 0xc02bfeef in ioctl (uap=0x0) at /usr/src/sys/kern/sys_generic.c:392
#45 0xc04aadb8 in syscall2 (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077937884, tf_esi 
= -1077937656, tf_ebp = -1077938008, tf_isp = -826782348, tf_ebx = 
-1077938096, tf_edx = 2, tf_ecx = 671531072, tf_eax = 54, tf_trapno = 
12, tf_err = 2, tf_eip = 671848228, tf_cs = 31, tf_eflags = 642, tf_esp 
= -1077938132, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1338
---Type <return> to continue, or q <return> to quit---
#46 0xc04972ea in Xint0x80_syscall () at 
/usr/src/sys/i386/i386/exception.s:854
#47 0x0000002f in ?? ()
#48 0x0000002f in ?? ()
#49 0x0000002f in ?? ()
#50 0xbfbff924 in ?? ()
#51 0xbfbffa08 in ?? ()
#52 0xbfbff8a8 in ?? ()
#53 0xceb84d74 in ?? ()
#54 0xbfbff850 in ?? ()
#55 0x00000002 in ?? ()
#56 0x2806c040 in ?? ()
#57 0x00000036 in ?? ()
#58 0x0000000c in ?? ()
#59 0x00000002 in ?? ()
#60 0x280b9724 in ?? ()
#61 0x0000001f in ?? ()
#62 0x00000282 in ?? ()
#63 0xbfbff82c in ?? ()
#64 0x0000002f in ?? ()
#65 0x00000000 in ?? ()
#66 0x00000000 in ?? ()
#67 0x00000000 in ?? ()
#68 0x00000000 in ?? ()
#69 0x1afab000 in ?? ()
#70 0xc9b24f00 in ?? ()
#71 0xc05bddf4 in softclock_pcpu_ary ()
#72 0xceb84520 in ?? ()
#73 0xceb84500 in ?? ()
#74 0xff800000 in ?? ()
#75 0xc02aad85 in lwkt_switch () at /usr/src/sys/kern/lwkt_thread.c:720

dmesg is attached and the kernel crash dump is available on leaf in my 
home dir (/home/matthias).

Greets

	Matthias
Copyright (c) 2003, 2004, 2005 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
DragonFly 1.3.6-DEVELOPMENT #1: Sun Oct  2 12:34:16 CEST 2005
    root at xxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/GENERIC
TSC clock: 798109544 Hz, i8254 clock: 1193198 Hz
CPU: Intel(R) Pentium(R) M processor 2.00GHz (798.10-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6d8  Stepping = 8
  Features=0xafe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
real memory  = 535691264 (523136K bytes)
avail memory = 508788736 (496864K bytes)
Preloaded elf kernel "/kernel" at 0xc06ff000.
Preloaded elf module "/modules/acpi.ko" at 0xc06ff378.
Pentium Pro MTRR support enabled
md0: Malloc disk
pcibios: BIOS version 2.10
Using $PIR table, 14 entries at 0xc00fdeb0
npx0: <math processor> on motherboard
npx0: INT 16 interface
Using XMM optimized bcopy/copyin/copyout
acpi0: <IBM TP-1Y> on motherboard
installed MI handler for int 9
acpi_ec0: <Embedded Controller: GPE 0x1c, ECDT> port 0x66,0x62 on acpi0
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
Warning: ACPI is disabling APM's device.  You can't run both
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=8086 device=2591)> irq 11 at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 5460 graphics accelerator> at 0.0 irq 11
pcib2: <PCI to PCI bridge (vendor=8086 device=2660)> irq 11 at device 28.0 on pci0
pci2: <PCI bus> on pcib2
bge0: <Broadcom BCM5751M Gigabit Ethernet, ASIC rev. 0x4101> mem 0xa8200000-0xa820ffff irq 11 at device 0.0 on pci2
miibus0: <MII bus> on bge0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bge0: MAC address: 00:11:25:b4:21:68
installed MI handler for int 11
pcib3: <PCI to PCI bridge (vendor=8086 device=2664)> irq 11 at device 28.2 on pci0
pci3: <PCI bus> on pcib3
uhci0: <Intel 82801FB (ICH6) USB controller USB-A> port 0x1800-0x181f irq 11 at device 29.0 on pci0
usb0: <Intel 82801FB (ICH6) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801FB (ICH6) USB controller USB-B> port 0x1820-0x183f irq 11 at device 29.1 on pci0
usb1: <Intel 82801FB (ICH6) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801FB (ICH6) USB controller USB-C> port 0x1840-0x185f irq 11 at device 29.2 on pci0
usb2: <Intel 82801FB (ICH6) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
intr 11 at 63896 hz, livelocked! limiting at 20000 hz
ugen0: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 2
uhci3: <Intel 82801FB (ICH6) USB controller USB-D> port 0x1860-0x187f irq 11 at device 29.3 on pci0
usb3: <Intel 82801FB (ICH6) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
pci0: <USB controller> at 29.7 irq 11
pcib4: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
pci4: <PCI bus> on pcib4
cbb0: <RF5C476 PCI-CardBus Bridge> mem 0xa8410000-0xa8410fff irq 11 at device 0.0 on pci4
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci4: <unknown card> (vendor=0x168c, dev=0x1014) at 2.0 irq 11
pci0: <unknown card> (vendor=0x8086, dev=0x266e) at 30.2 irq 11
pci0: <unknown card> (vendor=0x8086, dev=0x266d) at 30.3 irq 11
isab0: <PCI to ISA bridge (vendor=8086 device=2641)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Generic PCI ATA controller> port 0x18c0-0x18cf,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.2 on pci0
ata0: at 0x1f0 irq 14 on atapci0
installed MI handler for int 14
ata1: at 0x170 irq 15 on atapci0
installed MI handler for int 15
pci0: <unknown card> (vendor=0x8086, dev=0x266a) at 31.3 irq 11
orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd1800-0xd27ff,0xdc000-0xdffff,0xe0000-0xeffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
installed MI handler for int 6
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
installed MI handler for int 1
psm0: <PS/2 Mouse> irq 12 on atkbdc0
installed MI handler for int 12
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: can't drain, serial port might not exist, disabling
sio1: can't drain, serial port might not exist, disabling
ppc0: cannot reserve I/O port range
installed MI handler for int 0
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 76319MB <HTS541080G9AT00> [155061/16/63] at ata0-master BIOSDMA
acd0: CD-RW <HL-DT-STCD-RW/DVD DRIVE GCC-4242N> at ata1-master PIO4
intr 11 at 1 hz, removing livelock limit
Mounting root from ufs:/dev/ad0s2a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <HL-DT-ST RW/DVD GCC-4242N 0201> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present




More information about the Kernel mailing list