Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2012 12:25:48 -0500
From:      Glen Barber <gjb@FreeBSD.org>
To:        freebsd-acpi@FreeBSD.org
Subject:   [panic] general protection fault - triggered in acpi_cmbat_get_bst() ?
Message-ID:  <20120123172547.GA1923@glenbarber.us>

next in thread | raw e-mail | index | archive | help

--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I'm running a 2-day old -CURRENT:

FreeBSD nucleus 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r230418M: Sat Jan
21 00:17:24 EST 2012     gjb@nucleus:/usr/obj/usr/src/sys/NUCLEUS  amd64

I've just had an ACPI-related panic, caused by the sysutils/gkrellm2
port, which looks to me like the battery state was not available.

I have kgdb output attached, and can provide any additional information
necessary.

Thanks,

Glen


--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="acpi_panic.txt"

Script started on Mon Jan 23 12:13:43 2012

nucleus# kgdb kernel.debug /var/crash/vmcore.6
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
ACPI Warning: Large Reference Count (0x5CA4) in object 0xfffffe00042c3780 (20120111/utdelete-491)
ACPI Warning: Large Reference Count (0x5CA3) in object 0xfffffe00042c3780 (20120111/utdelete-491)


Fatal trap 9: general protection fault while in kernel mode
cpuid = 2; apic id = 04
instruction pointer     = 0x20:0xffffffff802ebc80
stack pointer           = 0x28:0xffffff821d1dc4a0
frame pointer           = 0x28:0xffffff821d1dc4c0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 1850 (gkrellm)
trap number             = 9
panic: general protection fault
cpuid = 2
KDB: stack backtrace:
#0 0xffffffff806085ae at kdb_backtrace+0x5e
#1 0xffffffff805d8278 at panic+0x1d8
#2 0xffffffff80821da0 at trap_fatal+0x290
#3 0xffffffff8082224a at trap+0x10a
#4 0xffffffff8080e15f at calltrap+0x8
#5 0xffffffff802eea82 at AcpiUtAllocateObjectDescDbg+0x22
#6 0xffffffff802eeae1 at AcpiUtCreateInternalObjectDbg+0x31
#7 0xffffffff802ebebe at AcpiUtCopyIobjectToIobject+0x3e
#8 0xffffffff802d0003 at AcpiDsStoreObjectToLocal+0x93
#9 0xffffffff802dd98e at AcpiExStore+0x16e
#10 0xffffffff802db06a at AcpiExOpcode_1A_1T_1R+0x21a
#11 0xffffffff802d2133 at AcpiDsExecEndOp+0x383
#12 0xffffffff802e5c47 at AcpiPsParseLoop+0x3a7
#13 0xffffffff802e665d at AcpiPsParseAml+0x1bd
#14 0xffffffff802e733d at AcpiPsExecuteMethod+0x1dd
#15 0xffffffff802e0b52 at AcpiNsEvaluate+0x1c2
#16 0xffffffff802e40c1 at AcpiEvaluateObject+0xb1
#17 0xffffffff802fc78d at acpi_cmbat_get_bst+0xcd
Uptime: 1h40m17s
Dumping 933 out of 7846 MB:..2%..11%..21%..31%..42%..52%..61%..71%..81%..91%

Reading symbols from /boot/kernel/vesa.ko...Reading symbols from /boot/kernel/vesa.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/vesa.ko
Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /boot/kernel/zfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /boot/kernel/opensolaris.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/sem.ko...Reading symbols from /boot/kernel/sem.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sem.ko
Reading symbols from /boot/kernel/i915.ko...Reading symbols from /boot/kernel/i915.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/i915.ko
Reading symbols from /boot/kernel/iicbb.ko...Reading symbols from /boot/kernel/iicbb.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iicbb.ko
Reading symbols from /boot/kernel/iicbus.ko...Reading symbols from /boot/kernel/iicbus.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iicbus.ko
Reading symbols from /boot/kernel/iic.ko...Reading symbols from /boot/kernel/iic.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iic.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/drm.ko
#0  doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:224
224             __asm("movq %%gs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:224
#1  0xffffffff805d7b93 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:455
#2  0xffffffff805d824c in panic (fmt=0x1 <Address 0x1 out of bounds>) at /usr/src/sys/kern/kern_shutdown.c:643
#3  0xffffffff80821da0 in trap_fatal (frame=0x9, eva=Variable "eva" is not available.
) at /usr/src/sys/amd64/amd64/trap.c:819
#4  0xffffffff8082224a in trap (frame=0xffffff821d1dc3f0) at /usr/src/sys/amd64/amd64/trap.c:617
#5  0xffffffff8080e15f in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228
#6  0xffffffff802ebc80 in AcpiOsAcquireObject (Cache=0xfffffe0004277c20)
    at /usr/src/sys/contrib/dev/acpica/utilities/utcache.c:319
#7  0xffffffff802eea82 in AcpiUtAllocateObjectDescDbg (ModuleName=0xffffffff80883a80 "utcopy", LineNumber=1057, ComponentId=Variable "ComponentId" is not available.
)
    at /usr/src/sys/contrib/dev/acpica/utilities/utobject.c:437
#8  0xffffffff802eeae1 in AcpiUtCreateInternalObjectDbg (ModuleName=0xffffffff80883a80 "utcopy", LineNumber=1057, 
    ComponentId=1, Type=1) at /usr/src/sys/contrib/dev/acpica/utilities/utobject.c:112
#9  0xffffffff802ebebe in AcpiUtCopyIobjectToIobject (SourceDesc=0xfffffe0004362a80, DestDesc=0xffffff821d1dc578, 
    WalkState=0xfffffe000d4b7000) at /usr/src/sys/contrib/dev/acpica/utilities/utcopy.c:1057
#10 0xffffffff802d0003 in AcpiDsStoreObjectToLocal (Type=0 '\0', Index=2, ObjDesc=0xfffffe0004362a80, 
    WalkState=0xfffffe000d4b7000) at /usr/src/sys/contrib/dev/acpica/dispatcher/dsmthdat.c:632
#11 0xffffffff802dd98e in AcpiExStore (SourceDesc=0xfffffe0004362a80, DestDesc=0xfffffe00042c3780, WalkState=Variable "WalkState" is not available.
)
    at /usr/src/sys/contrib/dev/acpica/executer/exstore.c:184
#12 0xffffffff802db06a in AcpiExOpcode_1A_1T_1R (WalkState=0xfffffe000d4b7000)
    at /usr/src/sys/contrib/dev/acpica/executer/exoparg1.c:502
#13 0xffffffff802d2133 in AcpiDsExecEndOp (WalkState=0xfffffe000d4b7000)
    at /usr/src/sys/contrib/dev/acpica/dispatcher/dswexec.c:475
#14 0xffffffff802e5c47 in AcpiPsParseLoop (WalkState=0xfffffe000d4b7000) at /usr/src/sys/contrib/dev/acpica/parser/psloop.c:1249
#15 0xffffffff802e665d in AcpiPsParseAml (WalkState=0xfffffe000d4b7000) at /usr/src/sys/contrib/dev/acpica/parser/psparse.c:525
#16 0xffffffff802e733d in AcpiPsExecuteMethod (Info=0xfffffe000d44b400) at /usr/src/sys/contrib/dev/acpica/parser/psxface.c:368
#17 0xffffffff802e0b52 in AcpiNsEvaluate (Info=0xfffffe000d44b400) at /usr/src/sys/contrib/dev/acpica/namespace/nseval.c:193
#18 0xffffffff802e40c1 in AcpiEvaluateObject (Handle=0xfffffe00042a7b80, Pathname=0xffffffff8088975b "_BST", 
    ExternalParams=0x0, ReturnBuffer=0xffffff821d1dc820) at /usr/src/sys/contrib/dev/acpica/namespace/nsxfeval.c:289
#19 0xffffffff802fc78d in acpi_cmbat_get_bst (arg=Variable "arg" is not available.
) at /usr/src/sys/dev/acpica/acpi_cmbat.c:258
#20 0xffffffff802fca70 in acpi_cmbat_bst (dev=0xfffffe0004128b00, bstp=0xfffffe0008d05540)
    at /usr/src/sys/dev/acpica/acpi_cmbat.c:419
#21 0xffffffff802fb81c in acpi_battery_get_battinfo (dev=0x0, battinfo=0xffffffff80c004b0) at acpi_if.h:142
#22 0xffffffff802fbb44 in acpi_battery_sysctl (oidp=0xfffffe0004509b00, arg1=Variable "arg1" is not available.
) at /usr/src/sys/dev/acpica/acpi_battery.c:428
#23 0xffffffff805e119d in sysctl_root (oidp=Variable "oidp" is not available.
) at /usr/src/sys/kern/kern_sysctl.c:1509
#24 0xffffffff805e1428 in userland_sysctl (td=0x0, name=0xffffff821d1dca80, namelen=4, old=Variable "old" is not available.
)
    at /usr/src/sys/kern/kern_sysctl.c:1619
#25 0xffffffff805e18da in sys___sysctl (td=0xfffffe0008f728c0, uap=0xffffff821d1dcbc0) at /usr/src/sys/kern/kern_sysctl.c:1545
#26 0xffffffff808215ac in amd64_syscall (td=0xfffffe0008f728c0, traced=0) at subr_syscall.c:131
#27 0xffffffff8080e447 in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:387
#28 0x000000080592b0bc in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) list *0xffffffff802ebc80
0xffffffff802ebc80 is in AcpiOsAcquireObject (/usr/src/sys/contrib/dev/acpica/utilities/utcache.c:310).
305         if (Cache->ListHead)
306         {
307             /* There is an object available, use it */
308     
309             Object = Cache->ListHead;
310             Cache->ListHead = *(ACPI_CAST_INDIRECT_PTR (char,
311                                     &(((char *) Object)[Cache->LinkOffset])));
312     
313             Cache->CurrentDepth--;
314     
(kgdb) quit
nucleus# exit
exit

Script done on Mon Jan 23 12:16:02 2012

--J/dobhs11T7y2rNN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120123172547.GA1923>