From owner-freebsd-current@freebsd.org Sun Mar 5 07:51:59 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40413CFA99E for ; Sun, 5 Mar 2017 07:51:59 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 534AF13B8 for ; Sun, 5 Mar 2017 07:51:57 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA03236; Sun, 05 Mar 2017 09:51:45 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ckQxF-000CsH-Px; Sun, 05 Mar 2017 09:51:45 +0200 Subject: Re: kernel trap 12 with interrupts disabled To: Chris H , freebsd-current@FreeBSD.org, Alastair Hogge References: <959436378530ea6a182825fb1328bcb6@ultimatedns.net> <3244339.Sh8jFgR0Eq@madcat.anarchadelic.> <2e2714cc5f991d19c70ccff599aa3fe6@ultimatedns.net> From: Andriy Gapon Message-ID: Date: Sun, 5 Mar 2017 09:50:49 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <2e2714cc5f991d19c70ccff599aa3fe6@ultimatedns.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2017 07:51:59 -0000 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. > > On Sun, 05 Mar 2017 12:01:29 +0800 Alastair Hogge 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@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> CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> >> Features2=0x3e98320b> ESNI,XSAVE,OSXSAVE,AVX,F16C> AMD >> Features=0x2e500800 AMD >> Features2=0x1ebbfff> XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC> Structured >> Extended Features=0x8 SVM: >> Features=0x1cff> Assist,PauseFilter,,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: >> 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