Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game failed to launch with Vulkan: src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x40a6210 #2949

Closed
valonce opened this issue Feb 16, 2022 · 5 comments

Comments

@valonce
Copy link

valonce commented Feb 16, 2022

Your system information

Please describe your issue in as much detail as possible:

i expect game to launch

Steps for reproducing this issue:

  1. add -vulkan launch option
  2. start the game

Actual result in log:

failed to dlopen /home/test1/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/localize_client.so error=/home/test1/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/localize_client.so: wrong ELF class: ELFCLASS32 info: Game: csgo_linux64 info: DXVK: v1.9.1-100-g336868d info: Built-in extension providers: info: SDL2 WSI info: Enabled instance extensions: info: VK_KHR_get_surface_capabilities2 info: VK_KHR_surface info: VK_KHR_xlib_surface src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x40a6210 /home/test1/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 88: 8231 Aborted (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" Game process removed: AppID 730 "/home/test1/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- '/home/test1/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh' -steam -vulkan -fullscreen -nojoy -novid -nohltv -high -threads 4 +mat_queue_mode 2 +fps_max 60 -freq 60", ProcID 8227 Uploaded AppInterfaceStats to Steam

  • without -vulkan option game starts
  • this issue came with last small CS GO update several days ago (Monday?)
  • i think reason is "src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x40a6210"
@wagyourtail
Copy link

wagyourtail commented Feb 16, 2022

what distro are you using?
I'm on archlinux, and iirc it stopped working when I -Syu'd yesterday after hearing that the toolchain finally updated
the flatpak version of steam worked for me with -vulkan

@wagyourtail
Copy link

wagyourtail commented Feb 16, 2022

you need to then copy /usr/lib/libtcmalloc_minimal.so.4.5.9 to steamapps/common/Counter-Strike Global Offensive/bin/linux64/ 3 times and rename it to the previous file names.

is that "safe" to do with VAC?
If i were valve i'd be checking Shared library hashes for tampering

@kisak-valve
Copy link
Member

Hello @valonce, this issue is already being tracked at #2887. Closing as a duplicate.

@etcomment
Copy link

Hello.
Thx a lot @kvbev !!

For people under Ubuntu 21.10 and had a problem like that, this worked for me :

cd ~/.steam/steamapps/common/Counter-Strike\ Global\ Offensive/bin/linux64
sudo apt install libtcmalloc-minimal4
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.5.9 .
mv libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.5.9 .
mv libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.5.9 .
mv libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.4

Put -vulkan -nojoy -novid for parameters of the game.

@ssrublev
Copy link

ssrublev commented Sep 9, 2023

For Fedora:
sudo dnf install gperftools-libs.i686 and run Steam with LD_PRELOAD=/usr/lib/libtcmalloc.so.4 steam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants