Page MenuHomeFreeBSD

Page fault with SIGCHLD

Authored By
jfree
Jun 28 2023, 12:59 AM
Size
5 KB
Referenced Files
None
Subscribers
None

Page fault with SIGCHLD

Unread portion of the kernel message buffer:
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex process lock (process lock) r = 0 (0xfffffe018c366700) locked @ /usr/src/sys/kern/kern_exit.c:940
exclusive sleep mutex process lock (process lock) r = 0 (0xfffffe018c860160) locked @ /usr/src/sys/kern/kern_exit.c:1059
stack backtrace:
#0 0xffffffff80bbe155 at witness_debugger+0x65
#1 0xffffffff80bbf299 at witness_warn+0x3e9
#2 0xffffffff81048298 at trap_pfault+0x88
#3 0xffffffff8101b4a8 at calltrap+0x8
#4 0xffffffff80afe3af at proc_reap+0xbf
#5 0xffffffff80afeda3 at proc_to_reap+0x3d3
#6 0xffffffff80afdf16 at kern_wait6+0x1b6
#7 0xffffffff80afdb1d at sys_wait4+0x7d
#8 0xffffffff81048bb9 at amd64_syscall+0x139
#9 0xffffffff8101bdbb at fast_syscall_common+0xf8
Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address = 0x7
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80b4d569
stack pointer = 0x28:0xfffffe018a3d7ad0
frame pointer = 0x28:0xfffffe018a3d7ad0
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 = 1102 (signalfd-test)
rdi: fffff8000cacf540 rsi: fffff8000cacf540 rdx: ffffffffffffffff
rcx: fffffe018c3665d8 r8: 0000000000000000 r9: ffffffff811f81bd
rax: fffffe018c366788 rbx: fffffe018c860038 rbp: fffffe018a3d7ad0
r10: 0000000000000000 r11: 000000000000000c r12: fffffe018c366718
r13: fffffe018a3d7dd4 r14: fffffe018c860178 r15: fffffe018c3665d8
trap number = 12
panic: page fault
cpuid = 2
time = 1687898995
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe018a3d7890
vpanic() at vpanic+0x150/frame 0xfffffe018a3d78e0
panic() at panic+0x43/frame 0xfffffe018a3d7940
trap_fatal() at trap_fatal+0x40a/frame 0xfffffe018a3d79a0
trap_pfault() at trap_pfault+0xae/frame 0xfffffe018a3d7a00
calltrap() at calltrap+0x8/frame 0xfffffe018a3d7a00
--- trap 0xc, rip = 0xffffffff80b4d569, rsp = 0xfffffe018a3d7ad0, rbp = 0xfffffe018a3d7ad0 ---
sigqueue_take() at sigqueue_take+0x29/frame 0xfffffe018a3d7ad0
proc_reap() at proc_reap+0xbf/frame 0xfffffe018a3d7b10
proc_to_reap() at proc_to_reap+0x3d3/frame 0xfffffe018a3d7b60
kern_wait6() at kern_wait6+0x1b6/frame 0xfffffe018a3d7c00
sys_wait4() at sys_wait4+0x7d/frame 0xfffffe018a3d7e00
amd64_syscall() at amd64_syscall+0x139/frame 0xfffffe018a3d7f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe018a3d7f30
--- syscall (7, FreeBSD ELF64, wait4), rip = 0x8234e42fa, rsp = 0x8207fbd38, rbp = 0x8207fbd70 ---
KDB: enter: panic
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
59 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
#1 doadump (textdump=textdump@entry=0)
at /usr/src/sys/kern/kern_shutdown.c:407
#2 0xffffffff804a345a in db_dump (dummy=<optimized out>,
dummy2=<optimized out>, dummy3=<optimized out>, dummy4=<optimized out>)
at /usr/src/sys/ddb/db_command.c:593
#3 0xffffffff804a325d in db_command (last_cmdp=<optimized out>,
cmd_table=<optimized out>, dopager=true)
at /usr/src/sys/ddb/db_command.c:506
#4 0xffffffff804a2f1d in db_command_loop ()
at /usr/src/sys/ddb/db_command.c:553
#5 0xffffffff804a65f6 in db_trap (type=<optimized out>, code=<optimized out>)
at /usr/src/sys/ddb/db_main.c:270
#6 0xffffffff80b9a893 in kdb_trap (type=type@entry=3, code=code@entry=0,
tf=tf@entry=0xfffffe018a3d77d0) at /usr/src/sys/kern/subr_kdb.c:784
#7 0xffffffff81047d7d in trap (frame=0xfffffe018a3d77d0)
at /usr/src/sys/amd64/amd64/trap.c:610
#8 <signal handler called>
#9 kdb_enter (why=<optimized out>, msg=<optimized out>)
at /usr/src/sys/kern/subr_kdb.c:550
#10 0xffffffff80b4bda1 in vpanic (fmt=0xffffffff811842e0 "%s",
ap=ap@entry=0xfffffe018a3d7920) at /usr/src/sys/kern/kern_shutdown.c:960
#11 0xffffffff80b4bb63 in panic (
fmt=0xffffffff8194c0a0 <cnputs_mtx> "V\375\023\201\377\377\377\377")
at /usr/src/sys/kern/kern_shutdown.c:896
#12 0xffffffff8104820a in trap_fatal (frame=0xfffffe018a3d7a10, eva=7)
at /usr/src/sys/amd64/amd64/trap.c:954
#13 0xffffffff810482be in trap_pfault (frame=0xfffffe018a3d7a10,
usermode=false, signo=<optimized out>, ucode=<optimized out>)
at /usr/src/sys/amd64/amd64/trap.c:762
#14 <signal handler called>
#15 0xffffffff80b4d569 in sigqueue_take (ksi=0xfffff8000cacf540)
at /usr/src/sys/kern/kern_sig.c:449
#16 0xffffffff80afe3af in proc_reap (td=td@entry=0xfffffe018c367000,
p=p@entry=0xfffffe018c860038, status=status@entry=0xfffffe018a3d7dd4,
options=<optimized out>) at /usr/src/sys/kern/kern_exit.c:941
#17 0xffffffff80afeda3 in proc_to_reap (td=td@entry=0xfffffe018c367000,
p=p@entry=0xfffffe018c860038, idtype=idtype@entry=P_PID,
id=id@entry=1103, status=status@entry=0xfffffe018a3d7dd4,
options=options@entry=48, wrusage=0x0, siginfo=0x0, check_only=0)
at /usr/src/sys/kern/kern_exit.c:1197
#18 0xffffffff80afdf16 in kern_wait6 (td=td@entry=0xfffffe018c367000,
idtype=P_PID, id=1103, status=status@entry=0xfffffe018a3d7dd4,
options=48, wrusage=0x0, siginfo=0x0)
at /usr/src/sys/kern/kern_exit.c:1326
#19 0xffffffff80afdb1d in kern_wait (status=0xfffffe018a3d7dd4, options=0,
rusage=0x0, td=<optimized out>, pid=<optimized out>)
at /usr/src/sys/kern/kern_exit.c:1238
#20 sys_wait4 (td=0xfffffe018c367000, uap=0xfffffe018c367400)
at /usr/src/sys/kern/kern_exit.c:864
#21 0xffffffff81048bb9 in syscallenter (td=<optimized out>)
at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:190
#22 amd64_syscall (td=0xfffffe018c367000, traced=0)
at /usr/src/sys/amd64/amd64/trap.c:1199
#23 <signal handler called>
#24 0x00000008234e42fa in ?? ()
Backtrace stopped: Cannot access memory at address 0x8207fbd38

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6048595
Default Alt Text
Page fault with SIGCHLD (5 KB)

Event Timeline