ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
764 stars 69 forks source link

SIGSEGV at __memmove_evex_unaligned_erms in libtier0.so #3727

Open saada2006 opened 1 month ago

saada2006 commented 1 month ago

Your system information

Ubuntu 22.04 RTX 3080 on Nvidia Driver 550 i9-11900k 64 GB RAM Using .deb version of steam

Please describe your issue in as much detail as possible:

CS2 was working perfectly fine a few days ago, but now it starts crashing before a window can be created. I tried verifying my game files, updating my packages and video drivers, reinstalling the game, etc but the crash kept happening. I ran cs2 in gdb, here is my output:

saad@saad-desktop:~/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64$ gdb -ex run cs2
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from cs2...
(No debugging symbols found in cs2)
Starting program: /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/cs2 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after vfork from child process 23476]
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x5555555a1960
Steam AppId(730), BreakpadId(2347771)
InitSteamLogin_Internal: Initializing breakpad.
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/saad/.steam/debian-installation/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
minidumps folder is set to /tmp/dumps
05/02 19:03:08 Init: Installing breakpad exception handler for appid(730)/version(8864476)/tid(23473)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561199577287323 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561199577287323
SteamAPI_Init succeeded.  SteamID is [U:1:1617021595] (76561199577287323), AppID is 730
ResetBreakpadAppId: Universe is 1 (k_EUniversePublic)
ResetBreakpadAppId: Setting non standard break pad app id: 2347771
Setting breakpad minidump AppID = 2347771
CSteam3Client::Activate succeeded.  SteamID is [U:1:1617021595] (76561199577287323), AppID is 730
Loaded libSDL3.so.0, got 0x5555556bca30
[New Thread 0x7ffff5503640 (LWP 23478)]
[New Thread 0x7ffff51ff640 (LWP 23479)]
[New Thread 0x7ffff4bff640 (LWP 23480)]
[New Thread 0x7ffff1f7f640 (LWP 23481)]
[New Thread 0x7ffff1efe640 (LWP 23482)]
[New Thread 0x7ffff0dff640 (LWP 23483)]
[New Thread 0x7ffff0d7e640 (LWP 23484)]
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x555555583120
Visibility enabled.
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x5555556c8cb0
Unknown read error 21
USRLOCAL path using Steam profile data folder:
/home/saad/.steam/debian-installation/userdata/1617021595/730/local
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x5555556ffeb0
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x555555793030
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55555574fc50
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55555575dc30
Loaded /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55555576f8c0
Enabling instance extension: VK_KHR_get_physical_device_properties2.
Using VK_EXT_memory_budget set texture memory budget to 9090 MB.
HLSL SM6.0 level subgroup wave ops supported, subgroup size = 32
Vulkan physical device (0): supports shader clip distance: true
Using VK_EXT_memory_budget set texture memory budget to 9992 MB.
HLSL SM6.0 level subgroup wave ops supported, subgroup size = 32
Vulkan physical device (2): supports shader clip distance: true
[New Thread 0x7fffd021d640 (LWP 23487)]
[New Thread 0x7fffcd74e640 (LWP 23488)]
[New Thread 0x7fffcd73d640 (LWP 23489)]
[New Thread 0x7fffb3fff640 (LWP 23490)]
Loaded video settings config from 'cfg/cs2_video.txt'
Vulkan Physical Device: NVIDIA GeForce RTX 3080
Initializing streaming texture manager.
Vulkan extension enabled: VK_KHR_swapchain
Vulkan extension enabled: VK_KHR_dedicated_allocation
Vulkan extension enabled: VK_KHR_descriptor_update_template
Vulkan extension enabled: VK_KHR_image_format_list
Vulkan extension enabled: VK_KHR_maintenance1
Vulkan extension enabled: VK_KHR_maintenance2
Vulkan extension enabled: VK_EXT_separate_stencil_usage
Vulkan extension enabled: VK_KHR_swapchain_mutable_format
Vulkan extension enabled: VK_EXT_multi_draw
Vulkan extension enabled: VK_EXT_load_store_op_none
Vulkan extension enabled: VK_KHR_pipeline_library
Vulkan extension enabled: VK_EXT_extended_dynamic_state
Vulkan extension enabled: VK_EXT_extended_dynamic_state2
Vulkan extension enabled: VK_KHR_dynamic_rendering
Vulkan extension enabled: VK_KHR_depth_stencil_resolve
Vulkan extension enabled: VK_KHR_create_renderpass2
Vulkan extension enabled: VK_EXT_graphics_pipeline_library
Vulkan extension enabled: VK_EXT_extended_dynamic_state3
Vulkan extension enabled: VK_EXT_memory_priority
Vulkan extension enabled: VK_KHR_shader_float16_int8
Vulkan extension enabled: VK_KHR_separate_depth_stencil_layouts
Vulkan extension enabled: VK_EXT_pipeline_creation_cache_control
Vulkan extension enabled: VK_KHR_buffer_device_address
Vulkan extension enabled: VK_KHR_shader_clock
Vulkan extension enabled: VK_EXT_depth_bias_control
Vulkan extension enabled: VK_EXT_descriptor_indexing
Vulkan extension enabled: VK_EXT_memory_budget
Vulkan extension enabled: VK_EXT_pageable_device_local_memory
Vulkan extension enabled: VK_KHR_draw_indirect_count
Vulkan extension enabled: VK_EXT_subgroup_size_control
[New Thread 0x7fffb2dff640 (LWP 23492)]
[New Thread 0x7fffb25fe640 (LWP 23493)]
[New Thread 0x7fffb1dfd640 (LWP 23494)]
[New Thread 0x7fffb149c640 (LWP 23496)]
[New Thread 0x7fff9bfff640 (LWP 23500)]
[New Thread 0x7fff9b7fe640 (LWP 23501)]
Fossilize INFO: Overriding serialization path: "/home/saad/.steam/debian-installation/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache".
[New Thread 0x7fff9a90c640 (LWP 23502)]
VK_EXT_graphics_pipeline_library and dependent extensions enabled.
[New Thread 0x7fff9a10b640 (LWP 23503)]
[New Thread 0x7fff9990a640 (LWP 23504)]
[New Thread 0x7fff98bff640 (LWP 23505)]
[New Thread 0x7fff83dff640 (LWP 23506)]
[New Thread 0x7fff82fff640 (LWP 23507)]
[New Thread 0x7fff821ff640 (LWP 23508)]
[New Thread 0x7fff813ff640 (LWP 23509)]
[New Thread 0x7fff6ffff640 (LWP 23510)]
Vulkan Command Buffer Pool Threshold(1500)

Thread 1 "cs2" received signal SIGSEGV, Segmentation fault.
__memmove_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:873
873 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) bt 10
#0  __memmove_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:873
#1  0x00007ffff75353ec in ?? () from /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so
#2  0x00007ffffffeaef0 in ?? ()
#3  0x00007ffff785a058 in ?? () from /home/saad/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so
#4  0x00000000000004e1 in ?? ()
#5  0x0000000000000000 in ?? ()

Here is a crash report from /tmp/dumps/ as well.

saada2006 commented 4 weeks ago

Issue resolved: reinstalling both CS2 and Steam did the trick.

freeze-dolphin commented 4 weeks ago

I have the same output running gdb -ex run cs2 (saying:

Thread 1 "cs2" received signal SIGSEGV, Segmentation fault.
__memmove_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:874
874 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.

)

but reinstalling both cs2 and steam doesn't work for me.


System Information ``` Computer Information: Manufacturer: Dell Inc. Model: 0042CN Form Factor: Laptop No Touch Input Detected Processor Information: CPU Vendor: GenuineIntel CPU Brand: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz CPU Family: 0x6 CPU Model: 0x8c CPU Stepping: 0x1 CPU Type: 0x0 Speed: 4200 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: Supported AVX512F: Supported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Supported AVX512VNNI: Supported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: Linux Mint 21.3 (64 bit) Kernel Name: Linux Kernel Version: 5.15.0-105-generic X Server Vendor: The X.Org Foundation X Server Release: 12101004 X Window Manager: Mutter (Muffin) Steam Runtime Version: steam-runtime_0.20240304.79797 Video Card: Driver: Intel Mesa Intel(R) Xe Graphics (TGL GT2) Driver Version: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 60 Hz VendorID: 0x8086 DeviceID: 0x9a49 Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 1920 x 1080 Desktop Resolution: 1920 x 1080 Primary Display Size: 13.54" x 7.64" (15.51" diag), 34.4cm x 19.4cm (39.4cm diag) Primary VRAM Not Detected Sound card: Audio device: Realtek ALC3204 Memory: RAM: 15733 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 405540 MB Largest Free Hard Disk Block: 101996 MB Storage: Number of SSDs: 1 SSD sizes: 512G Number of HDDs: 0 Number of removable drives: 0 ```

Here is the console log of directly run game/bin/linuxsteamrt64/cs2:

Console log ``` Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55576595c7e0 Using breakpad crash handler [S_API] SteamAPI_Init(): Loaded '/home/freeze-dolphin/.local/share/Steam/linux64/steamclient.so' OK. Setting breakpad minidump AppID = 730 Forcing breakpad minidump interfaces to load Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit minidumps folder is set to /tmp/dumps 05/04 22:58:11 Init: Installing breakpad exception handler for appid(730)/version(8864476)/tid(64432) Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561198879867556 [API loaded yes] SteamInternal_SetMinidumpSteamID: Setting Steam ID: 76561198879867556 Setting breakpad minidump AppID = 2347771 Loaded libSDL3.so.0, got 0x555765a5e420 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x55576593df70 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x555765ad7410 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x555765a9f7c0 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x555765c5d9a0 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x555765c5e180 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x555765b447f0 Loaded /home/freeze-dolphin/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x555765b58860 Fossilize INFO: Overriding serialization path: "/home/freeze-dolphin/.local/share/Steam/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache". Segmentation fault (core dumped) ```
saada2006 commented 4 weeks ago

My best guess is that there's some missing/corrupted file somewhere that libtier0.so is trying to load and use. I have seen other CS2 segfaults in the past that seemed to be resolved when moving to the flatpak version of Steam, further supporting this theory.

Here's the exact list of steps I took while trying to resolve this issue:

  1. Verify integrity of CS2
  2. Update all system packages (sudo apt update and sudo apt upgrade)
  3. Update video drivers
  4. Reinstalling CS2
  5. Using dpkg to uninstall steam
  6. Deleting everything in ~/.steam
  7. Using apt to install steam
  8. Reinstalling CS2

If it is a missing/corrupted file issue, then step 6 would be really important if the file is located in ~/.steam. When you uninstall Steam using your package manager, it does not delete the stuff in ~/.steam so make sure you are deleting it manually.

Hope this helps.

freeze-dolphin commented 3 weeks ago

I have seen other CS2 segfaults in the past that seemed to be resolved when moving to the flatpak version of Steam, further supporting this theory.

Tried switching to Flatpak Steam, not working. And encountering the same problem. :sob:

saada2006 commented 3 weeks ago

IIRC, since Flatpak applications use their own versions of libraries like glibc, it is very unlikely it is some ABI incompatibility issue. Might be a driver/hardware issue then.

freeze-dolphin commented 3 weeks ago

Running Counter-Strike Global Offensive/game/bin/linuxsteamrt64/cs2 executable once with valgrind truly solved the problem :smile:

Simply do:

valgrind -v ./cs2

https://steamcommunity.com/app/730/discussions/0/3881597531962830650/#c6993585599485636573