ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
643 stars 74 forks source link

[TF2][Linux] Random segfaults in vguimatsurface.so, possibly related to joining/leaving a server. #5653

Open Nocrex opened 6 months ago

Nocrex commented 6 months ago

The game randomly segfaults on my system, with both OpenGL and Vulkan backends, seemingly randomly when you join/leave a server.

Journal log of segfault ``` Apr 19 02:51:16 monolith steam.desktop[97719]: crash_20240419025116_3.dmp[97719]: Uploading dump (out-of-process) Apr 19 02:51:16 monolith steam.desktop[97719]: /tmp/dumps/crash_20240419025116_3.dmp Apr 19 02:51:16 monolith kernel: tf_linux64[87900]: segfault at 2d1397d4e84 ip 00007acab03f7a1e sp 00007ffd2ef24000 error 4 in vguimatsurface.so[7acab02f9000+14f000] likely on CPU 10 (core 4, socket 0) Apr 19 02:51:16 monolith kernel: Code: 81 fe ff 00 00 00 89 75 9c 48 89 55 b8 48 89 4d b0 4c 89 45 a8 4c 89 4d a0 0f 8f 05 01 00 00 48 63 de 48 8d 04 5b 4c 8d 24 47 <41> 80 7c 24 44 00 74 4a 48 8d 04 5b 48 8b 4d b8 49 8d 04 47 0f be Apr 19 02:51:16 monolith systemd[1]: Started Process Core Dump (PID 97720/UID 0). Apr 19 02:51:18 monolith steam.desktop[97719]: crash_20240419025116_3.dmp[97719]: Finished uploading minidump (out-of-process): success = yes Apr 19 02:51:18 monolith steam.desktop[97719]: crash_20240419025116_3.dmp[97719]: response: CrashID=bp-e7cd9477-c28a-4c06-ba00-b308c2240418 Apr 19 02:51:18 monolith steam.desktop[97719]: crash_20240419025116_3.dmp[97719]: file ''/tmp/dumps/crash_20240419025116_3.dmp'', upload yes: ''CrashID=bp-e7cd9477-c28a-4c06-ba00-b308c2240418'' Apr 19 02:51:18 monolith steam.desktop[97719]: pid 97719 != 97718, skipping destruction (fork without exec?) Apr 19 02:51:34 monolith systemd-coredump[97722]: [šŸ”•] Process 87900 (tf_linux64) of user 1000 dumped core. Stack trace of thread 87900: #0 0x00007acab03f7a1e n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x1f7a1e) #1 0x00007aca5fe9510a n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/tf/bin/linux64/client.so + 0x209510a) #2 0x00007aca5fe2a312 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/tf/bin/linux64/client.so + 0x202a312) #3 0x00007aca5fe47ccd n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/tf/bin/linux64/client.so + 0x2047ccd) #4 0x00007acab0307d0d n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d0d) #5 0x00007acab0307d9b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d9b) #6 0x00007acab0307d9b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d9b) #7 0x00007acab0307d9b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d9b) #8 0x00007acab0307d9b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d9b) #9 0x00007acab0307d9b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d9b) #10 0x00007acab0307d9b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x107d9b) #11 0x00007acab030819b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vguimatsurface.so + 0x10819b) #12 0x00007acab0ab3d19 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/vgui2.so + 0x22d19) #13 0x00007acab2a3d603 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x63d603) #14 0x00007acab2924208 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x524208) #15 0x00007acab2937956 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x537956) #16 0x00007acab2939ff5 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x539ff5) #17 0x00007acab294f50a n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x54f50a) #18 0x00007acab294f8ee n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x54f8ee) #19 0x00007acab2a2a57b n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x62a57b) #20 0x00007acab2a26c1e n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x626c1e) #21 0x00007acab2a26d41 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x626d41) #22 0x00007acab2a894a7 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x6894a7) #23 0x00007acab2a289c9 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/engine.so + 0x6289c9) #24 0x00007acabae43a27 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/launcher.so + 0x31a27) #25 0x00007acabae43a27 n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/launcher.so + 0x31a27) #26 0x00007acabae2026e n/a (/home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/launcher.so + 0xe26e) #27 0x00007acabc643cd0 n/a (/run/host/usr/lib/libc.so.6 + 0x25cd0) ELF object binary architecture: AMD x86-64 Apr 19 02:51:34 monolith systemd[1]: systemd-coredump@4-97720-0.service: Deactivated successfully. Apr 19 02:51:34 monolith systemd[1]: systemd-coredump@4-97720-0.service: Consumed 13.842s CPU time. Apr 19 02:51:34 monolith steam.desktop[87896]: /home/nocrex/.local/share/Steam/steamapps/common/Team Fortress 2/tf.sh: line 83: 87900 Segmentation fault (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" ```
System Info ``` Computer Information: Manufacturer: HP Model: 8906 Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 5 5600G with Radeon Graphics CPU Family: 0x19 CPU Model: 0x50 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 3900 MHz 12 logical processors 6 physical processors Hyper-threading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Supported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: "Arch Linux" (64 bit) Kernel Name: Linux Kernel Version: 6.8.2-zen2-1-zen X Server Vendor: The X.Org Foundation X Server Release: 12101011 X Window Manager: GNOME Shell Steam Runtime Version: steam-runtime_0.20240415.84615 Video Card: Driver: NVIDIA Corporation NVIDIA GeForce RTX 3060/PCIe/SSE2 Driver Version: 4.6.0 NVIDIA 550.67 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 143 Hz VendorID: 0x10de DeviceID: 0x2504 Revision Not Detected Number of Monitors: 2 Number of Logical Video Cards: 2 Primary Display Resolution: 2560 x 1440 Desktop Resolution: 4480 x 1440 Primary Display Size: 23.50" x 13.23" (26.97" diag), 59.7cm x 33.6cm (68.5cm diag) Primary Bus: PCI Express 16x Primary VRAM: 12288 MB Supported MSAA Modes: 2x 4x 8x 16x Sound card: Audio device: Nvidia GPU 9f HDMI/DP Memory: RAM: 15320 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 1867612 MB Largest Free Hard Disk Block: 869249 MB Storage: Number of SSDs: 1 SSD sizes: 2000G Number of HDDs: 0 Number of removable drives: 0 ```
misyltoad commented 6 months ago

Do you have a CrashID from Steam?

kisak-valve commented 6 months ago

Hello @Joshua-Ashton, CrashID=bp-e7cd9477-c28a-4c06-ba00-b308c2240418 in the opening post.

misyltoad commented 6 months ago

Oh cool

misyltoad commented 6 months ago

Will be fixed in the next update.

Tiagoquix commented 6 months ago

Still happens to me. On Fedora Linux 40 KDE.

De-Clan-C commented 5 months ago

I'm getting something similar but it says bus error. I believe it might have to do with systemd

Journal log ``` May 16 14:21:35 decktop-fedora abrt-notification[27259]: [šŸ”•] Process 9283 (tf_linux64) crashed in __memset_sse2_unaligned_erms() May 16 14:21:35 decktop-fedora abrt-applet[2903]: g_app_info_should_show: assertion 'G_IS_APP_INFO (appinfo)' failed May 16 14:21:35 decktop-fedora abrt-server[27191]: Deleting problem directory ccpp-2024-05-16-14:21:30.532588-26028 (dup of ccpp-2024-05-13-21:54:52.453475-9283) May 16 14:21:31 decktop-fedora abrt-server[27191]: Lock file '.lock' was locked by process 27196, but it crashed? May 16 14:21:31 decktop-fedora abrt-server[27191]: Unsupported container technology May 16 14:21:30 decktop-fedora audit: BPF prog-id=149 op=UNLOAD May 16 14:21:30 decktop-fedora audit: BPF prog-id=150 op=UNLOAD May 16 14:21:30 decktop-fedora audit: BPF prog-id=151 op=UNLOAD May 16 14:21:30 decktop-fedora systemd[1]: systemd-coredump@8-27126-0.service: Consumed 9.673s CPU time. May 16 14:21:30 decktop-fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@8-27126-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 16 14:21:30 decktop-fedora systemd[1]: systemd-coredump@8-27126-0.service: Deactivated successfully. May 16 14:21:30 decktop-fedora systemd-coredump[27128]: [šŸ”•] Process 26028 (tf_linux64) of user 1000 dumped core. Module /run/host/usr/lib64/libudev.so.1.7.8 from rpm systemd-255.6-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_radeon.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libunistring.so.5.0.0 from rpm libunistring-1.1-7.fc40.x86_64 Module /run/host/usr/lib64/libpowervr_rogue.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_panfrost.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libva.so.2.2100.0 from rpm libva-2.21.0-3.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_nouveau.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libcap.so.2.69 from rpm libcap-2.69-8.fc40.x86_64 Module /run/host/usr/lib64/libVkLayer_MESA_device_select.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_lvp.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_powervr_mesa.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_intel.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_intel_hasvk.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_freedreno.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvdpau.so.1.0.0 from rpm libvdpau-1.5-6.fc40.x86_64 Module /run/host/usr/lib64/libidn2.so.0.4.0 from rpm libidn2-2.3.7-1.fc40.x86_64 Module /run/host/usr/lib64/libvulkan_broadcom.so from rpm mesa-24.0.7-1.fc40.x86_64 Module /run/host/usr/lib64/libelf-0.191.so from rpm elfutils-0.191-4.fc40.x86_64 Module /run/host/usr/lib64/libdrm_amdgpu.so.1.0.0 from rpm libdrm-2.4.120-3.fc40.x86_64 Module /run/host/usr/lib64/libedit.so.0.0.72 from rpm libedit-3.1-50.20230828cvs.fc40.x86_64 Module /run/host/usr/lib64/libexpat.so.1.9.2 from rpm expat-2.6.2-1.fc40.x86_64 Module /run/host/usr/lib64/libxshmfence.so.1.0.0 from rpm libxshmfence-1.3.2-3.fc40.x86_64 Module /run/host/usr/lib64/libxcb-randr.so.0.1.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libxcb-shm.so.0.0.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libxcb-sync.so.1.0.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libxcb-xfixes.so.0.0.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libxcb-present.so.0.0.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libz.so.1.3.0.zlib-ng from rpm zlib-ng-2.1.6-2.fc40.x86_64 Module /run/host/usr/lib64/libvulkan.so.1.3.280 from rpm vulkan-loader-1.3.280.0-1.fc40.x86_64 Module /run/host/usr/lib64/libxcb-dri3.so.0.1.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libX11-xcb.so.1.0.0 from rpm libX11-1.8.9-1.fc40.x86_64 Module /run/host/usr/lib64/libdrm.so.2.4.0 from rpm libdrm-2.4.120-3.fc40.x86_64 Module /run/host/usr/lib64/libzstd.so.1.5.6 from rpm zstd-1.5.6-1.fc40.x86_64 Module /run/host/usr/lib64/libffi.so.8.1.2 from rpm libffi-3.4.4-7.fc40.x86_64 Module /run/host/usr/lib64/libwayland-client.so.0.22.0 from rpm wayland-1.22.0-3.fc40.x86_64 Module /run/host/usr/lib64/libXfixes.so.3.1.0 from rpm libXfixes-6.0.1-3.fc40.x86_64 Module /run/host/usr/lib64/libXau.so.6.0.0 from rpm libXau-1.0.11-6.fc40.x86_64 Module /run/host/usr/lib64/libxcb.so.1.1.0 from rpm libxcb-1.17.0-1.fc40.x86_64 Module /run/host/usr/lib64/libGLdispatch.so.0.0.0 from rpm libglvnd-1.7.0-4.fc40.x86_64 Module /run/host/usr/lib64/libXext.so.6.4.0 from rpm libXext-1.3.6-1.fc40.x86_64 Module /run/host/usr/lib64/libX11.so.6.4.0 from rpm libX11-1.8.9-1.fc40.x86_64 Module /run/host/usr/lib64/libGLX.so.0.0.0 from rpm libglvnd-1.7.0-4.fc40.x86_64 Module /run/host/usr/lib64/libGL.so.1.7.0 from rpm libglvnd-1.7.0-4.fc40.x86_64 Stack trace of thread 26028: #0 0x00007f00da7510fa __memset_sse2_unaligned_erms (/run/host/usr/lib64/libc.so.6 + 0xb20fa) #1 0x00007f00b8c9b53d n/a (/home/dcottle/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Team Fortress 2/bin/linux64/libdxvk_d3d9.so + 0x9b53d) #2 0x0000000000000000 n/a (n/a + 0x0) ELF object binary architecture: AMD x86-64 May 16 14:21:19 decktop-fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@8-27126-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' May 16 14:21:19 decktop-fedora systemd[1]: Started systemd-coredump@8-27126-0.service - Process Core Dump (PID 27126/UID 0). May 16 14:21:19 decktop-fedora audit: BPF prog-id=151 op=LOAD May 16 14:21:19 decktop-fedora audit: BPF prog-id=150 op=LOAD May 16 14:21:19 decktop-fedora audit: BPF prog-id=149 op=LOAD May 16 14:21:19 decktop-fedora audit[26028]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=26028 comm="tf_linux64" exe=2F686F6D652F64636F74746C652F2E7661722F6170702F636F6D2E76616C7665736F6674776172652E537465616D2F2E6C6F63616C2F73686172652F537465616D2F737465616D617070732F636F6D6D6F6E2F5465616D20466F72747265737320322F74665F6C696E75783634 sig=7 res=1 May 16 14:20:47 decktop-fedora rtkit-daemon[1017]: Successfully made thread 26784 of process 26028 (/home/dcottle/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Team Fortress 2/tf_linux64) owned by '1000' high priority at nice level -15. May 16 14:20:23 decktop-fedora rtkit-daemon[1017]: Successfully made thread 26315 of process 26028 (/home/dcottle/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Team Fortress 2/tf_linux64) owned by '1000' high priority at nice level -15. May 16 14:20:22 decktop-fedora gnome-shell[2475]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2e00002 ```
System Info ``` Computer Information: Manufacturer: Dell Inc. Model: 00F82W Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: GenuineIntel CPU Brand: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz CPU Family: 0x6 CPU Model: 0x3a CPU Stepping: 0x9 CPU Type: 0x0 Speed: 3900 MHz 8 logical processors 4 physical processors Hyper-threading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Unsupported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Unsupported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: "Fedora Linux 40 (Workstation Edition)" (64 bit) Kernel Name: Linux Kernel Version: 6.8.9-300.fc40.x86_64 X Server Vendor: The X.Org Foundation X Server Release: 12302006 X Window Manager: GNOME Shell Steam Runtime Version: steam-runtime_0.20240415.84615 Video Card: Driver: AMD AMD Radeon RX 580 Series (radeonsi, polaris10, LLVM 18.1.1, DRM 3.57, 6.8.9-300.fc40.x86_64) Driver Version: 4.6 (Compatibility Profile) Mesa 24.0.7 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz VendorID: 0x1002 DeviceID: 0x67df Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 1920 x 1200 Desktop Resolution: 1920 x 1200 Primary Display Size: 20.47" x 12.60" (24.02" diag), 52.0cm x 32.0cm (61.0cm diag) Primary VRAM: 8192 MB Sound card: Audio device: USB Mixer Memory: RAM: 32043 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 952244 MB Largest Free Hard Disk Block: 260728 MB Storage: Number of SSDs: 3 SSD sizes: 1000G,500G,500G Number of HDDs: 0 Number of removable drives: 0 ```

CrashID=bp-c08d87ff-ef16-4597-aead-b50a82240516

Anyone know what's up?

kisak-valve commented 5 months ago

Hello @De-Clan-C, can you check if https://gitlab.freedesktop.org/drm/amd/-/issues/3343 is relevant to your system? A quick test would be to reboot into an older kernel and see how the game behaves.

Likely unrelated to the opening post of this issue report.

De-Clan-C commented 5 months ago

I loaded kernel 6.8.8, and the game ran fine. So it might be something wrong with version 6.8.9. I'm not sure what else could've changed between the kernel versions.

The strangest part is that my laptop works just fine on kernel 6.8.9. So I'm not sure what could be going on.