Re: kernel trap 12 with interrupts disabled

From: Chris H <bsd-lists_at_bsdforge.com>
Date: Sun, 05 Mar 2017 00:39:47 -0800
On Sun, 5 Mar 2017 09:50:49 +0200 Andriy Gapon <avg_at_FreeBSD.org> wrote

> On 05/03/2017 08:08, Chris H wrote:
> > Thanks for the reply.
> > I rebooted to kernel.old, so I could get the exact
> > src revision I built this on. It's r314640
> > 
> > Any news as to whether it's safe to update src, and
> > build a usable kernel?
> 
> Sorry about the breakage.
> The fix is in r314700.

Thank YOU, for the fast response! :-)

--Chris

> 
> > 
> > On Sun, 05 Mar 2017 12:01:29 +0800 Alastair Hogge <agh_at_fastmail.fm> wrote
> > 
> >> Hi *,
> >>
> >> On Sat, 4 Mar 2017 07:38:55 PM Chris H wrote:
> >>
> >> [remove 12-CURRENT history & hardware summary]
> >>
> >>> I finished the
> >>> buildworld, and finished the build/install kernel, and
> >>> (attempted) to boot to single user. But got a trap
> >>> shortly into booting the new kernel;
> >>>
> >>> kernel trap 12 with interrupts disabled
> >>>
> >>> Fatal trap 12: page fault in kernel mode
> >>
> >> I am also experiencing a similar problem.  I believe the error is caused
> >> by  r314636[0]; committer CC'd.
> >>
> >> Verbose boot (r314640):
> >>
> >> /boot/kernel/kernel text=0x8e13d0 data=0xac880+0x3cd6e8 
> >> syms=[0x8+0xd6350+0x8+0xd2864]                                            
> >>                                                                           
> >>                                                                           
> >>                                                                           
           >>                                                                  
        >>                                                               
> >>                                                                           
> >>                                                                           
           >>                                                                  
        >>                                                               
> >>                                                                           
> >>                                                                           
           >>                                                                  
        >>                                                               
> >>                                                                           
> >>                                                                           
           >>                                                                  
        >>                                                               
> >>                                                                           
           >>                                                               
[77/1834] >> /boot/entropy size=0x1000 >> Booting... >> [dcons disconnected
> >>                                                                           
> >>                                                                           
           >>                                                                  
        >>                                                               
> >>                                                                           
> >>                                                                           
           >>                                                                  
        >>                                                               
> >>                                                                           
           >>                                                               
(wrong magic 0x00000000)] >> [dcons connected] >> GDB: debug ports: dcons
> >> GDB: current port: dcons
> >> KDB: debugger backends: ddb gdb
> >> KDB: current backend: ddb
> >> Table 'FACP' at 0xbfdd1080
> >> Table 'MSDM' at 0xbfdd8800
> >> Table 'HPET' at 0xbfdd8880
> >> Table 'MCFG' at 0xbfdd88c0
> >> Table 'EUDS' at 0xbfdd8940
> >> Table 'MATS' at 0xbfdd91a0
> >> Table 'TAMG' at 0xbfdd9210
> >> Table 'APIC' at 0xbfdd8740
> >> APIC: Found table at 0xbfdd8740
> >> APIC: Using the MADT enumerator.
> >> MADT: Found CPU APIC ID 0 ACPI ID 0: enabled
> >> SMP: Added CPU 0 (AP)
> >> MADT: Found CPU APIC ID 1 ACPI ID 1: enabled
> >> SMP: Added CPU 1 (AP)
> >> MADT: Found CPU APIC ID 2 ACPI ID 2: enabled
> >> SMP: Added CPU 2 (AP)
> >> MADT: Found CPU APIC ID 3 ACPI ID 3: enabled
> >> SMP: Added CPU 3 (AP)
> >> MADT: Found CPU APIC ID 4 ACPI ID 4: enabled
> >> SMP: Added CPU 4 (AP)
> >> MADT: Found CPU APIC ID 5 ACPI ID 5: enabled
> >> SMP: Added CPU 5 (AP)
> >> MADT: Found CPU APIC ID 6 ACPI ID 6: enabled
> >> SMP: Added CPU 6 (AP)
> >> MADT: Found CPU APIC ID 7 ACPI ID 7: enabled
> >> SMP: Added CPU 7 (AP)
> >> Copyright (c) 1992-2017 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 12.0-CURRENT #0 r314640: Sat Mar  4 13:10:08 AWST 2017
> >>     root_at_direwolf:/tmp/direwolf/usr/src/sys/DIREWOLF amd64
> >> FreeBSD clang version 4.0.0 (branches/release_40 296509) (based on LLVM
> >> 4.0.0) WARNING: WITNESS option enabled, expect reduced performance.
> >> Table 'FACP' at 0xbfdd1080
> >> Table 'MSDM' at 0xbfdd8800
> >> Table 'HPET' at 0xbfdd8880
> >> Table 'MCFG' at 0xbfdd88c0
> >> Table 'EUDS' at 0xbfdd8940
> >> Table 'MATS' at 0xbfdd91a0
> >> Table 'TAMG' at 0xbfdd9210
> >> Table 'APIC' at 0xbfdd8740
> >> Table 'MATS' at 0xbfdd93c0
> >> Table 'SSDT' at 0xbfddfaf0
> >> Table 'IVRS' at 0xbfde1280
> >> ACPI: No SRAT table found
> >> PPIM 0: PA=0xa0000, VA=0xffffffff81410000, size=0x10000, mode=0
> >> VT(vga): resolution 640x480
> >> Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff81306000.
> >> Preloaded /boot/entropy "/boot/entropy" at 0xffffffff81306ae8.
> >> Calibrating TSC clock ... TSC clock: 4018024582 Hz
> >> CPU: AMD FX(tm)-8350 Eight-Core Processor            (4018.02-MHz K8-class
> >> CPU)
> >>   Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
> >>  
> >>
> >>
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> >> CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>  
> >>
> >>
Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,A
> >> ESNI,XSAVE,OSXSAVE,AVX,F16C>   AMD
> >> Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>   AMD 
> >>
> >>
Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,
> >> XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>   Structured
> >> Extended Features=0x8<BMI1>   SVM: 
> >>
> >>
Features=0x1cff<NP,LbrVirt,SVML,NRIPS,TscRateMsr,VmcbClean,FlushByAsid,Decode
> >> Assist,PauseFilter,<b11>,PauseFilterThreshold> Revision=1, ASIDs=65536
> >>   TSC: P-state invariant, performance statistics
> >> L1 2MB data TLB: 64 entries, fully associative
> >> L1 2MB instruction TLB: 24 entries, fully associative
> >> L1 4KB data TLB: 64 entries, fully associative
> >> L1 4KB instruction TLB: 48 entries, fully associative
> >> L1 data cache: 16 kbytes, 64 bytes/line, 1 lines/tag, 4-way associative
> >> L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way
> >> associative L2 2MB data TLB: 1024 entries, 8-way associative
> >> L2 4KB data TLB: 1024 entries, 8-way associative
> >> L2 4KB instruction TLB: 1024 entries, 8-way associative
> >> L2 unified cache: 2048 kbytes, 64 bytes/line, 1 lines/tag, 16-way
> >> associative real memory  = 34359738368 (32768 MB)
> >> Physical memory chunk(s):
> >> 0x0000000000010000 - 0x000000000005ffff, 327680 bytes (80 pages)
> >> 0x0000000000070000 - 0x0000000000098fff, 167936 bytes (41 pages)
> >> 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages)
> >> 0x0000000001340000 - 0x00000000bfd9ffff, 3198550016 bytes (780896 pages)
> >> 0x0000000100000000 - 0x000000080a849fff, 30241234944 bytes (7383114 pages)
> >> avail memory = 33272029184 (31730 MB)
> >> Event timer "LAPIC" quality 100
> >> LAPIC: ipi_wait() us multiplier 29 (r 13818693 tsc 4018024582)
> >> ACPI APIC Table: <GBT    GBTUACPI>
> >> Package ID shift: 4
> >> L3 cache ID shift: 3
> >> L2 cache ID shift: 1
> >> L1 cache ID shift: 0
> >> Core ID shift: 0
> >> INTR: Adding local APIC 1 as a target
> >> INTR: Adding local APIC 2 as a target
> >> INTR: Adding local APIC 3 as a target
> >> INTR: Adding local APIC 4 as a target
> >> INTR: Adding local APIC 5 as a target
> >> INTR: Adding local APIC 6 as a target
> >> INTR: Adding local APIC 7 as a target
> >> FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
> >> FreeBSD/SMP: 1 package(s) x 8 core(s)
> >> Package HW ID = 0
> >>         Core HW ID = 0
> >>                 CPU0 (BSP): APIC ID: 0
> >>         Core HW ID = 1
> >>                 CPU1 (AP): APIC ID: 1
> >>         Core HW ID = 2
> >>                 CPU2 (AP): APIC ID: 2
> >>         Core HW ID = 3
> >>                 CPU3 (AP): APIC ID: 3
> >>         Core HW ID = 4
> >>                 CPU4 (AP): APIC ID: 4
> >>         Core HW ID = 5
> >>                 CPU5 (AP): APIC ID: 5
> >>         Core HW ID = 6
> >>                 CPU6 (AP): APIC ID: 6
> >>         Core HW ID = 7
> >>                 CPU7 (AP): APIC ID: 7
> >> APIC: CPU 0 has ACPI ID 0
> >> APIC: CPU 1 has ACPI ID 1
> >> APIC: CPU 2 has ACPI ID 2
> >> APIC: CPU 3 has ACPI ID 3
> >> APIC: CPU 4 has ACPI ID 4
> >> APIC: CPU 5 has ACPI ID 5
> >> APIC: CPU 6 has ACPI ID 6
> >> APIC: CPU 7 has ACPI ID 7
> >> lapic0: MCE Thresholding ELVT unmasked
> >> kernel trap 12 with interrupts disabled
> >>
> >>
> >> Fatal trap 12: page fault while in kernel mode
> >> cpuid = 0; apic id = 00
> >> fault virtual address   = 0x0
> >> fault code              = supervisor write data, page not present
> >> instruction pointer     = 0x20:0xffffffff809b36ed
> >> stack pointer           = 0x28:0xffffffff8130baa0
> >> frame pointer           = 0x28:0xffffffff8130bad0
> >> code segment            = base 0x0, limit 0xfffff, type 0x1b
> >>                         = DPL 0, pres 1, long 1, def32 0, gran 1
> >> processor eflags        = resume, IOPL = 0
> >> current process         = 0 ()
> >> [ thread pid 0 tid 0 ]
> >> Stopped at      _mca_init+0x55d:        movl    $0x1,(%rax,%rcx,1)
> >> db> bt
> >> Tracing pid 0 tid 0 td 0xffffffff810a9dc0
> >> _mca_init() at _mca_init+0x55d/frame 0xffffffff8130bad0
> >> mi_startup() at mi_startup+0x9c/frame 0xffffffff8130baf0
> >> btext() at btext+0x2c
> >> db>
> 
> -- 
> Andriy Gapon
Received on Sun Mar 05 2017 - 07:37:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:10 UTC