Bug 253175 - 13.0-RC5 hang issue after installer / issuing shutdown -r now on installed base
Summary: 13.0-RC5 hang issue after installer / issuing shutdown -r now on installed base
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-02 04:22 UTC by danskoya
Modified: 2021-04-14 00:35 UTC (History)
6 users (show)

See Also:


Attachments
error after installer (38.67 KB, image/png)
2021-02-02 04:22 UTC, danskoya
no flags Details
error after completing installer (31.93 KB, image/png)
2021-02-02 04:22 UTC, danskoya
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description danskoya 2021-02-02 04:22:00 UTC
Created attachment 222088 [details]
error after installer

Attempted to install FreeBSD 13.0-ALPHA1 and ALPHA3 on Vultr but system hangs after a successful run with the installer and issuing "shutdown -r now" after booting into the the installed base.
Comment 1 danskoya 2021-02-02 04:22:45 UTC
Created attachment 222089 [details]
error after completing installer
Comment 2 danskoya 2021-02-02 13:22:17 UTC
My apologies, I forgot to mention these:

Images I used - 

FreeBSD-13.0-ALPHA1-amd64-20210114-7ae27c2d6c4-255938-bootonly.iso
FreeBSD-13.0-ALPHA3-amd64-20210129-40cb0344eb2-256214-bootonly.iso

- formatted target storage as UFS/GPT

- booting into Live CD (instead of running installer) renders the same issue (hanging)

- while stuck, CPU usage jumps up to 100% (Vultr)
Comment 3 danskoya 2021-02-13 05:30:34 UTC
Problem still exist on BETA2, unfortunately.
Comment 4 Dennis Clarke 2021-02-24 11:38:52 UTC
This is a 13-0-BETA3 fresh install : 

# uname -apKU
FreeBSD europa 13.0-BETA3 FreeBSD 13.0-BETA3 #0 releng/13.0-n244525-150b4388d3b: Fri Feb 19 04:04:34 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64 amd64 1300139 1300139

After the install of 13.0-BETA3 and the initial creation of a few users
and a reboot or two I may utter "shutdown -p 'now'" which then leaves
the machine still powered on. This is what I see on the console : 

Waiting for PIDS: 856.
Stopping devd.
Waiting for PIDS: 587.
Writing entrophy file: .
Writing early boot entrophy file: .
.
Terminated
Feb 23 11:49:53 europa syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop... done
Waiting (max 60 seconds) for system process `syncer' to stop... done
Syncing disks, vnodes remaining... 0 0 0 0 0 done
Waiting (max 60 seconds) for system process `bufdaemon' to stop... done
Waiting (max 60 seconds) for system process `bufspacedaemon-0' to stop... done
Waiting (max 60 seconds) for system process `bufspacedaemon-3' to stop... done
Waiting (max 60 seconds) for system process `bufspacedaemon-1' to stop... done
Waiting (max 60 seconds) for system process `bufspacedaemon-2' to stop... done
All buffers synced.
Uptime: 7h44m23s
uhub6: detached
uhub5: detached
re0: link state changed to DOWN
re0: link state changed to UP
uhub1: detached
uhub7: detached
uhub3: detached
ums0: detached
uhub4: detached
uhub2: detached
uhub0: detached


Then we have the machine stuck at that point still powered on and there
is even a mouse cursor/arrow pointer on the screen. I may try to switch
over to a serial console just to see if that is any different. However
perhaps this has something to do with having a old PS2 style keyboard
plugged in? I am at a loss as to why the machine will not power off. 

This is not fascinating hardware in the least. It is just an old ACER
workstation pulled out of a pile and a few disks connected to it. The
hardware list looks like :

root@europa:~ # pciconf -lv
hostb0@pci0:0:0:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x9601 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'RS880 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1025 device=0x9602 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Acer Incorporated [ALI]'
    device     = 'AMD RS780/RS880 PCI to PCI bridge (int gfx)'
    class      = bridge
    subclass   = PCI-PCI
ahci0@pci0:0:17:0:      class=0x010400 rev=0x40 hdr=0x00 vendor=0x1002 device=0x4393 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 SATA Controller [RAID5 mode]'
    class      = mass storage
    subclass   = RAID
ohci0@pci0:0:18:0:      class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:18:2:      class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
ohci1@pci0:0:19:0:      class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:19:2:      class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
intsmb0@pci0:0:20:0:    class=0x0c0500 rev=0x42 hdr=0x00 vendor=0x1002 device=0x4385 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SBx00 SMBus Controller'
    class      = serial bus
    subclass   = SMBus
hdac1@pci0:0:20:2:      class=0x040300 rev=0x40 hdr=0x00 vendor=0x1002 device=0x4383 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SBx00 Azalia (Intel HDA)'
    class      = multimedia
    subclass   = HDA
isab0@pci0:0:20:3:      class=0x060100 rev=0x40 hdr=0x00 vendor=0x1002 device=0x439d subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 LPC host controller'
    class      = bridge
    subclass   = PCI-ISA
pcib2@pci0:0:20:4:      class=0x060401 rev=0x40 hdr=0x01 vendor=0x1002 device=0x4384 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SBx00 PCI to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
ohci2@pci0:0:20:5:      class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4399 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB OHCI2 Controller'
    class      = serial bus
    subclass   = USB
pcib3@pci0:0:21:0:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x43a0 subvendor=0x1002 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:0:21:1:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x43a1 subvendor=0x1002 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:0:21:3:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x43a3 subvendor=0x1002 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB900 PCI to PCI bridge (PCIE port 3)'
    class      = bridge
    subclass   = PCI-PCI
ohci3@pci0:0:22:0:      class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller'
    class      = serial bus
    subclass   = USB
ehci2@pci0:0:22:2:      class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller'
    class      = serial bus
    subclass   = USB
hostb1@pci0:0:24:0:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 15h Processor Function 0'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:1:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 15h Processor Function 1'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:2:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 15h Processor Function 2'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:3:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 15h Processor Function 3'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:4:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 15h Processor Function 4'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:5:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 15h Processor Function 5'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:1:5:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x9715 subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'RS880 [Radeon HD 4250]'
    class      = display
    subclass   = VGA
hdac0@pci0:1:5:1:       class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x970f subvendor=0x1025 subdevice=0x0591
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'RS880 HDMI Audio [Radeon HD 4200 Series]'
    class      = multimedia
    subclass   = HDA
xhci0@pci0:4:0:0:       class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x1b6f device=0x7023 subvendor=0x1025 subdevice=0x8030
    vendor     = 'Etron Technology, Inc.'
    device     = 'EJ168 USB 3.0 Host Controller'
    class      = serial bus
    subclass   = USB
re0@pci0:5:0:0: class=0x020000 rev=0x06 hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x1025 subdevice=0x8000
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
root@europa:~ # 

So this is bone stock off the shelf boring hardware.
Nothing interesting to see here at all.

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
Comment 5 Dennis Clarke 2021-02-24 12:19:09 UTC
It may be reasonable to change the version field here to 13.0 BETA3.

Dennis
Comment 6 danskoya 2021-02-24 14:45:33 UTC
(In reply to Dennis Clarke from comment #5)

all set, good Sir. Thank you providing more details.
Comment 7 Dennis Clarke 2021-02-27 16:54:31 UTC
Problem seems to be fixed in BETA4.  I will do a few more tests but for
the moment a shutdown -p 'now' does what it says it does.
Comment 8 danskoya 2021-02-28 05:19:52 UTC
Still the same issue with shutdown -p/-r "now" on Vultr - just stuck. All of my FreeBSD 12.2-RELEASE instances doesn't have this particular issue.

VirtualBox under macOS 10.13.6 (host) doesn't have this issue, it must be QEMU-related (which is what Vultr uses (i believe).
Comment 9 Eric Benner 2021-03-01 22:42:27 UTC
Vultr is indeed using qemu. Its a version 5.x+. Was there any other platforms experiencing this or any headway in discovering the route cause? If the is something we can do on our end to smooth over this release you can contact me directly and I can get it implemented.
Comment 10 Dennis Clarke 2021-03-01 22:54:08 UTC
    One moment please. 

    Do we care about an emulation program here?
    In my mind this problem is solved.

Dennis Clarke
Comment 11 danskoya 2021-03-03 22:13:04 UTC
(In reply to Eric Benner from comment #9)

Hello Sir,

David Finster (@dfinr) who works for Vultr responded to my Tweet and is also  following this report. I filed ticket with Vultr but was told it will take time and they are looking into it. I hope they can get it fixed before the final release. 

Thank you.
Comment 12 danskoya 2021-03-07 03:21:15 UTC
Same issue with Vultr & RC1
Comment 13 danskoya 2021-03-19 01:00:42 UTC
Same issue with Vultr & RC3
Comment 14 danskoya 2021-03-31 04:15:54 UTC
Same issue with Vultr & RC4
Comment 15 danskoya 2021-04-03 16:17:03 UTC
Same issue with Vultr & RC5 using FreeBSD-13.0-RC5-amd64-bootonly.iso
Comment 16 elij 2021-04-13 22:54:23 UTC
Just encountered with with 13.0-RELEASE (also on vultr). 
Note: This did not happen on 12R2 or any version prior that I can recall.
Comment 17 elij 2021-04-13 22:55:45 UTC
Forgot to mention -- this was after an in-place upgrade from 12.2 (with latest patches) to 13.0-RELEASE.
Comment 18 Glen Barber freebsd_committer 2021-04-14 00:35:24 UTC
We are very much aware of the issue.  Once a fix is in place, a post-release EN is planned.  Until then, it remains an open issue.