[Bug 279901] glibc-2.39-2 and above on the host segfault

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 22 Jun 2024 01:17:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279901

            Bug ID: 279901
           Summary: glibc-2.39-2 and above on the host segfault
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: holo@libsharedobject.so

Reproduction steps:

1. get current arch iso (or other rolling release linux). The following will
deal with archlinux
2. boot install medium inside the bhyve vm, and attempt to run any of: [vim,
python3, archinstall, gdb (if installed), localedef]
3. all of the above will crash with a segfault (sigsev) and error 4 (cause was
a user-mode read resulting in no page being found.)
4. downgrading to glibc-2.39-1 fixes all of the above applications, though in
the case of bootstrapping scripts like archinstall, this can be fail to work
if, for instance, the script re-downloads glibc.

Existing board post discussing this:
https://bbs.archlinux.org/viewtopic.php?id=295802

offending commit:
https://sourceware.org/git/?p=glibc.git;a=commit;h=aa4249266e9906c4bc833e4847f4d8feef59504f

Affects:
- Ryzen 5 7600, possibly more AMD Zen3 & Zen4 CPUs

Last working version:
- linux glibc-2.39-1

Relevant /boot/loader.conf:
vmm_load="YES"
hw.vmm.amdvi.enable="1"

Relevant /etc/rc.conf:
vm_enable="YES"
vm_dir="zfs:zroot/vm"

vm-bhyve configuration file:
loader="uefi"
graphics="yes"
xhci_mouse="yes"

cpu="8"
cpu_sockets="1"
cpu_cores="4"
cpu_threads="2"

memory="8G"

ahci_device_limit="8"

network0_type="virtio-net"
network0_switch="public"

disk0_type="nvme"
disk0_name="disk0.img"

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