From owner-freebsd-current@freebsd.org Fri Mar 19 12:13:57 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC70B57191C for ; Fri, 19 Mar 2021 12:13:57 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F22qn3Q56z4fc0 for ; Fri, 19 Mar 2021 12:13:57 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.nyi.freebsd.org (Postfix) id 75018571F8A; Fri, 19 Mar 2021 12:13:57 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 749A7571DAD for ; Fri, 19 Mar 2021 12:13:57 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F22qn2Jp1z4fby for ; Fri, 19 Mar 2021 12:13:56 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E0B7326010C; Fri, 19 Mar 2021 13:13:47 +0100 (CET) Subject: Re: Boot time crash - Sleeping thread owns a non-sleepable lock To: "David R. Bergstein" , current@freebsd.org References: <4e9908f5-3bbc-f7b2-e2bc-45376d524215@gmail.com> From: Hans Petter Selasky Message-ID: <159229f1-59e8-7d18-5f18-dc9607e901b0@selasky.org> Date: Fri, 19 Mar 2021 13:13:29 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <4e9908f5-3bbc-f7b2-e2bc-45376d524215@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4F22qn2Jp1z4fby X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 12:13:57 -0000 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@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 > > 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: > . > Find the GDB manual and other documentation resources online at: >     . > > 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: > ---<>--- > 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@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git > llvmorg-11.0.1-0-g43ff75f2c3fe) > VT(vga): text 80x25 > CPU: Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz (3103.68-MHz > K8-class CPU) >   Origin="GenuineIntel"  Id=0x106a5  Family=0x6  Model=0x1a Stepping=5 > Features=0x1783fbff > >   Features2=0x180201 >   AMD Features=0x28100800 >   AMD Features2=0x1 >   Structured Extended Features3=0x10000000 >   TSC: P-state invariant > real memory  = 9126805504 (8704 MB) > avail memory = 8285257728 (7901 MB) > Event timer "LAPIC" quality 100 > ACPI APIC Table: > 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 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: > cryptosoft0: > aesni0: No AES or SHA support. > acpi0: > acpi0: Power Button (fixed) > acpi0: Sleep Button (fixed) > cpu0: on acpi0 > attimer0: 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: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > isab0: at device 1.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0 > ata0: at channel 0 on atapci0 > ata1: at channel 1 on atapci0 > vgapci0: mem 0xe0000000-0xefffffff irq 18 at > device 2.0 on pci0 > vgapci0: Boot video device > em0: 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: port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at > device 5.0 on pci0 > pcm0: > ohci0: mem > 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0 > usbus0 on ohci0 > usbus0: 12Mbps Full Speed USB v1.0 > pci0: at device 7.0 (no driver attached) > ehci0: 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: on acpi0 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: 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: at iomem 0xc0000-0xc7fff,0xe2000-0xe2fff pnpid > ORM0000 on isa0 > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff pnpid > PNP0900 on isa0 > atrtc0: 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: at usbus0 > uhub0 on usbus0 > ugen1.1: at usbus1 > uhub0: on usbus0 > uhub1 on usbus1 > uhub1: on usbus1 > ada0 at ata0 bus 0 scbus0 target 0 lun 0 > ada0: 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: 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