Re: [CAM] panic / general protection fault while in kernel mode on head r256931

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 23 Oct 2013 06:22:32 -0500
On 10/23/2013 1:59 AM, Alexander Motin wrote:
> Hi.
> 
> Unfortunately I have never seen that, but I'll try to look harder. Could
> you please tell a bit about your controllers/devices? What triggered the
> issue?

(Sorry for confusing pastes in email, bad client)

Not sure what was done, I was just editing files in vim.

dmesg output:

> Copyright (c) 1992-2013 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 11.0-CURRENT #82 r256931: Tue Oct 22 16:59:30 CDT 2013
>     root_at_c1100-1.shatow.net:/usr/obj/usr/src/sys/GENERIC amd64
> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
> WARNING: WITNESS option enabled, expect reduced performance.
> CPU: Intel(R) Xeon(R) CPU           L5520  _at_ 2.27GHz (2266.79-MHz K8-class CPU)
>   Origin = "GenuineIntel"  Id = 0x106a5  Family = 0x6  Model = 0x1a  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=0x9ce3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT>
>   AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
>   AMD Features2=0x1<LAHF>
>   TSC: P-state invariant, performance statistics
> real memory  = 77309411328 (73728 MB)
> avail memory = 75053207552 (71576 MB)
> Event timer "LAPIC" quality 400
> ACPI APIC Table: <082009 APIC1931>
> FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
> FreeBSD/SMP: 2 package(s) x 4 core(s) x 2 SMT threads
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
>  cpu2 (AP): APIC ID:  2
>  cpu3 (AP): APIC ID:  3
>  cpu4 (AP): APIC ID:  4
>  cpu5 (AP): APIC ID:  5
>  cpu6 (AP): APIC ID:  6
>  cpu7 (AP): APIC ID:  7
>  cpu8 (AP): APIC ID: 16
>  cpu9 (AP): APIC ID: 17
>  cpu10 (AP): APIC ID: 18
>  cpu11 (AP): APIC ID: 19
>  cpu12 (AP): APIC ID: 20
>  cpu13 (AP): APIC ID: 21
>  cpu14 (AP): APIC ID: 22
>  cpu15 (AP): APIC ID: 23
> ioapic0 <Version 2.0> irqs 0-23 on motherboard
> random: <Software, Yarrow> initialized
> kbd1 at kbdmux0
> module_register_init: MOD_LOAD (vesa, 0xffffffff80d21900, 0) error 19
> acpi0: <082009 XSDT1931> on motherboard
> acpi0: Power Button (fixed)
> unknown: I/O range not supported
> acpi0: reservation of 0, a0000 (3) failed
> acpi0: reservation of 100000, bff00000 (3) failed
> cpu0: <ACPI CPU> on acpi0
> ACPI BIOS Warning (bug): Incorrect checksum in table [OEMB] - 0x5C, should be 0x59 (20130823/tbprint-233)
> cpu1: <ACPI CPU> on acpi0
> cpu2: <ACPI CPU> on acpi0
> cpu3: <ACPI CPU> on acpi0
> cpu4: <ACPI CPU> on acpi0
> cpu5: <ACPI CPU> on acpi0
> cpu6: <ACPI CPU> on acpi0
> cpu7: <ACPI CPU> on acpi0
> cpu8: <ACPI CPU> on acpi0
> cpu9: <ACPI CPU> on acpi0
> cpu10: <ACPI CPU> on acpi0
> cpu11: <ACPI CPU> on acpi0
> cpu12: <ACPI CPU> on acpi0
> cpu13: <ACPI CPU> on acpi0
> cpu14: <ACPI CPU> on acpi0
> cpu15: <ACPI CPU> on acpi0
> attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
> Timecounter "i8254" frequency 1193182 Hz quality 0
> Event timer "i8254" frequency 1193182 Hz quality 100
> atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
> Event timer "RTC" frequency 32768 Hz quality 0
> hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
> Timecounter "HPET" frequency 14318180 Hz quality 950
> Event timer "HPET" frequency 14318180 Hz quality 350
> Event timer "HPET1" frequency 14318180 Hz quality 340
> Event timer "HPET2" frequency 14318180 Hz quality 340
> Event timer "HPET3" frequency 14318180 Hz quality 340
> Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pcib2: <ACPI PCI-PCI bridge> at device 3.0 on pci0
> pci2: <ACPI PCI bus> on pcib2
> pcib3: <ACPI PCI-PCI bridge> at device 7.0 on pci0
> pci3: <ACPI PCI bus> on pcib3
> pcib4: <ACPI PCI-PCI bridge> at device 9.0 on pci0
> pci4: <ACPI PCI bus> on pcib4
> pci0: <base peripheral, interrupt controller> at device 20.0 (no driver attached)
> pci0: <base peripheral, interrupt controller> at device 20.1 (no driver attached)
> pci0: <base peripheral, interrupt controller> at device 20.2 (no driver attached)
> pci0: <base peripheral, interrupt controller> at device 20.3 (no driver attached)
> pci0: <base peripheral> at device 22.0 (no driver attached)
> pci0: <base peripheral> at device 22.1 (no driver attached)
> pci0: <base peripheral> at device 22.2 (no driver attached)
> pci0: <base peripheral> at device 22.3 (no driver attached)
> pci0: <base peripheral> at device 22.4 (no driver attached)
> pci0: <base peripheral> at device 22.5 (no driver attached)
> pci0: <base peripheral> at device 22.6 (no driver attached)
> pci0: <base peripheral> at device 22.7 (no driver attached)
> uhci0: <Intel 82801JI (ICH10) USB controller USB-D> port 0xcc00-0xcc1f irq 23 at device 26.0 on pci0
> uhci0: LegSup = 0x2f00
> usbus0 on uhci0
> uhci1: <Intel 82801JI (ICH10) USB controller USB-E> port 0xc880-0xc89f irq 22 at device 26.1 on pci0
> uhci1: LegSup = 0x2f00
> usbus1 on uhci1
> uhci2: <Intel 82801JI (ICH10) USB controller USB-F> port 0xc800-0xc81f irq 21 at device 26.2 on pci0
> uhci2: LegSup = 0x2f00
> usbus2 on uhci2
> ehci0: <Intel 82801JI (ICH10) USB 2.0 controller USB-B> mem 0xdf4de000-0xdf4de3ff irq 20 at device 26.7 on pci0
> usbus3: EHCI version 1.0
> usbus3 on ehci0
> pcib5: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
> pci5: <ACPI PCI bus> on pcib5
> igb0: <Intel(R) PRO/1000 Network Connection version - 2.4.0> port 0xdc00-0xdc1f mem 0xdf6e0000-0xdf6fffff,0xdf6c0000-0xdf6dffff,0xdf6bc000-0xdf6bffff irq 16 at device 0.0 on pci5
> igb0: Using MSIX interrupts with 9 vectors
> igb0: Ethernet address: c8:0a:a9:04:39:78
> igb0: Bound queue 0 to cpu 0
> igb0: Bound queue 1 to cpu 1
> igb0: Bound queue 2 to cpu 2
> igb0: Bound queue 3 to cpu 3
> igb0: Bound queue 4 to cpu 4
> igb0: Bound queue 5 to cpu 5
> igb0: Bound queue 6 to cpu 6
> igb0: Bound queue 7 to cpu 7
> igb1: <Intel(R) PRO/1000 Network Connection version - 2.4.0> port 0xd880-0xd89f mem 0xdf620000-0xdf63ffff,0xdf600000-0xdf61ffff,0xdf5fc000-0xdf5fffff irq 17 at device 0.1 on pci5
> igb1: Using MSIX interrupts with 9 vectors
> igb1: Ethernet address: c8:0a:a9:04:39:79
> igb1: Bound queue 0 to cpu 8
> igb1: Bound queue 1 to cpu 9
> igb1: Bound queue 2 to cpu 10
> igb1: Bound queue 3 to cpu 11
> igb1: Bound queue 4 to cpu 12
> igb1: Bound queue 5 to cpu 13
> igb1: Bound queue 6 to cpu 14
> igb1: Bound queue 7 to cpu 15
> uhci3: <Intel 82801JI (ICH10) USB controller USB-A> port 0xc480-0xc49f irq 23 at device 29.0 on pci0
> uhci3: LegSup = 0x2f00
> usbus4 on uhci3
> uhci4: <Intel 82801JI (ICH10) USB controller USB-B> port 0xc400-0xc41f irq 22 at device 29.1 on pci0
> uhci4: LegSup = 0x2f00
> usbus5 on uhci4
> uhci5: <Intel 82801JI (ICH10) USB controller USB-C> port 0xc080-0xc09f irq 21 at device 29.2 on pci0
> uhci5: LegSup = 0x2f00
> usbus6 on uhci5
> ehci1: <Intel 82801JI (ICH10) USB 2.0 controller USB-A> mem 0xdf4dc000-0xdf4dc3ff irq 23 at device 29.7 on pci0
> usbus7: EHCI version 1.0
> usbus7 on ehci1
> pcib6: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci7: <ACPI PCI bus> on pcib6
> vgapci0: <VGA-compatible display> port 0xec00-0xec7f mem 0xdf800000-0xdfffffff,0xdf7e0000-0xdf7fffff irq 16 at device 11.0 on pci7
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> ahci0: <Intel ICH10 AHCI SATA controller> port 0xc000-0xc007,0xbc00-0xbc03,0xb880-0xb887,0xb800-0xb803,0xb480-0xb49f mem 0xdf4da000-0xdf4da7ff irq 18 at device 31.2 on pci0
> ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier not supported
> ahcich0: <AHCI channel> at channel 0 on ahci0
> ahcich1: <AHCI channel> at channel 1 on ahci0
> ahcich2: <AHCI channel> at channel 2 on ahci0
> ahcich3: <AHCI channel> at channel 3 on ahci0
> ahcich4: <AHCI channel> at channel 4 on ahci0
> ahcich5: <AHCI channel> at channel 5 on ahci0
> ahciem0: <AHCI enclosure management bridge> on ahci0
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> acpi_button0: <Power Button> on acpi0
> uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
> uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
> qpi0: <QPI system bus> on motherboard
> pcib7: <QPI Host-PCI bridge> pcibus 255 on qpi0
> pci255: <PCI bus> on pcib7
> pcib8: <QPI Host-PCI bridge> pcibus 254 on qpi0
> pci254: <PCI bus> on pcib8
> orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xc9fff on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: CGA <16 virtual consoles, flags=0x300>
> vga0: <Generic ISA VGA> at port 0x3d0-0x3db iomem 0xb8000-0xbffff on isa0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> ppc0: cannot reserve I/O port range
> est0: <Enhanced SpeedStep Frequency Control> on cpu0
> p4tcc0: <CPU Frequency Thermal Control> on cpu0
> est1: <Enhanced SpeedStep Frequency Control> on cpu1
> p4tcc1: <CPU Frequency Thermal Control> on cpu1
> est2: <Enhanced SpeedStep Frequency Control> on cpu2
> p4tcc2: <CPU Frequency Thermal Control> on cpu2
> est3: <Enhanced SpeedStep Frequency Control> on cpu3
> p4tcc3: <CPU Frequency Thermal Control> on cpu3
> est4: <Enhanced SpeedStep Frequency Control> on cpu4
> p4tcc4: <CPU Frequency Thermal Control> on cpu4
> est5: <Enhanced SpeedStep Frequency Control> on cpu5
> p4tcc5: <CPU Frequency Thermal Control> on cpu5
> est6: <Enhanced SpeedStep Frequency Control> on cpu6
> p4tcc6: <CPU Frequency Thermal Control> on cpu6
> est7: <Enhanced SpeedStep Frequency Control> on cpu7
> p4tcc7: <CPU Frequency Thermal Control> on cpu7
> est8: <Enhanced SpeedStep Frequency Control> on cpu8
> p4tcc8: <CPU Frequency Thermal Control> on cpu8
> est9: <Enhanced SpeedStep Frequency Control> on cpu9
> p4tcc9: <CPU Frequency Thermal Control> on cpu9
> est10: <Enhanced SpeedStep Frequency Control> on cpu10
> p4tcc10: <CPU Frequency Thermal Control> on cpu10
> est11: <Enhanced SpeedStep Frequency Control> on cpu11
> p4tcc11: <CPU Frequency Thermal Control> on cpu11
> est12: <Enhanced SpeedStep Frequency Control> on cpu12
> p4tcc12: <CPU Frequency Thermal Control> on cpu12
> est13: <Enhanced SpeedStep Frequency Control> on cpu13
> p4tcc13: <CPU Frequency Thermal Control> on cpu13
> est14: <Enhanced SpeedStep Frequency Control> on cpu14
> p4tcc14: <CPU Frequency Thermal Control> on cpu14
> est15: <Enhanced SpeedStep Frequency Control> on cpu15
> p4tcc15: <CPU Frequency Thermal Control> on cpu15
> fuse-freebsd: version 0.4.4, FUSE ABI 7.8
> ZFS filesystem version: 5
> ZFS storage pool version: features support (5000)
> Timecounters tick every 1.000 msec
> random: unblocking device.
> usbus0: 12Mbps Full Speed USB v1.0
> usbus1: 12Mbps Full Speed USB v1.0
> usbus2: 12Mbps Full Speed USB v1.0
> usbus3: 480Mbps High Speed USB v2.0
> usbus4: 12Mbps Full Speed USB v1.0
> usbus5: 12Mbps Full Speed USB v1.0
> usbus6: 12Mbps Full Speed USB v1.0
> usbus7: 480Mbps High Speed USB v2.0
> ugen0.1: <Intel> at usbus0
> uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
> ugen1.1: <Intel> at usbus1
> uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
> ugen2.1: <Intel> at usbus2
> uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
> ugen3.1: <Intel> at usbus3
> uhub3: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
> ugen5.1: <Intel> at usbus5
> uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
> ugen4.1: <Intel> at usbus4
> uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
> ugen6.1: <Intel> at usbus6
> uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
> ugen7.1: <Intel> at usbus7
> uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
> ses0 at ahciem0 bus 0 scbus6 target 0 lun 0
> ses0: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device
> ses0: SEMB SES Device
> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
> ada0: <ST3500413AS JC4B> ATA-8 SATA 3.x device
> ada0: Serial Number S2A7BV64
> ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
> ada0: Command Queueing enabled
> ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C)
> ada0: Previously was known as ad4
> ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
> ada1: <ST3500312CS SC13> ATA-8 SATA 2.x device
> ada1: Serial Number 9VV9GA56
> ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
> ada1: Command Queueing enabled
> ada1: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C)
> ada1: Previously was known as ad6
> ada2 at ahcich2 bus 0 scbus2 target 0 lun 0
> ada2: <OCZ-VERTEX4 1.5.1> ATA-9 SATA 3.x device
> ada2: Serial Number OCZ-47M1215LW81YWQO8
> ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
> ada2: Command Queueing enabled
> ada2: 122104MB (250069680 512 byte sectors: 16H 63S/T 16383C)
> ada2: quirks=0x1<4K>
> ada2: Previously was known as ad8
> Netvsc initializing... SMP: AP CPU #1 Launched!
> SMP: AP CPU #14 Launched!
> SMP: AP CPU #7 Launched!
> SMP: AP CPU #15 Launched!
> SMP: AP CPU #5 Launched!
> SMP: AP CPU #9 Launched!
> SMP: AP CPU #6 Launched!
> SMP: AP CPU #12 Launched!
> SMP: AP CPU #3 Launched!
> SMP: AP CPU #13 Launched!
> SMP: AP CPU #2 Launched!
> SMP: AP CPU #8 Launched!
> SMP: AP CPU #4 Launched!
> SMP: AP CPU #11 Launched!
> SMP: AP CPU #10 Launched!
> Timecounter "TSC-low" frequency 1133395910 Hz quality 1000
> WARNING: WITNESS option enabled, expect reduced performance.
> uhub1: 2 ports with 2 removable, self powered
> uhub0: 2 ports with 2 removable, self powered
> uhub2: 2 ports with 2 removable, self powered
> uhub6: 2 ports with 2 removable, self powered
> uhub4: 2 ports with 2 removable, self powered
> uhub5: 2 ports with 2 removable, self powered
> Root mount waiting for: usbus7 usbus3
> Root mount waiting for: usbus7 usbus3
> uhub3: 6 ports with 6 removable, self powered
> uhub7: 6 ports with 6 removable, self powered
> ugen3.2: <Avocent> at usbus3
> ukbd0: <Keyboard> on usbus3
> kbd2 at ukbd0
> Trying to mount root from zfs:zroot/ROOT/head-r256931 []...
> ums0: <Mouse> on usbus3
> ums0: 3 buttons and [Z] coordinates ID=0
> ums1: <Mouse REL> on usbus3
> ums1: 3 buttons and [XYZ] coordinates ID=0

..

> 
> If you still have the full dumps, could you check values of ccb_h,
> ccb_h->cbfcnp, ccb_h->path and ccb_h->path->periph for the "deadcode"
> somewhere or something?

Here:

> (kgdb) up 7
> #7  0xffffffff802e612a in xpt_done_process (ccb_h=0xfffff8086f2ad800) at /usr/src/sys/cam/cam_xpt.c:5242
> Line number 5242 out of range; /usr/src/sys/cam/cam_xpt.c has 5056 lines.
> (kgdb) p *ccb_h
> $4 = {pinfo = {priority = 3735929054, generation = 3735929054, index = -559038242}, xpt_links = {le = {le_next = 0xdeadc0dedeadc0de, le_prev = 0xdeadc0dedeadc0de}, sle = {
>       sle_next = 0xdeadc0dedeadc0de}, tqe = {tqe_next = 0xdeadc0dedeadc0de, tqe_prev = 0xdeadc0dedeadc0de}, stqe = {stqe_next = 0xdeadc0dedeadc0de}}, sim_links = {le = {
>       le_next = 0xdeadc0dedeadc0de, le_prev = 0xdeadc0dedeadc0de}, sle = {sle_next = 0xdeadc0dedeadc0de}, tqe = {tqe_next = 0xdeadc0dedeadc0de, tqe_prev = 0xdeadc0dedeadc0de}, stqe = {
>       stqe_next = 0xdeadc0dedeadc0de}}, periph_links = {le = {le_next = 0xdeadc0dedeadc0de, le_prev = 0xdeadc0dedeadc0de}, sle = {sle_next = 0xdeadc0dedeadc0de}, tqe = {
>       tqe_next = 0xdeadc0dedeadc0de, tqe_prev = 0xdeadc0dedeadc0de}, stqe = {stqe_next = 0xdeadc0dedeadc0de}}, retry_count = 3735929054, cbfcnp = 0xdeadc0dedeadc0de,
>   func_code = 3735929054, status = 3735929054, path = 0xdeadc0dedeadc0de, path_id = 3735929054, target_id = 3735929054, target_lun = 3735929054, ext_lun = {lun64 = 16045693110842147038,
>     lun = "��}, flags = 3735929054, xflags = 3735929054, periph_priv = {entries = {{ptr = 0xdeadc0dedeadc0de, field = 16045693110842147038, bytes = "��}, {
>         ptr = 0xdeadc0dedeadc0de, field = 16045693110842147038, bytes = "��}}, bytes = "����}, sim_priv = {entries = {{ptr = 0xdeadc0dedeadc0de,
>         field = 16045693110842147038, bytes = "��}, {ptr = 0xdeadc0dedeadc0de, field = 16045693110842147038, bytes = "��}}, bytes = "����}, qos = {
>     etime = 0xdeadc0dedeadc0de, sim_data = 16045693110842147038, periph_data = 16045693110842147038}, timeout = 3735929054, softtimeout = {tv_sec = -2401050962867404578,
>     tv_usec = -2401050962867404578}}
> (kgdb) p *ccb_h->cbfcnp
> Cannot access memory at address 0xdeadc0dedeadc0de
> (kgdb) p ccb_h->cbfcnp
> $5 = (void (*)(struct cam_periph *, union ccb *)) 0xdeadc0dedeadc0de
> (kgdb) p ccb_h->path
> $6 = (struct cam_path *) 0xdeadc0dedeadc0de
> (kgdb) up
> #8  0xffffffff802e905d in xpt_done_td (arg=0xffffffff8144db80) at /usr/src/sys/cam/cam_xpt.c:5274
> Line number 5274 out of range; /usr/src/sys/cam/cam_xpt.c has 5056 lines.
> (kgdb) print *ccb_h
> $7 = {pinfo = {priority = 2161940088, generation = 4294967295, index = 16973824}, xpt_links = {le = {le_next = 0xfffffe00006d3400, le_prev = 0xfffff8000f3e4000}, sle = {
>       sle_next = 0xfffffe00006d3400}, tqe = {tqe_next = 0xfffffe00006d3400, tqe_prev = 0xfffff8000f3e4000}, stqe = {stqe_next = 0xfffffe00006d3400}}, sim_links = {le = {le_next = 0x0,
>       le_prev = 0x0}, sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}, stqe = {stqe_next = 0x0}}, periph_links = {le = {le_next = 0xffffffff802e64a0,
>       le_prev = 0xfffff80014197800}, sle = {sle_next = 0xffffffff802e64a0}, tqe = {tqe_next = 0xffffffff802e64a0, tqe_prev = 0xfffff80014197800}, stqe = {stqe_next = 0xffffffff802e64a0}},
>   retry_count = 0, cbfcnp = 0, func_code = XPT_NOOP, status = 0, path = 0x0, path_id = 0, target_id = 0, target_lun = 0, ext_lun = {lun64 = 0, lun = "\000\000\000\000\000\000\000"},
>   flags = 0, xflags = 0, periph_priv = {entries = {{ptr = 0x0, field = 0, bytes = "\000\000\000\000\000\000\000"}, {ptr = 0x0, field = 0, bytes = "\000\000\000\000\000\000\000"}},
>     bytes = '\0' <repeats 15 times>}, sim_priv = {entries = {{ptr = 0x0, field = 0, bytes = "\000\000\000\000\000\000\000"}, {ptr = 0x0, field = 0,
>         bytes = "\000\000\000\000\000\000\000"}}, bytes = '\0' <repeats 15 times>}, qos = {etime = 0x0, sim_data = 0, periph_data = 0}, timeout = 0, softtimeout = {tv_sec = 0,
>     tv_usec = 0}}
> (kgdb) print ccb_h->cbfcnp
> $8 = (void (*)(struct cam_periph *, union ccb *)) 0
> (kgdb) print ccb_h->path
> $9 = (struct cam_path *) 0x0

.





> 
> On 23.10.2013 03:25, Bryan Drewery wrote:
>> Encountered twice:
>>
>>> Fatal trap 9: general protection fault while in kernel mode
>>> cpuid = 0; apic id = 00
>>> instruction pointer     = 0x20:0xffffffff802e612a
>>> stack pointer           = 0x28:0xfffffe118af62b20
>>> frame pointer           = 0x28:0xfffffe118af62b60
>>> 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         = 2 (doneq0)
>>> trap number             = 9
>>> panic: general protection fault
>>> cpuid = 0
>>> KDB: stack backtrace:
>>> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
>>> 0xfffffe118af62690
>>> kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe118af62740
>>> vpanic() at vpanic+0x126/frame 0xfffffe118af62780
>>> panic() at panic+0x43/frame 0xfffffe118af627e0
>>> trap_fatal() at trap_fatal+0x3a2/frame 0xfffffe118af62840
>>> trap() at trap+0x863/frame 0xfffffe118af62a60
>>> calltrap() at calltrap+0x8/frame 0xfffffe118af62a60
>>> --- trap 0x9, rip = 0xffffffff802e612a, rsp = 0xfffffe118af62b20, rbp
>>> = 0xfffffe118af62b60 ---
>>> xpt_done_process() at xpt_done_process+0x36a/frame 0xfffffe118af62b60
>>> xpt_done_td() at xpt_done_td+0x13d/frame 0xfffffe118af62bb0
>>> fork_exit() at fork_exit+0x84/frame 0xfffffe118af62bf0
>>> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe118af62bf0
>>> --- trap 0, rip = 0, rsp = 0xfffffe118af62cb0, rbp = 0 ---
>>
>> 2nd:
>>
>>> Fatal trap 9: general protection fault while in kernel mode
>>> cpuid = 5; apic id = 05
>>> instruction pointer     = 0x20:0xffffffff802e612a
>>> stack pointer           = 0x28:0xfffffe118af62b20
>>> frame pointer           = 0x28:0xfffffe118af62b60
>>> 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         = 2 (doneq0)
>>> trap number             = 9
>>> panic: general protection fault
>>> cpuid = 5
>>> KDB: stack backtrace:
>>> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
>>> 0xfffffe118af62690
>>> kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe118af62740
>>> vpanic() at vpanic+0x126/frame 0xfffffe118af62780
>>> panic() at panic+0x43/frame 0xfffffe118af627e0
>>> trap_fatal() at trap_fatal+0x3a2/frame 0xfffffe118af62840
>>> trap() at trap+0x863/frame 0xfffffe118af62a60
>>> calltrap() at calltrap+0x8/frame 0xfffffe118af62a60
>>> --- trap 0x9, rip = 0xffffffff802e612a, rsp = 0xfffffe118af62b20, rbp
>>> = 0xfffffe118af62b60 ---
>>> xpt_done_process() at xpt_done_process+0x36a/frame 0xfffffe118af62b60
>>> xpt_done_td() at xpt_done_td+0x13d/frame 0xfffffe118af62bb0
>>> fork_exit() at fork_exit+0x84/frame 0xfffffe118af62bf0
>>> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe118af62bf0
>>> --- trap 0, rip = 0, rsp = 0xfffffe118af62cb0, rbp = 0 ---
>>
>>> (kgdb) #0  doadump (textdump=1) at pcpu.h:219
>>> #1  0xffffffff808bbb27 in kern_reboot (howto=260)
>>>      at /usr/src/sys/kern/kern_shutdown.c:447
>>> #2  0xffffffff808bc035 in vpanic (fmt=<value optimized out>,
>>>      ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:754
>>> #3  0xffffffff808bc083 in panic (fmt=<value optimized out>)
>>>      at /usr/src/sys/kern/kern_shutdown.c:683
>>> #4  0xffffffff80cb62d2 in trap_fatal (frame=<value optimized out>,
>>>      eva=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:882
>>> #5  0xffffffff80cb5f13 in trap (frame=<value optimized out>)
>>>      at /usr/src/sys/amd64/amd64/trap.c:224
>>> #6  0xffffffff80c9b3a2 in calltrap ()
>>>      at /usr/src/sys/amd64/amd64/exception.S:232
>>> #7  0xffffffff802e612a in xpt_done_process (ccb_h=0xfffff80145911800)
>>>      at /usr/src/sys/cam/cam_xpt.c:5242
>>> #8  0xffffffff802e905d in xpt_done_td (arg=0xffffffff8144db80)
>>>      at /usr/src/sys/cam/cam_xpt.c:5274
>>> #9  0xffffffff8088b064 in fork_exit (
>>>      callout=0xffffffff802e8f20 <xpt_done_td>, arg=0xffffffff8144db80,
>>>      frame=0xfffffe118af62c00) at /usr/src/sys/kern/kern_fork.c:995
>>> #10 0xffffffff80c9b8de in fork_trampoline ()
>>>      at /usr/src/sys/amd64/amd64/exception.S:606
>>> #11 0x0000000000000000 in ?? ()
>>> Current language:  auto; currently minimal
>>> (kgdb)
> 


-- 
Regards,
Bryan Drewery


Received on Wed Oct 23 2013 - 09:22:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC