Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-42410

glibc: Provide thread-safe getenv [rhel-10]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-10.0.beta
    • glibc
    • None
    • None
    • 7a61e7f557a97ab597d6fca5e2d1f13f65685c61
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • None

      What were you trying to do that didn't work?

      After booting the guest, this error message appears in the current guest's dmesg:
      [   24.804240] gnome-shell[2272]: segfault at 564c1e174f8b ip 00007ff3da05a6ad sp 00007ff34affee90 error 4 in libc.so.6[7ff3da03f000+15f000] likely on CPU 13 (core 1, socket 1

      Please provide the package NVR for which bug is seen:

      kernel-6.10.0-0.rc2.10.el10.x86_64

      qemu-kvm-9.0.0-2.el10.x86_64

      gnome-shell-46.2-3.el10.x86_64

      edk2-ovmf-20240214-1.el10.noarch

      How reproducible:

      100%

      Steps to reproduce

      1. Boot a guest

      /usr/libexec/qemu-kvm \
      -name 'avocado-vt-vm1'  \
      -sandbox on,elevateprivileges=deny,obsolete=deny,resourcecontrol=deny \
      -blockdev '{"node-name": "file_ovmf_code", "driver": "file", "filename": "/usr/share/OVMF/OVMF_CODE.secboot.fd", "auto-read-only": true, "discard": "unmap"}' \
      -blockdev '{"node-name": "drive_ovmf_code", "driver": "raw", "read-only": true, "file": "file_ovmf_code"}' \
      -blockdev '{"node-name": "file_ovmf_vars", "driver": "file", "filename": "/root/avocado/data/avocado-vt/avocado-vt-vm1_rhel100-64-virtio-scsi-ovmf_qcow2_filesystem_VARS.raw", "auto-read-only": true, "discard": "unmap"}' \
      -blockdev '{"node-name": "drive_ovmf_vars", "driver": "raw", "read-only": false, "file": "file_ovmf_vars"}' \
      -machine q35,pflash0=drive_ovmf_code,pflash1=drive_ovmf_vars,memory-backend=mem-machine_mem \
      -device '{"id": "pcie-root-port-0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x1", "chassis": 1}' \
      -device '{"id": "pcie-pci-bridge-0", "driver": "pcie-pci-bridge", "addr": "0x0", "bus": "pcie-root-port-0"}'  \
      -nodefaults \
      -device '{"driver": "VGA", "bus": "pcie.0", "addr": "0x2"}' \
      -m 29696 \
      -object '{"size": 31138512896, "id": "mem-machine_mem", "qom-type": "memory-backend-ram"}'  \
      -smp 24,maxcpus=24,cores=12,threads=1,dies=1,sockets=2  \
      -cpu 'Icelake-Server-noTSX',+kvm_pv_unhalt \
      -device '{"id": "pcie-root-port-1", "port": 1, "driver": "pcie-root-port", "addr": "0x1.0x1", "bus": "pcie.0", "chassis": 2}' \
      -device '{"driver": "qemu-xhci", "id": "usb1", "bus": "pcie-root-port-1", "addr": "0x0"}' \
      -device '{"driver": "usb-tablet", "id": "usb-tablet1", "bus": "usb1.0", "port": "1"}' \
      -device '{"id": "pcie-root-port-2", "port": 2, "driver": "pcie-root-port", "addr": "0x1.0x2", "bus": "pcie.0", "chassis": 3}' \
      -device '{"id": "virtio_scsi_pci0", "driver": "virtio-scsi-pci", "bus": "pcie-root-port-2", "addr": "0x0"}' \
      -blockdev '{"node-name": "file_image1", "driver": "file", "auto-read-only": true, "discard": "unmap", "aio": "threads", "filename": "/home/kvm_autotest_root/images/rhel100-64-virtio-scsi-ovmf.qcow2", "cache": {"direct": true, "no-flush": false}}' \
      -blockdev '{"node-name": "drive_image1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_image1"}' \
      -device '{"driver": "scsi-hd", "id": "image1", "drive": "drive_image1", "write-cache": "on"}' \
      -device '{"id": "pcie-root-port-3", "port": 3, "driver": "pcie-root-port", "addr": "0x1.0x3", "bus": "pcie.0", "chassis": 4}' \
      -device '{"driver": "virtio-net-pci", "mac": "9a:f0:1d:2d:b2:14", "id": "idNeZ8UC", "netdev": "id0VKDVg", "mq": true, "vectors": 34, "bus": "pcie-root-port-3", "addr": "0x0"}' \
      -netdev  '{"id": "id0VKDVg", "type": "tap", "vhost": true, "queues": 16}'  \
      -vnc :0  \
      -rtc base=utc,clock=host,driftfix=slew  \
      -boot menu=off,order=cdn,once=c,strict=off \
      -enable-kvm \
      -device '{"id": "pcie_extra_root_port_0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x3", "chassis": 5}' \
      -monitor stdio \
      -serial unix:/tmp/monitor1,server,nowait \
      

      2. Guest dmesg appears error messges:

      [   24.908333] gnome-shell[2432]: segfault at 55acac557026 ip 00007f5d4ca5a6ad sp 00007f5cc1bfee90 error 4 in libc.so.6[7f5d4ca3f000+15f000] likely on CPU 23 (core 11, socket 1)^M
      [   24.908345] Code: 84 e4 74 59 e8 74 4e fe ff 48 8b 5d 00 49 89 c6 48 85 db 75 15 eb 36 66 0f 1f 44 00 00 48 8b 5d 08 48 83 c5 08 48 85 db 74 23 <44> 3a 23 75 ee 4c 89 f2 48 89 de 4c 89 ef e8 30 4f fe ff 85 c0 75^M

      Expected results

      guest dmesg no such error messages

      Actual results

      guest dmesg appears error messges: gnome-shell[2432]: segfault

              Unassigned Unassigned
              rhn-support-leiyang Lei Yang
              Florian Weimer Florian Weimer
              qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated: