Bug 276051 - Crash during poudriere jail -c -j 150 -a amd64 -b -m src=/usr/src -S /usr/src
Summary: Crash during poudriere jail -c -j 150 -a amd64 -b -m src=/usr/src -S /usr/src
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 15.0-CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2024-01-01 08:17 UTC by Kurt Jaeger
Modified: 2024-01-02 18:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2024-01-01 08:17:14 UTC
Crash during

  poudriere jail -c -j 150 -a amd64 -b -m src=/usr/src -S /usr/src

Kernel page fault with the following non-sleepable locks held:
exclusive rw pmap pv list (pmap pv list) r = 0 (0xfffffe00d367ae80) locked @ /usr/src/sys/amd64/amd64/pmap.c:8642
exclusive sleep mutex pmap (pmap) r = 0 (0xfffff80173fa9398) locked @ /usr/src/sys/amd64/amd64/pmap.c:8552

More details see

https://people.freebsd.org/~pi/20240101-crash-pmap/
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2024-01-01 14:25:49 UTC
Another crash during a 

poudriere jail -c -j 150 -a amd64 -b -m src=/usr/src -S /usr/src

run, this time with another cause:

panic: Bad link elm 0xfffff804781f9b20 prev->next != elm
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe02e4bf8a70
vpanic() at vpanic+0x131/frame 0xfffffe02e4bf8ba0
panic() at panic+0x43/frame 0xfffffe02e4bf8c00
pmap_remove_pages() at pmap_remove_pages+0x117c/frame 0xfffffe02e4bf8d50
vmspace_exit() at vmspace_exit+0x7d/frame 0xfffffe02e4bf8d80
exit1() at exit1+0x533/frame 0xfffffe02e4bf8df0
sys_exit() at sys_exit+0xd/frame 0xfffffe02e4bf8e00
amd64_syscall() at amd64_syscall+0x153/frame 0xfffffe02e4bf8f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe02e4bf8f30
--- syscall (1, FreeBSD ELF64, exit), rip = 0x82cd9e47a, rsp = 0x82822f408, rbp = 0x82822f420 ---
KDB: enter: panic

This time this ddb script was active to catch more of the system state in the msgbuf:

ddb script kdb.enter.panic='textdump set; capture on; show allpcpu; bt; ps; alltrace; show alllocks; textdump dump; reset'

See

https://people.freebsd.org/~pi/20240101-crash-bad-link
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2024-01-02 18:28:29 UTC
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261538 for related things.
The cause was probably the missing

vfs.zfs.bclone_enabled=0