Upgrading an i386 from 12.3p6 to 13.1-RELEASE it hangs after rebooting in the new kernel.

From: Maurizio Vairani <maurizio1018_at_gmail.com>
Date: Thu, 15 Sep 2022 09:24:12 UTC
Using the instruction at
https://www.freebsd.org/releases/13.1R/installation/
following: Upgrading Using "FreeBSD Update",
the system hangs after rebooting in the new kernel.

The system boots, but at the console, repetitiously print the message:
"CPU0: local APIC error 0x4"

I can only switch off the PC.

I have tested the system with these two images:
FreeBSD-13.1-STABLE-i386-20220819-6ecf086d5a0-252127-mini-memstick.img
FreeBSD-14.0-CURRENT-i386-20220819-545db925c3d-257513-mini-memstick.img
but it hangs with the above message.

The output of the dmesg command of the working FreeBSD 12.3p6.:
---<<BOOT>>---
mptable_probe: MP Config Table has bad signature: d 98
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 12.3-RELEASE-p6 GENERIC i386
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git
llvmorg-10.0.1-0-gef32c611aa2)
VT(vga): resolution 640x480
CPU: AMD Athlon(tm) XP 2000+ (1536.85-MHz 686-class CPU)
  Origin="AuthenticAMD"  Id=0x6a0  Family=0x6  Model=0xa  Stepping=0

Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>
real memory  = 1073741824 (1024 MB)
avail memory = 1003597824 (957 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <Nvidia AWRDACPI>
random: unblocking device.
ioapic0 <Version 1.1> irqs 0-23 on motherboard
Timecounter "TSC" frequency 1536849151 Hz quality 800
random: entropy device external interface
WARNING: Device "g_ctl" is Giant locked and may be deleted before FreeBSD
14.0.
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD
14.0.
kbd1 at kbdmux0
WARNING: Device "pci" is Giant locked and may be deleted before FreeBSD
14.0.
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0x14dd4b0, 0) error 19
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <Nvidia AWRDACPI> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <NVIDIA nForce2 AGP Controller> on hostb0
WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD
14.0.
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
ohci0: <OHCI (generic) USB controller> mem 0xed084000-0xed084fff irq 20 at
device 2.0 on pci0
usbus0 on ohci0
ohci1: <OHCI (generic) USB controller> mem 0xed085000-0xed085fff irq 21 at
device 2.1 on pci0
usbus1 on ohci1
ehci0: <NVIDIA nForce2 USB 2.0 controller> mem 0xed086000-0xed0860ff irq 22
at device 2.2 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci0
nfe0: <NVIDIA nForce2 MCP2 Networking Adapter> port 0xc000-0xc007 mem
0xed083000-0xed083fff irq 20 at device 4.0 on pci0
miibus0: <MII bus> on nfe0
icsphy0: <ICS1893 10/100 media interface> PHY 1 on miibus0
icsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
nfe0: Ethernet address: 00:00:00:60:15:3e
pci0: <multimedia, audio> at device 5.0 (no driver attached)
pcm0: <nVidia nForce2> port 0xb000-0xb0ff,0xb400-0xb47f mem
0xed080000-0xed080fff irq 22 at device 6.0 on pci0
pcm0: <Avance Logic ALC650 AC97 Codec>
pcib1: <ACPI PCI-PCI bridge> at device 8.0 on pci0
pci1: <ACPI PCI bus> on pcib1
atapci0: <VIA 6421 SATA150 controller> port
0x9000-0x900f,0x9400-0x940f,0x9800-0x980f,0x9c00-0x9c0f,0xa000-0xa01f,0xa400-0xa4ff
irq 18 at device 6.0 on pci1
ata2: <ATA channel> at channel 0 on atapci0
ata3: <ATA channel> at channel 1 on atapci0
ata4: <ATA channel> at channel 2 on atapci0
atapci1: <nVidia nForce2 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 9.0 on pci0
ata0: <ATA channel> at channel 0 on atapci1
ata1: <ATA channel> at channel 1 on atapci1
pci0: <serial bus, FireWire> at device 13.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
vgapci0: <VGA-compatible display> mem
0xeb000000-0xebffffff,0xe0000000-0xe3ffffff,0xe4000000-0xe407ffff irq 16 at
device 0.0 on pci2
vgapci0: Boot video device
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77b irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROMs> at iomem 0xd0000-0xd7fff,0xd8000-0xd97ff pnpid
ORM0000 on isa0
ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable,
            add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
ugen2.1: <nVidia EHCI root HUB> at usbus2
uhub0: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen1.1: <nVidia OHCI root HUB> at usbus1
uhub1: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <nVidia OHCI root HUB> at usbus0
uhub2: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Trying to mount root from zfs:qbic/ROOT/12.3-RELEASE-p7_2022-09-13_205331
[]...
uhub1: 3 ports with 3 removable, self powered
uhub2: 3 ports with 3 removable, self powered
Root mount waiting for: usbus2 CAM
Root mount waiting for: usbus2 CAM
uhub0: 6 ports with 6 removable, self powered
Root mount waiting for: usbus2 CAM
Root mount waiting for: usbus2 CAM
ugen2.2: <Kingston DataTraveler 3.0> at usbus2
umass0 on uhub0
umass0: <Kingston DataTraveler 3.0, class 0/0, rev 2.10/11.76, addr 2> on
usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:5:0: Attached to scbus5
Root mount waiting for: usbus2 CAM
Root mount waiting for: usbus2 CAM
ugen2.3: <Kingston DataTraveler 3.0> at usbus2
umass1 on uhub0
umass1: <Kingston DataTraveler 3.0, class 0/0, rev 2.10/11.76, addr 3> on
usbus2
umass1:  SCSI over Bulk-Only; quirks = 0x8100
umass1:6:1: Attached to scbus6
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
ada0 at ata2 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD4000AAJS-22TKA0 12.01C01> ATA-7 SATA 2.x device
ada0: Serial Number WD-WCAPW1730388
ada0: 150.000MB/s transfers (SATA 1.x, UDMA4, PIO 8192bytes)
ada0: 381554MB (781422768 512 byte sectors)
da0 at umass-sim0 bus 0 scbus5 target 0 lun 0
da0: <Kingston DataTraveler 3.0 1.00> Removable Direct Access SPC-4 SCSI
device
da0: Serial Number 08606E69C773309039650204
da0: 40.000MB/s transfers
da0: 14800MB (30310400 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
da1 at umass-sim1 bus 1 scbus6 target 0 lun 0
da1: <Kingston DataTraveler 3.0 1.00> Removable Direct Access SPC-4 SCSI
device
da1: Serial Number 60A44C3FAC043090397A0202
da1: 40.000MB/s transfers
da1: 14800MB (30310400 512 byte sectors)
da1: quirks=0x2<NO_6_BYTE>
WARNING: Device "spkr" is Giant locked and may be deleted before FreeBSD
14.0.
lo0: link state changed to UP
nfe0: link state changed to DOWN
nfe0: link state changed to UP
--
Regards
Maurizio