Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 12:12:34 -0400
From:      Glen Barber <gjb@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   [panic] 10-CURRENT r239865: General protection fault (sysctl)
Message-ID:  <20120911161234.GA1313@glenbarber.us>

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

I upgraded to head/ r239865 (Last Changed Date: 2012-09-11 09:29:50).

My laptop now panics with on boot with the new kernel.

Backtrace (and hopefully some useful) information is attached.  I can
provide any additional information necessary.

Regards,

Glen

Script started on Tue Sep 11 12:03:54 2012
root@nucleus:/usr/obj/usr/src/sys/NUCLEUS # kgdb kernel.debug /var/crash/vmcore.3
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:
Copyright (c) 1992-2012 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.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #29 r240362: Tue Sep 11 11:12:10 EDT 2012
    root@nucleus:/usr/obj/usr/src/sys/NUCLEUS amd64
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Intel(R) Core(TM) i3 CPU       M 370  @ 2.40GHz (2394.06-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x20655  Family = 6  Model = 25  Stepping = 5
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x9ae3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT>
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 7867260928 (7502 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ACRSYS ACRPRDCT>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  4
 cpu3 (AP): APIC ID:  5
ioapic0: Changing APIC ID to 2
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
ctl: CAM Target Layer loaded
cryptosoft0: <software crypto> on motherboard
acpi0: <ACRSYS ACRPRDCT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz quality 440
Event timer "HPET4" frequency 14318180 Hz quality 440
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x17> port 0x62,0x66 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x3050-0x3057 mem 0xb0000000-0xb03fffff,0xa0000000-0xafffffff irq 16 at device 2.0 on pci0
pci0: <simple comms> at device 22.0 (no driver attached)
ehci0: <Intel PCH USB 2.0 controller USB-B> mem 0xb4405c00-0xb4405fff irq 16 at device 26.0 on pci0
usbus0: EHCI version 1.0
usbus0 on ehci0
hdac0: <Intel 5 Series/3400 Series HDA Controller> mem 0xb4400000-0xb4403fff irq 22 at device 27.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
bge0: <Broadcom BCM57780 A1, ASIC rev. 0x57780001> mem 0xb3400000-0xb340ffff irq 16 at device 0.0 on pci1
bge0: CHIP ID 0x57780001; ASIC REV 0x57780; CHIP REV 0x577800; PCI-E
miibus0: <MII bus> on bge0
brgphy0: <BCM57780 1000BASE-T media interface> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bge0: Ethernet address: b8:70:f4:8a:b8:15
pcib2: <ACPI PCI-PCI bridge> at device 28.1 on pci0
pcib2: failed to allocate initial I/O port window: 0x1000-0x1fff
pci2: <ACPI PCI bus> on pcib2
ath0: <Atheros 9287> mem 0xb2400000-0xb240ffff irq 17 at device 0.0 on pci2
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9287 mac 384.2 RF5133 phy 15.15
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
ehci1: <Intel PCH USB 2.0 controller USB-A> mem 0xb4405800-0xb4405bff irq 23 at device 29.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci1
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel 5 Series/3400 Series AHCI SATA controller> port 0x3048-0x304f,0x305c-0x305f,0x3040-0x3047,0x3058-0x305b,0x3020-0x303f mem 0xb4405000-0xb44057ff irq 19 at device 31.2 on pci0
ahci0: AHCI v1.30 with 4 3Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahciem0: <AHCI enclosure management bridge> on ahci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <dasp> at device 31.6 (no driver attached)
pcib4: <ACPI Host-PCI bridge> on acpi0
pci255: <ACPI PCI bus> on pcib4
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
coretemp2: <CPU On-Die Thermal Sensors> on cpu2
est2: <Enhanced SpeedStep Frequency Control> on cpu2
p4tcc2: <CPU Frequency Thermal Control> on cpu2
coretemp3: <CPU On-Die Thermal Sensors> on cpu3
est3: <Enhanced SpeedStep Frequency Control> on cpu3
p4tcc3: <CPU Frequency Thermal Control> on cpu3
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
hdacc0: <Realtek ALC272 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC272 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC272 (Analog 2.0+HP/2.0)> at nid 20,33 and 25 on hdaa0
pcm1: <Realtek ALC272 (Left Analog Mic)> at nid 24 on hdaa0
hdacc1: <Intel Ibex Peak HDA CODEC> at cad 3 on hdac0
hdaa1: <Intel Ibex Peak Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Ibex Peak (HDMI/DP 8ch)> at nid 4 on hdaa1
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
ugen0.2: <vendor 0x8087> at usbus0
uhub2: <vendor 0x8087 product 0x0020, class 9/0, rev 2.00/0.00, addr 2> on usbus0
ugen1.2: <vendor 0x8087> at usbus1
uhub3: <vendor 0x8087 product 0x0020, class 9/0, rev 2.00/0.00, addr 2> on usbus1
uhub2: 6 ports with 6 removable, self powered
uhub3: 8 ports with 8 removable, self powered
ugen0.3: <APB5503FB> at usbus0
ugen1.3: <PixArt> at usbus1
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <INTEL SSDSC2CW180A3 400i> ATA-9 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 171705MB (351651888 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
ses0 at ahciem0 bus 0 scbus2 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
cd0: <PIONEER DVD-RW DVRTD10RS 1.00> Removable CD-ROM SCSI-0 device 
SMP: AP CPU #3 Launched!
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Timecounter "TSC-low" frequency 9351802 Hz quality 1000
WARNING: WITNESS option enabled, expect reduced performance.
Enter passphrase for ada0p4: ugen0.4: <Generic> at usbus0
umass0: <Bulk-In, Bulk-Out, Interface> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:4:0:-1: Attached to scbus4
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <Generic- Multi-Card 1.00> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
GEOM_ELI: Device ada0p4.eli created.
GEOM_ELI: Encryption: AES-CBC 256
GEOM_ELI:     Crypto: software
Trying to mount root from zfs:tank0 []...
<118>Setting hostuuid: f7686241-dbdc-fdec-dda5-b870f48ab815.
<118>Setting hostid: 0xe53060ee.
<118>Entropy harvesting: interrupts ethernet point_to_point kickstart.
<118>Starting file system checks:
<118>Mounting local file systems:.
<118>Setting hostname: nucleus.
<118>Additional TCP/IP options: IPv6 Privacy Addresses IPv6 CPE WANIF=wlan0.
wlan0: Ethernet address: ec:55:f9:76:ef:7f
<118>Starting wpa_supplicant.
<118>Starting Network: lo0 bge0 ath0.
<118>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
<118>   options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
<118>   inet6 ::1 prefixlen 128 
<118>   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
<118>   inet 127.0.0.1 netmask 0xff000000 
<118>   nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
<118>bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
<118>   options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
<118>   ether b8:70:f4:8a:b8:15
<118>   nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
<118>   media: Ethernet autoselect (100baseTX <full-duplex>)
<118>   status: active
<118>ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
<118>   ether ec:55:f9:76:ef:7f
<118>   nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
<118>   media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
<118>   status: associated
<118>Starting devd.


Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer     = 0x20:0xffffffff8034c073
stack pointer           = 0x28:0xffffff822cdee8c0
frame pointer           = 0x28:0xffffff822cdee900
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         = 620 (sysctl)
trap number             = 9
panic: general protection fault
cpuid = 1
KDB: stack backtrace:
#0 0xffffffff808543b6 at kdb_backtrace+0x66
#1 0xffffffff8082199e at panic+0x1ce
#2 0xffffffff80b03840 at trap_fatal+0x290
#3 0xffffffff80b03f81 at trap+0x241
#4 0xffffffff80aef713 at calltrap+0x8
#5 0xffffffff8082aead at sysctl_root+0x18d
#6 0xffffffff8082b138 at userland_sysctl+0x158
#7 0xffffffff8082b5ea at sys___sysctl+0xaa
#8 0xffffffff80b02fff at amd64_syscall+0x32f
#9 0xffffffff80aef9f7 at Xfast_syscall+0xf7
Uptime: 30s
Dumping 502 out of 7838 MB:..4%..13%..23%..32%..42%..51%..61%..71%..83%..93%

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /bootdir/boot/kernel/zfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /bootdir/boot/kernel/opensolaris.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/geom_eli.ko...Reading symbols from /bootdir/boot/kernel/geom_eli.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_eli.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /bootdir/boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /bootdir/boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/sem.ko...Reading symbols from /bootdir/boot/kernel/sem.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sem.ko
#0  doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:229
229             __asm("movq %%gs:%1,%0" : "=r" (td)
(kgdb) frame 6
#6  0xffffffff8034c073 in acpi_cpu_global_cx_lowest_sysctl (oidp=Variable "oidp" is not available.
) at /usr/src/sys/dev/acpica/acpi_cpu.c:1269
1269            sc = device_get_softc(cpu_devices[i]);
(kgdb) p sc
$1 = {{o = {size = 9184, gen = 0, pos = 8829, ptr = 0xffffff800028d028, 
      buf = 0xffffff800028d038 "kbd1 at kbdmux0\r\nctl: CAM Target Layer loaded\r\ncryptosoft0: <software crypto> on motherboard\r\nacpi0: <ACRSYS ACRPRDCT> on motherboard\r\nacpi0: Power Button (fixed)\r\ncpu0: <ACPI CPU> on acpi0\r\ncpu1: <AC"...}, i = {size = 3062, gen = 0, pos = 0, 
      ptr = 0xffffff800028d030, buf = 0xffffff800028f418 "ÿÿÿÿÿÿÿÿ"}, brk_state = 0, flags = 0, tty = 0xfffffe00041ce000}, {o = {size = 3061, gen = 0, 
      pos = 0, ptr = 0xffffff800028d02c, buf = 0xffffff800029000e "ÿÿ"}, i = {size = 1021, gen = 0, pos = 0, ptr = 0xffffff800028d034, 
      buf = 0xffffff8000290c03 ""}, brk_state = 0, flags = 1, tty = 0xfffffe00041cdc00}}
(kgdb) p cpu_devices[i]
$2 = 0xfffffe0004706c80
(kgdb) p *cpu_devices[i]
$3 = {ops = 0xfffffe0008925000, link = {tqe_next = 0xfffffe000892c100, tqe_prev = 0xfffffe0004706828}, devlink = {tqe_next = 0xfffffe0004700500, 
    tqe_prev = 0xfffffe01fbff98c0}, parent = 0xfffffe00045b0ca0, children = {tqh_first = 0xfffffe000892cca8, tqh_last = 0xffffffff80bc5ce6}, 
  driver = 0xfffffe0004706000, devclass = 0xfffffe0004650008, unit = 67305985, nameunit = 0x100f0e0d0c0b0a09 <Address 0x100f0e0d0c0b0a09 out of bounds>, 
  desc = 0x1817161514131211 <Address 0x1817161514131211 out of bounds>, busy = 471538201, state = 538910237, devflags = 606282273, flags = 673654309, 
  order = 741026345, ivars = 0x3837363534333231, softc = 0x403f3e3d3c3b3a39, sysctl_ctx = {tqh_first = 0x4847464544434241, 
    tqh_last = 0x504f4e4d4c4b4a49}, sysctl_tree = 0x5857565554535251}
(kgdb) bt
#0  doadump (textdump=Variable "textdump" is not available.
) at pcpu.h:229
#1  0xffffffff808212ae in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:449
#2  0xffffffff80821977 in panic (fmt=0x1 <Address 0x1 out of bounds>) at /usr/src/sys/kern/kern_shutdown.c:637
#3  0xffffffff80b03840 in trap_fatal (frame=0x9, eva=Variable "eva" is not available.
) at /usr/src/sys/amd64/amd64/trap.c:870
#4  0xffffffff80b03f81 in trap (frame=0xffffff822cdee810) at /usr/src/sys/amd64/amd64/trap.c:605
#5  0xffffffff80aef713 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228
#6  0xffffffff8034c073 in acpi_cpu_global_cx_lowest_sysctl (oidp=Variable "oidp" is not available.
) at /usr/src/sys/dev/acpica/acpi_cpu.c:1269
#7  0xffffffff8082aead in sysctl_root (oidp=Variable "oidp" is not available.
) at /usr/src/sys/kern/kern_sysctl.c:1513
#8  0xffffffff8082b138 in userland_sysctl (td=0xfffffe000bb60000, name=0xffffff822cdeea30, namelen=4, old=Variable "old" is not available.
) at /usr/src/sys/kern/kern_sysctl.c:1623
#9  0xffffffff8082b5ea in sys___sysctl (td=0xfffffe000bb60000, uap=0xffffff822cdeeb70) at /usr/src/sys/kern/kern_sysctl.c:1549
#10 0xffffffff80b02fff in amd64_syscall (td=0xfffffe000bb60000, traced=0) at subr_syscall.c:135
#11 0xffffffff80aef9f7 in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:387
#12 0x00000008009363ea in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) quit
root@nucleus:/usr/obj/usr/src/sys/NUCLEUS # ^D

Script done on Tue Sep 11 12:05:18 2012




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