Re: Boot time crash - Sleeping thread owns a non-sleepable lock

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Fri, 19 Mar 2021 13:13:29 +0100
On 3/19/21 2:09 AM, David R. Bergstein wrote:
> I have been seeing this boot time crash on an intermittent basis on a 
> virtual machine; FreeBSD-13.0-RC2.   Below is a copy of the kernel crash 
> dump file in case it is helpful to anyone:
> 
> --------------------------------------------------
> 
> drb-freebsd-13.localdomain dumped core - see /var/crash/vmcore.4
> 
> Thu Mar 18 20:58:47 EDT 2021
> 
> FreeBSD drb-freebsd-13.localdomain 13.0-RC2 FreeBSD 13.0-RC2 #0 
> releng/13.0-n244684-13c22f74953: Fri Mar 12 04:05:19 UTC 2021 
> root_at_releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> 
> panic: sleeping thread
> 
> GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-portbld-freebsd13.0".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
>      <http://www.gnu.org/software/gdb/documentation/>.
> 
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /boot/kernel/kernel...
> Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...
> 
> Unread portion of the kernel message buffer:
> ---<<BOOT>>---
> Copyright (c) 1992-2021 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>      The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 13.0-RC2 #0 releng/13.0-n244684-13c22f74953: Fri Mar 12 04:05:19 
> UTC 2021
> root_at_releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> FreeBSD clang version 11.0.1 (git_at_github.com:llvm/llvm-project.git 
> llvmorg-11.0.1-0-g43ff75f2c3fe)
> VT(vga): text 80x25
> CPU: Intel(R) Core(TM) i7 CPU         950  _at_ 3.07GHz (3103.68-MHz 
> K8-class CPU)
>    Origin="GenuineIntel"  Id=0x106a5  Family=0x6  Model=0x1a Stepping=5
> Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT> 
> 
>    Features2=0x180201<SSE3,SSSE3,SSE4.1,SSE4.2>
>    AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
>    AMD Features2=0x1<LAHF>
>    Structured Extended Features3=0x10000000<L1DFL>
>    TSC: P-state invariant
> real memory  = 9126805504 (8704 MB)
> avail memory = 8285257728 (7901 MB)
> Event timer "LAPIC" quality 100
> ACPI APIC Table: <VBOX   VBOXAPIC>
> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
> FreeBSD/SMP: 1 package(s) x 4 cache groups x 1 core(s)
> random: unblocking device.
> ioapic0: MADT APIC ID 4 != hw id 0
> ioapic0 <Version 2.0> irqs 0-23
> Launching APs: 2 1 3
> Timecounter "TSC-low" frequency 1551839460 Hz quality 1000
> KTLS: Initialized 4 threads
> random: entropy device external interface
> [ath_hal] loaded
> WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 
> 14.0.
> kbd1 at kbdmux0
> 000.000058 [4350] netmap_init               netmap: loaded module
> mlx5en: Mellanox Ethernet driver 3.6.0 (December 2020)
> nexus0
> vtvga0: <VT VGA driver>
> cryptosoft0: <software crypto>
> aesni0: No AES or SHA support.
> acpi0: <VBOX VBOXXSDT>
> acpi0: Power Button (fixed)
> acpi0: Sleep Button (fixed)
> cpu0: <ACPI CPU> on acpi0
> attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
> Timecounter "i8254" frequency 1193182 Hz quality 0
> Event timer "i8254" frequency 1193182 Hz quality 100
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> isab0: <PCI-ISA bridge> at device 1.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel PIIX4 UDMA33 controller> port 
> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
> ata0: <ATA channel> at channel 0 on atapci0
> ata1: <ATA channel> at channel 1 on atapci0
> vgapci0: <VGA-compatible display> mem 0xe0000000-0xefffffff irq 18 at 
> device 2.0 on pci0
> vgapci0: Boot video device
> em0: <Intel(R) PRO/1000 Network Connection> port 0xd010-0xd017 mem 
> 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0
> em0: Using 1024 TX descriptors and 1024 RX descriptors
> <6>em0: Ethernet address: 08:00:27:dd:d4:fc
> <6>em0: netmap queues/slots: TX 1/1024, RX 1/1024
> pcm0: <Intel ICH (82801AA)> port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at 
> device 5.0 on pci0
> pcm0: <SigmaTel STAC9700/83/84 AC97 Codec>
> ohci0: <Apple KeyLargo/Intrepid USB controller> mem 
> 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0
> usbus0 on ohci0
> usbus0: 12Mbps Full Speed USB v1.0
> pci0: <bridge> at device 7.0 (no driver attached)
> ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem 
> 0xf0805000-0xf0805fff irq 19 at device 11.0 on pci0
> usbus1: EHCI version 1.0
> usbus1 on ehci0
> usbus1: 480Mbps High Speed USB v2.0
> acpi_acad0: <AC Adapter> on acpi0
> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: [GIANT-LOCKED]
> WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 
> 14.0.
> psm0: model IntelliMouse Explorer, device ID 4
> orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xe2000-0xe2fff pnpid 
> ORM0000 on isa0
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff pnpid 
> PNP0900 on isa0
> atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
> atrtc0: registered as a time-of-day clock, resolution 1.000000s
> Event timer "RTC" frequency 32768 Hz quality 0
> atrtc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 14.
> Timecounters tick every 10.000 msec
> ZFS filesystem version: 5
> ZFS storage pool version: features support (5000)
> Trying to mount root from zfs:zroot/ROOT/default []...
> Root mount waiting for: CAM usbus0 usbus1
> ugen0.1: <Apple OHCI root HUB> at usbus0
> uhub0 on usbus0
> ugen1.1: <Intel EHCI root HUB> at usbus1
> uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
> uhub1 on usbus1
> uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
> ada0 at ata0 bus 0 scbus0 target 0 lun 0
> ada0: <VBOX HARDDISK 1.0> ATA8-ACS device
> ada0: Serial Number VBb8450cb8-277eed0b
> ada0: 33.300MB/s transfers (UDMA2, PIO 65536bytes)
> ada0: 61440MB (125829120 512 byte sectors)
> cd0 at ata1 bus 0 scbus1 target 0 lun 0
> cd0: <VBOX CD-ROM 1.0> Removable CD-ROM SCSI device
> cd0: Serial Number VB2-01700376
> cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
> cd0: Attempt to query device size failed: NOT READY, Medium not present
> uhub0: 12 ports with 12 removable, self powered
> Root mount waiting for: usbus1
> Root mount waiting for: usbus1
> Root mount waiting for: usbus1
> Root mount waiting for: usbus1
> uhub1: 12 ports with 12 removable, self powered
> <118>Setting hostuuid: 56767ad9-d311-7b42-9f7f-db26ca8d9b82.
> <118>Setting hostid: 0x10458f66.
> <118>Starting file system checks:
> <118>no pools available to import
> <118>Mounting local filesystems:.
> <118>Setting hostname: drb-freebsd-13.localdomain.
> <118>ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib 
> /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/gcc10 
> /usr/local/lib/gcc9 /usr/local/lib/mysql /usr/local/lib/mysql/plugin 
> /usr/local/lib/perl5/5.32/mach/CORE /usr/local/lib/qt5 
> /usr/local/lib/samba4 /usr/local/lib/signon 
> /usr/local/lib/signon/extensions /usr/local/llvm10/lib
> <118>32-bit compatibility ldconfig path: /usr/lib32
> <118>Setting up harvesting: 
> [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED 
> 
> <118>Feeding entropy: .
> vboxguest0 port 0xd020-0xd03f mem 
> 0xf0400000-0xf07fffff,0xf0800000-0xf0803fff irq 20 at device 4.0 on pci0
> Sleeping thread (tid 100521, pid 174) owns a non-sleepable lock
> KDB: stack backtrace of thread 100521:
> #0 0xffffffff80c16291 at mi_switch+0xc1
> #1 0xffffffff8293cf37 at rtR0SemEventMultiBsdWait+0x297
> #2 0xffffffff8291d36a at vgdrvHgcmAsyncWaitCallbackWorker+0x14a
> #3 0xffffffff8291e49b at VbglR0HGCMInternalConnect+0x11b
> #4 0xffffffff8291ad33 at VGDrvCommonIoCtl+0xb53
> #5 0xffffffff82919af6 at VGDrvCommonProcessOptionsFromHost+0x146
> #6 0xffffffff8291d9f8 at vgdrvFreeBSDAttach+0x1d8
> #7 0xffffffff80c462ad at device_attach+0x3dd
> #8 0xffffffff80c45eb1 at device_probe_and_attach+0x41
> #9 0xffffffff8085b966 at pci_driver_added+0xf6
> #10 0xffffffff80c43d29 at devclass_driver_added+0x39
> #11 0xffffffff80c43cad at devclass_add_driver+0x13d
> #12 0xffffffff80be6964 at module_register_init+0xa4
> #13 0xffffffff80bd8667 at linker_load_module+0xbc7
> #14 0xffffffff80bd9e4b at kern_kldload+0xbb

This needs to be fixed in the virtualbox kernel module sources.

--HPS
Received on Fri Mar 19 2021 - 11:13:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC