Bug 264833 - 12.3-STABLE panic on sync and reboot: panic: sleeping thread: propagate_priority() > turnstile_wait() > __mtx_lock_sleep() > softclock_call_cc()
Summary: 12.3-STABLE panic on sync and reboot: panic: sleeping thread: propagate_prior...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.3-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2022-06-22 19:49 UTC by Vladyslav V. Prodan
Modified: 2023-02-16 18:47 UTC (History)
4 users (show)

See Also:
koobs: mfc-stable13?
koobs: mfc-stable12?


Attachments
text crashdump (70.50 KB, application/x-tar)
2022-06-22 19:49 UTC, Vladyslav V. Prodan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladyslav V. Prodan 2022-06-22 19:49:28 UTC
Created attachment 234875 [details]
text crashdump

panic: sleeping thread
cpuid = 4
time = 1655924318
KDB: stack backtrace:
db_trace_self_wrapper() at 0xffffffff8049e48b = db_trace_self_wrapper+0x2b/frame 0xfffffe00005718d0
vpanic() at 0xffffffff80cb3228 = vpanic+0x178/frame 0xfffffe0000571920
panic() at 0xffffffff80cb30a3 = panic+0x43/frame 0xfffffe0000571980
propagate_priority() at 0xffffffff80d16452 = propagate_priority+0x282/frame 0xfffffe00005719b0
turnstile_wait() at 0xffffffff80d17030 = turnstile_wait+0x320/frame 0xfffffe0000571a00
__mtx_lock_sleep() at 0xffffffff80c921e5 = __mtx_lock_sleep+0x185/frame 0xfffffe0000571a90
softclock_call_cc() at 0xffffffff80ccddf5 = softclock_call_cc+0xf5/frame 0xfffffe0000571b30
softclock() at 0xffffffff80cce2e9 = softclock+0x79/frame 0xfffffe0000571b50
ithread_loop() at 0xffffffff80c7539b = ithread_loop+0x1cb/frame 0xfffffe0000571bb0
fork_exit() at 0xffffffff80c71e5e = fork_exit+0x7e/frame 0xfffffe0000571bf0
fork_trampoline() at 0xffffffff812dc80e = fork_trampoline+0xe/frame 0xfffffe0000571bf0
Comment 1 Vladyslav V. Prodan 2022-06-22 19:50:37 UTC
FreeBSD 12.3-STABLE #0 r372167M: Wed Jun 22 15:14:34 EEST 2022
Comment 2 Vladyslav V. Prodan 2022-06-22 22:46:20 UTC
Virtual machine with 12.3-STABLE and 2GB RAM

It produces tests for assembling the kernel and the world.
After installing the new kernel and world, the commands were made:
sync
reboot.

After that I got a panic, a subsequent reboot and a text crashdump.
Comment 3 Vladyslav V. Prodan 2022-06-22 23:08:50 UTC
(In reply to Vladislav V. Prodan from comment #2)

The VM is running on host with Windows 10 with Virtualbox 6.1.34.
The virtual machine is allocated 6 CPU core and 2 GB RAM.
Inside the virtual machine, the virtualbox-ose-additions-nox11-6.1.34 package is installed and the services are running:
vboxguest_enable
vboxservice_enable
Comment 4 Mark Johnston freebsd_committer freebsd_triage 2022-07-04 13:59:34 UTC
Probably one of these two threads.  Looks like a virtualbox bug then:

Tracing command Timer pid 135 tid 100519 td 0xfffff80006e1e740
sched_switch() at 0xffffffff80ce26e6 = sched_switch+0x606/frame 0xfffffe0013edaa70
mi_switch() at 0xffffffff80cbebdb = mi_switch+0xdb/frame 0xfffffe0013edaaa0
sleepq_timedwait() at 0xffffffff80d0e92f = sleepq_timedwait+0x2f/frame 0xfffffe0013edaae0
rtR0SemEventWait() at 0xffffffff82d3d0eb = rtR0SemEventWait+0x2ab/frame 0xfffffe0013edab50
rtTimerThread() at 0xffffffff82d37c05 = rtTimerThread+0xc5/frame 0xfffffe0013edab80
rtThreadMain() at 0xffffffff82d280dc = rtThreadMain+0x2c/frame 0xfffffe0013edaba0
rtThreadNativeMain() at 0xffffffff82d3e536 = rtThreadNativeMain+0x16/frame 0xfffffe0013edabb0
fork_exit() at 0xffffffff80c71e5e = fork_exit+0x7e/frame 0xfffffe0013edabf0
fork_trampoline() at 0xffffffff812dc80e = fork_trampoline+0xe/frame 0xfffffe0013edabf0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---

Tracing command kldload pid 134 tid 100529 td 0xfffff800063ce000
sched_switch() at 0xffffffff80ce26e6 = sched_switch+0x606/frame 0xfffffe0013f0c2a0
mi_switch() at 0xffffffff80cbebdb = mi_switch+0xdb/frame 0xfffffe0013f0c2d0
sleepq_wait() at 0xffffffff80d0e05c = sleepq_wait+0x2c/frame 0xfffffe0013f0c300
rtR0SemEventMultiBsdWait() at 0xffffffff82d3d6ed = rtR0SemEventMultiBsdWait+0x1ed/frame 0xfffffe0013f0c360
vgdrvHgcmAsyncWaitCallbackWorker() at 0xffffffff82d1e2fa = vgdrvHgcmAsyncWaitCallbackWorker+0x14a/frame 0xfffffe0013f0c3a0
VbglR0HGCMInternalConnect() at 0xffffffff82d1f42b = VbglR0HGCMInternalConnect+0x11b/frame 0xfffffe0013f0c3f0
VGDrvCommonIoCtl() at 0xffffffff82d1bc9d = VGDrvCommonIoCtl+0xb5d/frame 0xfffffe0013f0c470
VGDrvCommonProcessOptionsFromHost() at 0xffffffff82d1aa56 = VGDrvCommonProcessOptionsFromHost+0x146/frame 0xfffffe0013f0c570
vgdrvFreeBSDAttach() at 0xffffffff82d1e988 = vgdrvFreeBSDAttach+0x1d8/frame 0xfffffe0013f0c5b0
device_attach() at 0xffffffff80cec593 = device_attach+0x3c3/frame 0xfffffe0013f0c600
device_probe_and_attach() at 0xffffffff80cec1b1 = device_probe_and_attach+0x41/frame 0xfffffe0013f0c630
pci_driver_added() at 0xffffffff8087acd3 = pci_driver_added+0xf3/frame 0xfffffe0013f0c670
devclass_driver_added() at 0xffffffff80cea009 = devclass_driver_added+0x39/frame 0xfffffe0013f0c6b0
devclass_add_driver() at 0xffffffff80ce9f8d = devclass_add_driver+0x13d/frame 0xfffffe0013f0c6f0
module_register_init() at 0xffffffff80c90e24 = module_register_init+0xa4/frame 0xfffffe0013f0c720
linker_load_module() at 0xffffffff80c8371f = linker_load_module+0xa7f/frame 0xfffffe0013f0ca40
kern_kldload() at 0xffffffff80c84fbd = kern_kldload+0xbd/frame 0xfffffe0013f0ca90
sys_kldload() at 0xffffffff80c850fb = sys_kldload+0x5b/frame 0xfffffe0013f0cac0
amd64_syscall() at 0xffffffff813042d7 = amd64_syscall+0x387/frame 0xfffffe0013f0cbf0
fast_syscall_common() at 0xffffffff812dc0fe = fast_syscall_common+0xf8/frame 0xfffffe0013f0cbf0
--- syscall (304, FreeBSD ELF64, sys_kldload), rip = 0x8002deb2a, rsp = 0x7fffffffd748, rbp = 0x7fffffffdcc0 ---