Bug 254982 - Kernel panic when building packages via clang
Summary: Kernel panic when building packages via clang
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2021-04-11 16:50 UTC by Vladislav V. Prodan
Modified: 2021-04-11 18:08 UTC (History)
0 users

See Also:


Attachments
core.txt.2 (111.51 KB, application/gzip)
2021-04-11 16:50 UTC, Vladislav V. Prodan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladislav V. Prodan 2021-04-11 16:50:30 UTC
Created attachment 224029 [details]
core.txt.2

# uname -a
FreeBSD mary-teresa.XXX.ua 12.2-STABLE FreeBSD 12.2-STABLE #0 r368992M: Tue Jan 12 03:49:03 EET 2021     root@mary-teresa.XXX.ua:/usr/obj/usr/src/amd64.amd64/sys/mary-teresa.XXX.ua.5  amd64

# uname -KU
1202505 1202505



Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address   = 0x800010
fault code              = supervisor write data, page not present
instruction pointer     = 0x20:0xffffffff81234548
stack pointer           = 0x28:0xfffffe002abfda60
frame pointer           = 0x28:0xfffffe002abfdb50
code segment            = base rx0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 66405 (c++)
trap number             = 12
panic: page fault
cpuid = 2
time = 1618129843
Uptime: 89d0h44m48s
Dumping 2628 out of 8115 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /usr/lib/debug/boot/kernel/zfs.ko.debug...done.
Loaded symbols for /usr/lib/debug/boot/kernel/zfs.ko.debug
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /usr/lib/debug//boot/kernel/opensolaris.ko.debug...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/cc_htcp.ko...Reading symbols from /usr/lib/debug//boot/kernel/cc_htcp.ko.debug...done.
done.
Loaded symbols for /boot/kernel/cc_htcp.ko
Reading symbols from /boot/kernel/acpi_wmi.ko...Reading symbols from /usr/lib/debug//boot/kernel/acpi_wmi.ko.debug...done.
done.
Loaded symbols for /boot/kernel/acpi_wmi.ko
Reading symbols from /boot/kernel/uhid.ko...Reading symbols from /usr/lib/debug//boot/kernel/uhid.ko.debug...done.
done.
Loaded symbols for /boot/kernel/uhid.ko
Reading symbols from /boot/kernel/wmt.ko...Reading symbols from /usr/lib/debug//boot/kernel/wmt.ko.debug...done.
done.
Loaded symbols for /boot/kernel/wmt.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/tmpfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/nullfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/nullfs.ko
Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/linprocfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linprocfs.ko
Reading symbols from /boot/kernel/linux_common.ko...Reading symbols from /usr/lib/debug//boot/kernel/linux_common.ko.debug...done.
done.
Loaded symbols for /boot/kernel/linux_common.ko
#0  doadump () at src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) list *0xffffffff81234548
0xffffffff81234548 is in pmap_remove_pages (src/sys/amd64/include/atomic.h:445).
440     ATOMIC_ASM(clear,    short, "andw %w1,%0", "ir", ~v);
441     ATOMIC_ASM(add,      short, "addw %w1,%0", "ir",  v);
442     ATOMIC_ASM(subtract, short, "subw %w1,%0", "ir",  v);
443
444     ATOMIC_ASM(set,      int,   "orl %1,%0",   "ir",  v);
445     ATOMIC_ASM(clear,    int,   "andl %1,%0",  "ir", ~v);
446     ATOMIC_ASM(add,      int,   "addl %1,%0",  "ir",  v);
447     ATOMIC_ASM(subtract, int,   "subl %1,%0",  "ir",  v);
448
449     ATOMIC_ASM(set,      long,  "orq %1,%0",   "er",  v);
Current language:  auto; currently minimal
(kgdb) bt
#0  doadump () at src/sys/amd64/include/pcpu_aux.h:55
#1  0xffffffff80c628a4 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:451
#2  0xffffffff80c62c94 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:880
#3  0xffffffff80c62af3 in panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:807
#4  0xffffffff81243136 in trap_fatal (frame=0xfffffe002abfd9a0, eva=8388624) at /usr/src/sys/amd64/amd64/trap.c:921
#5  0xffffffff812434c3 in trap_pfault (frame=0xfffffe002abfd9a0, usermode=false, signo=0x0, ucode=0x0) at src/sys/amd64/include/cpufunc.h:424
#6  0xffffffff812428c4 in trap (frame=0xfffffe002abfd9a0) at /usr/src/sys/amd64/amd64/trap.c:405
#7  0xffffffff8121aff8 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:289
#8  0xffffffff81234548 in pmap_remove_pages (pmap=<value optimized out>) at /usr/src/sys/amd64/amd64/pmap.c:7124
#9  0xffffffff810ac75e in vmspace_exit (td=0xfffff800b9bf8000) at /usr/src/sys/vm/vm_map.c:411
#10 0xffffffff80c1d679 in exit1 (td=<value optimized out>, rval=<value optimized out>, signo=0) at /usr/src/sys/kern/kern_exit.c:399
#11 0xffffffff80c1d11d in sys_sys_exit (td=<value optimized out>, uap=<value optimized out>) at /usr/src/sys/kern/kern_exit.c:176
#12 0xffffffff81243d47 in amd64_syscall (td=0xfffff800b9bf8000, traced=0) at src/sys/amd64/amd64/../../kern/subr_syscall.c:144
#13 0xffffffff8121b91e in fast_syscall_common () at /usr/src/sys/amd64/amd64/exception.S:582
#14 0x0000000004754b2a in ?? ()
Previous frame inner to this frame (corrupt stack?)