[Bug 286893] Cold boot panic (as virtual machine under VirtualBox v7.1.6/MS Windows 10): panic: sleeping thread holds Giant

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 May 2025 00:07:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286893

            Bug ID: 286893
           Summary: Cold boot panic (as virtual machine under VirtualBox
                    v7.1.6/MS Windows 10): panic: sleeping thread holds
                    Giant
           Product: Base System
           Version: 14.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: ax61@disroot.org

Created attachment 260493
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260493&action=edit
20250517-0 text version of saved core after panic

FreeBSD 14 is a virtual machine under as VirtualBox v7.1.6 (with extensions
pack) on MS Windows 10 on ThinkPad X260 laptop. FreeBSD
"virtualbox-ose-additions-6.1.50.1402000_2" package has been installed.

Today got a panic (compressed "core.txt" is attached) after cold boot (happens
occasionally on cold boot). "Cold boot" in this case was: shutdown the VM; took
a snapshot in VirtualBox; merged with earlier snapshot; restarted.

Some of the text is from "core.txt" is ...

Sat May 17 23:39:41 UTC 2025

FreeBSD io 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC  amd64

panic: sleeping thread holds Giant

Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...
Reading symbols from /boot/kernel/zfs.ko...
Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...
Reading symbols from /boot/kernel/cryptodev.ko...
Reading symbols from /usr/lib/debug//boot/kernel/cryptodev.ko.debug...
Reading symbols from /boot/kernel/intpm.ko...
Reading symbols from /usr/lib/debug//boot/kernel/intpm.ko.debug...
Reading symbols from /boot/kernel/smbus.ko...
Reading symbols from /usr/lib/debug//boot/kernel/smbus.ko.debug...
Reading symbols from /boot/modules/vboxguest.ko...
(No debugging symbols found in /boot/modules/vboxguest.ko)
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
warning: Source file is more recent than executable.
57              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
        td = <optimized out>
#2  0xffffffff80b3d7a7 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:523
        once = 0
#3  0xffffffff80b3dc7e in vpanic (
    fmt=0xffffffff811215b8 "sleeping thread holds %s",
    ap=ap@entry=0xfffffe0073131d10) at /usr/src/sys/kern/kern_shutdown.c:967
        buf = "sleeping thread holds Giant", '\000' <repeats 228 times>
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        other_cpus = {__bits = {1, 0 <repeats 15 times>}}
        td = 0xfffff800041a1740
        bootopt = <unavailable>
        newpanic = <optimized out>
#4  0xffffffff80b3dad3 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:891
        ap = {{gp_offset = 16, fp_offset = 48,
            overflow_arg_area = 0xfffffe0073131d40,
            reg_save_area = 0xfffffe0073131ce0}}
#5  0xffffffff80ba42c5 in propagate_priority (td=0xfffff80006b9c000)
    at /usr/src/sys/kern/subr_turnstile.c:249
        pri = 8
        ts = 0xfffff800036f6600
        top = 0xfffff800036f6600
#6  0xffffffff80ba4e01 in turnstile_wait (ts=ts@entry=0xfffff800036f6600,
    owner=owner@entry=0xfffff80006b9c000, queue=queue@entry=0)
    at /usr/src/sys/kern/subr_turnstile.c:807
        td = 0xfffff800041a1740
        tc = <optimized out>
        td1 = <optimized out>
        lock = <optimized out>
#7  0xffffffff80b19a05 in __mtx_lock_sleep (c=0xffffffff81801bd8 <Giant+24>,
    v=<optimized out>) at /usr/src/sys/kern/kern_mutex.c:666
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        lda = {config = 0xffffffff818000a0 <locks_delay>, delay = 1024,
          spin_cnt = 22529}
        sleep_cnt = 0
        sleep_time = 0
        all_time = 0
        doing_lockprof = <optimized out>
        td = 0xfffff800041a1740
        tid = 18446735277685348160
        m = 0xffffffff81801bc0 <Giant>
        owner = 0xfffff80006b9c000
        ts = 0xfffff800036f6600
...

-- 
You are receiving this mail because:
You are the assignee for the bug.