I think I have the same or similar issue on Archlinux.
@FF-AntiK could you give some details about the similarity?
Same, Gentoo with LLVM and -stdlib=libc++ basically.
I added debugging symbols to libcxxabi and libc and got an equivalent (but more detailed) backtrace from lldb:
https://gist.github.com/markuspeloquin/4a92d7a6427bba467a6ceb74ad96712f
@FF-AntiK could you give some details about the similarity?
Steam just crashes on startup. I found out that the issue is a running audio recording stream similar to #8930 .
When there are no open recording streams, Steam just starts fine.
I had to switch from llvm profile to gcc profile with no libcxx flags set, then rebuilt the whole system, to make steam client work
Same issue on arch.
Process 748983 (steam) of user 1001 dumped core.
Stack trace of thread 749200:
#0 0x00000000f154f98d n/a (/home/cub/.local/share/Steam/ubuntu12_32/libvstdlib_s.so + 0x2298d)
ELF object binary architecture: Intel 80386
I have figured out how come over this thing. Just run some game manually from console and steam will launch in background. Then click on steam icon on tray > store/library/etc.
Strangely, the issue disappeared after restart. Starting steam as one of the first applications, makes me think something else is causing steam to crash on start.
I have also this problem
I am having a call while this.
This is the log:
user debian ~ $ steam > steam.log
/home/user/.local/share/Steam/steam.sh: línea 124: VERSION_ID: variable sin asignar
/home/user/.local/share/Steam/steam.sh: línea 124: VERSION_ID: variable sin asignar
steam.sh[163900]: Running Steam on debian 64-bit
/home/user/.local/share/Steam/steam.sh: línea 124: VERSION_ID: variable sin asignar
steam.sh[163900]: STEAM_RUNTIME is enabled automatically
setup.sh[163968]: Steam runtime environment up-to-date!
steam.sh[163900]: Steam client's requirements are satisfied
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Loaded SDL version 2.25.0-p7648887
Gtk-Message: 02:21:07.773: Failed to load module "gail"
Gtk-Message: 02:21:07.773: Failed to load module "atk-bridge"
ComputeStartupMode: found registry default startup mode: 0steamwebhelper.sh[164061]: Runtime for steamwebhelper: defaulting to /home/user/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[164061]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
Installing breakpad exception handler for appid(steam)/version(1668654564)
src/vstdlib/strtools.cpp (252) : n == 0 || s1 != NULL
src/vstdlib/strtools.cpp (252) : n == 0 || s1 != NULL
Installing breakpad exception handler for appid(steam)/version(1668654564)
assert_20221128022107_23.dmp[164197]: Uploading dump (out-of-process)
/tmp/dumps/assert_20221128022107_23.dmp
/home/user/.local/share/Steam/steam.sh: línea 798: 164044 Violación de segmento "$STEAMROOT/$STEAMEXEPATH" "$@"
user debian ~ $ kesassert_20221128022107_23.dmp[164197]: Finished uploading minidump (out-of-process): success = yes
assert_20221128022107_23.dmp[164197]: response: CrashID=bp-35e0aecc-ae48-4294-8baf-4e6ba2221127
assert_20221128022107_23.dmp[164197]: file ''/tmp/dumps/assert_20221128022107_23.dmp'', upload yes: ''CrashID=bp-35e0aecc-ae48-4294-8baf-4e6ba2221127''
@FF-AntiK could you give some details about the similarity?
Steam just crashes on startup. I found out that the issue is a running audio recording stream similar to #8930 . When there are no open recording streams, Steam just starts fine.
Same here. In my case it was OpenRGB's Effects plugin for synchronizing RGB colours to audio. Stopped the audio monitoring and everything is working now again.
I can confirm having https://github.com/CalcProgrammer1/KeyboardVisualizer running in the background prevents steam from launching.
@FF-AntiK could you give some details about the similarity?
Steam just crashes on startup. I found out that the issue is a running audio recording stream similar to #8930 . When there are no open recording streams, Steam just starts fine.
Oh my God I spent hours trying to debug this. Then I stopped the Telegram voice chat I was having and boom... Steam started to launch again. What the hell is this code :rofl: Thank you so much for posting this!
Edit: It only seems to fail when using Telegram Desktop (https://desktop.telegram.org/), Telegram Web does not cause this crash. I can reproduce it on both Fedora 37 and Ubuntu 22.04.
Hey, I just figured out a workaround for this. In the same situation as you, Gentoo, LLVM profile. Adding the LD_PRELOAD variable LD_PRELOAD=/usr/lib/gcc/x86_64-pc-linux-gnu/12/32/libstdc++.so when running steam to use libstdc++ instead of libc++ prevents the segfault for me.
Edit: I would use LD_PRELOAD="/usr/lib/gcc/x86_64-pc-linux-gnu/12/libstdc++.so /usr/lib/gcc/x86_64-pc-linux-gnu/12/32/libstdc++.so to preload both the 64 and 32 bit libs to be safe. I've just modified the desktop entry with Exec=env LD_PRELOAD="/usr/lib/gcc/x86_64-pc-linux-gnu/12/libstdc++.so /usr/lib/gcc/x86_64-pc-linux-gnu/12/32/libstdc++.so" /usr/bin/steam %U. For the record, this also fixes some issues with normal wine.
Adding the LD_PRELOAD variable LD_PRELOAD=/usr/lib/gcc/x86_64-pc-linux-gnu/12/32/libstdc++.so when running steam to use libstdc++ instead of libc++ prevents the segfault for me.
I've been having the same problem for about a month now and this fixed it for me as well.
There's a lot of mixed problems mentioned in this issue. It is only about a libc++/libstdc++ incompatibility. It seems nobody is checking if their terminal output matches...
Thanks, @vi-improved, for a workaround! I can stop booting into Windows now!
FWIW, I've been fighting with steam crashing like this for over a month, and it was the audio recording thing as mentioned in other comments. (openrgb as with another user)
that's a brutal bug, and should get fixed ASAP.
FWIW, I've been fighting with steam crashing like this for over a month, and it was the audio recording thing as mentioned in other comments. (openrgb as with another user)
that's a brutal bug, and should get fixed ASAP.
Did you try the beta client? I didn't bother yet, because starting openrgb after starting steam is fixing the problem for me.
There's a lot of mixed problems mentioned in this issue. It is only about a libc++/libstdc++ incompatibility. It seems nobody is checking if their terminal output matches...
Judging by the previous replies, people are having 2 different independent issues with similar output. Since the original bug report was about the Gentoo LLVM profile, the Audio Recording bug should probably be filed as a separate bug. This should probably only be an issue on Gentoo LLVM profile, as I don't know of any other glibc-based distro that uses libc++ by default.
As of today (2023-03-07), I am having this same issue on Arch Linux WITHOUT any active audio capture streams as far as I can tell. It did not happen yesterday, and I did not perform a system upgrade. There is a little more output before the crash, though:
steam.sh[13617]: Running Steam on antergos rolling 64-bit
steam.sh[13617]: STEAM_RUNTIME is enabled automatically
setup.sh[13691]: Steam runtime environment up-to-date!
steam.sh[13617]: Steam client's requirements are satisfied
[2023-03-07 15:33:26] Startup - updater built Feb 14 2023 00:47:09
[2023-03-07 15:33:26] Startup - Steam Client launched with: '/home/viktor/.local/share/Steam/ubuntu12_32/steam'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-03-07 15:33:26] Loading cached metrics from disk (/home/viktor/.local/share/Steam/package/steam_client_metrics.bin)
[2023-03-07 15:33:26] Using the following download hosts for Public, Realm steamglobal
[2023-03-07 15:33:26] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-03-07 15:33:26] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-03-07 15:33:26] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-03-07 15:33:26] Checking for update on startup
[2023-03-07 15:33:26] Checking for available updates...
[2023-03-07 15:33:26] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2023-03-07 15:33:26] Manifest download: send request
[2023-03-07 15:33:26] Manifest download: waiting for download to finish
[2023-03-07 15:33:27] Manifest download: finished
[2023-03-07 15:33:27] Download skipped: /steam_client_ubuntu12 version 1676336721, installed version 1676336721, existing pending version 0
[2023-03-07 15:33:27] Nothing to do
[2023-03-07 15:33:27] Verifying installation...
[2023-03-07 15:33:27] Performing checksum verification of executable files
[2023-03-07 15:33:27] Verification complete
Loaded SDL version 3.0.0-765-gc4db0725e
/usr/share/themes/Breeze/gtk-2.0/widgets/entry:70: error: unexpected identifier 'direction', expected character '}'
(steam:13823): Gtk-WARNING **: 15:33:27.843: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Breeze/gtk-2.0/widgets/styles:36: error: invalid string constant "combobox_entry", expected valid string constant
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xec9f5db0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xec9f4500
GetWin32Stats: display was not open yet, good
ComputeStartupMode: found registry default startup mode: 0steamwebhelper.sh[13851]: Runtime for steamwebhelper: defaulting to /home/viktor/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[13851]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
CAppInfoCacheReadFromDiskThread took 113 milliseconds to initialize
/home/viktor/.local/share/Steam/steam.sh: line 798: 13823 Segmentation fault (core dumped) "$STEAMROOT/$STEAMEXEPATH" "$@"
The GTK warning is probably not relevant, since it has also happened when steam starts successfully, but what comes after it could be; I don't know.
2023-03-08 update: after having changed nothing at all, steam just started quite normally without issue
Same issue on ubuntu 22.10.
I am getting a similar looking issue (being the seg fault in the same place) causing steam to crash although it's only happening when I attempt to launch Dungeon Defenders. I haven't seen any random crashes. The work-around from vi-improved seems to have solved it for me. Thanks for providing the information here for more information about my system I am also using Gentoo just without the LLVM profile
For the record, this is probably not Steam's problem. The only way to realistically fix this would be to provide a build linked against LLVM libc++, which would really only benefit Gentoo on the GLIBC/LLVM profile.
I'm getting this on Ubuntu 23.10 as of today, it's been fine and then suddenly it won't work.
Stack trace from gdb:
Thread 1 "steam" received signal SIGSEGV, Segmentation fault.
__GI_strchr () at ../sysdeps/i386/i586/strchr.S:117
Download failed: Invalid argument. Continuing without source file ./string/../sysdeps/i386/i586/strchr.S.
117 ../sysdeps/i386/i586/strchr.S: No such file or directory.
(gdb) bt
#0 __GI_strchr () at ../sysdeps/i386/i586/strchr.S:117
#1 0x57ba1290 in ?? ()
#2 0xe9215852 in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/vgui2_s.so
#3 0xe92186e2 in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/vgui2_s.so
#4 0xe91ce8fd in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/vgui2_s.so
#5 0xe91f08fc in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/vgui2_s.so
#6 0xe91eb353 in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/vgui2_s.so
#7 0xee618549 in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/steamui.so
#8 0xeeaf2c5c in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/steamui.so
#9 0xee6971a0 in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/steamui.so
[#10](/issue/ValveSoftware/steam-for-linux/10) 0xee60542f in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/steamui.so
[#11](/issue/ValveSoftware/steam-for-linux/11) 0xee606fbf in ?? () from /home/hugh/.steam/debian-installation/ubuntu12_32/steamui.so
[#12](/issue/ValveSoftware/steam-for-linux/12) 0x5659eb99 in ?? ()
[#13](/issue/ValveSoftware/steam-for-linux/13) 0x5659faae in ?? ()
[#14](/issue/ValveSoftware/steam-for-linux/14) 0x56589a20 in ?? ()
[#15](/issue/ValveSoftware/steam-for-linux/15) 0xf7a23e29 in __libc_start_call_main (main=main@entry=0x565899f0, argc=argc@entry=3, argv=argv@entry=0xffffc184) at ../sysdeps/nptl/libc_start_call_main.h:58
[#16](/issue/ValveSoftware/steam-for-linux/16) 0xf7a23eec in __libc_start_main_impl (main=0x565899f0, argc=3, argv=0xffffc184, init=0x56a25b20 <__libc_csu_init>, fini=0x56a25b90 <__libc_csu_fini>, rtld_fini=0xf7fcde40 <_dl_fini>, stack_end=0xffffc17c)
at ../csu/libc-start.c:360
[#17](/issue/ValveSoftware/steam-for-linux/17) 0x5658e8d5 in _start ()
Tried removing, purging, reinstalling, it's going nowhere.
It is loading libstdc++ but also libc++, presumably different libraries depend on one or the other.
coredumpctl gdb steam gives me this stack trace:
Stack trace of thread 526372:
#0 0x00000000f7abb835 n/a (libc.so.6 + 0xbb835)
#1 0x00000000580ff140 n/a (n/a + 0x0)
#2 0x00000000e9115852 n/a (/home/hugh/.steam/debian-installation/ubuntu12_32/vgui2_s.so + 0x60852)
WELL... I have an update.
I had tinkered with my nvidia settings, but not rebooted since. I had tried 30-bit colour, which has been "experimental" forever. I figured after a billion years, it can't possibly be as experimental as it used to be.
It wasn't until I tried to use CLion that I noticed something else was up. Trying to launch Rider gave me a very clear message: 30 is not a supported bit depth.
That was it. Of all the things... As always, YMMV. But it might be something as stupid as the way the graphics drivers are communicating their available metrics, depth or otherwise, which sometimes trips up some string manipulation in Steam, which crashes out without an elegant message.
-- Edit --
This issue came up with a search for strchr (I don't know why) but it seems to have become quite broad. It probably needs to be split up, with a major ticket for all segfaults thrown on steam.sh line 798 with guidance to get the backtrace, similar to @vimproved 's suggestion: https://github.com/ValveSoftware/steam-for-linux/issues/8923#issuecomment-1544334691 , and a list of issues that spawn out from there.
Although it's old, it's probably worth mentioning #7633
Your system information
Please describe your issue in as much detail as possible:
after client updated itself, it fails to satrt with no error message, just
Segmentation fault (core dumped)and it was fine before this update
DEBUGGER=gdb STEAM_RUNTIME=1 steam
Steps for reproducing this issue:
CXXFLAGS+=" -stdlib=libc++"set globally