protonscr

Segfault on startup on Ubuntu 20.04

steamclosed Steam clientDistro Family: Ubuntu
ValveSoftware/steam-for-linux#7863 · opened 2021-06-15 by DB-CL · updated 2021-06-15 · 3 comments · github
DDB-CL 2021-06-15 github

Your system information

  • Steam client version (build number or date): 1:1.0.0.61-2ubuntu3 installed via ppa
  • Distribution (e.g. Ubuntu): Ubuntu 20.04.2 LTS
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes. I've tried to update ubuntu, reboot many times, etc.
  • Nvidia driver : proprietary 460.80, installed via ppa (I tried to switch toward my intel card with prime-select then reboot, I can confirm I'm on the intel card when typing glxinfo -B and I still have the exact same behavior so I switched back to nvidia)
  • apt policy libnvidia-gl-460:i386 : latest version installed
  • steam --reset : tried, no luck

Please describe your issue in as much detail as possible:

Very simple : I launch steam then it segfaults :)

cyril~$ steam 
Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/cyril/.steam/debian-installation/ubuntu12_32/steam -nominidumps -nobreakpad
[2021-06-15 23:35:18] Startup - updater built Jun  8 2021 22:23:36
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2021-06-15 23:35:18] Loading cached metrics from disk (/home/cyril/.steam/debian-installation/package/steam_client_metrics.bin)
[2021-06-15 23:35:18] Using the following download hosts for Public, Realm steamglobal
[2021-06-15 23:35:18] 1. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-06-15 23:35:18] 2. https://cdn.akamai.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-06-15 23:35:18] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2021-06-15 23:35:18] Checking for update on startup
[2021-06-15 23:35:18] Checking for available updates...
[2021-06-15 23:35:18] Downloading manifest: https://cdn.cloudflare.steamstatic.com/client/steam_client_ubuntu12
[2021-06-15 23:35:19] Download skipped: /client/steam_client_ubuntu12 version 1623193086, installed version 1623193086, existing pending version 0
[2021-06-15 23:35:19] Nothing to do
[2021-06-15 23:35:19] Verifying installation...
[2021-06-15 23:35:19] Performing checksum verification of executable files
[2021-06-15 23:35:20] Verification complete
STEAM_RUNTIME_HEAVY: ./steam-runtime-heavy
cyril~$

I can see the segfaults in /var/log/kern.log

Jun 15 23:35:22 rd-cyril kernel: [  253.603210] CJobMgr::m_Work[7773]: segfault at 7584c1dc ip 00000000eca21902 sp 00000000eacfd028 error 6 in steamclient.so[ec3a2000+1d3d000]
Jun 15 23:35:22 rd-cyril kernel: [  253.603214] Code: 94 8e a9 ff 89 7c 24 44 89 74 24 40 83 c4 2c 5b 5e 5f 5d e9 80 fd ff ff 57 31 c0 b9 f9 02 00 00 8b 54 24 08 8d ba 30 02 00 00 <c7> 02 00 00 00 00 c7 42 04 00 00 00 00 c7 42 08 00 00 00 00 c6 42 

I tried to run it with coredump gdb :

cyril:~$ coredumpctl gdb steam
           PID: 10502 (steam)
           UID: 1000 (cyril)
           GID: 1000 (cyril)
        Signal: 11 (SEGV)
     Timestamp: Tue 2021-06-15 23:43:41 CEST (19s ago)
  Command Line: /home/cyril/.steam/debian-installation/ubuntu12_32/steam -nominidumps -nobreakpad
    Executable: /home/cyril/.steam/debian-installation/ubuntu12_32/steam
 Control Group: /user.slice/user-1000.slice/[email protected]/vte-spawn-b78acca8-5735-4f11-afc1-61d5e5347c77.scope
          Unit: [email protected]
     User Unit: vte-spawn-b78acca8-5735-4564-afc1-61d5e5347c77.scope
         Slice: user-1000.slice
     Owner UID: 1000 (cyril)
       Boot ID: 26d8b279ec9040652aa61b2a9b6cfb94
    Machine ID: f2664a811f9a4aaab178c3046db3d45a
      Hostname: rd-cyril
       Storage: /var/lib/systemd/coredump/core.steam.1000.26d8b279ec9040648aa61b1e8b6cfb94.10502.1623793421000000000000.lz4
       Message: Process 10502 (steam) of user 1000 dumped core.
                
                Stack trace of thread 10558:
                #0  0x00000000eca88902 n/a (/home/cyril/.steam/debian-installation/ubuntu12_32/steamclient.so + 0x67f902)
                #1  0x00000000eca8f8ba n/a (/home/cyril/.steam/debian-installation/ubuntu12_32/steamclient.so + 0x6868ba)
                #2  0x00000000eca9024b n/a (/home/cyril/.steam/debian-installation/ubuntu12_32/steamclient.so + 0x68724b)
                #3  0x00000000eca85ba9 n/a (/home/cyril/.steam/debian-installation/ubuntu12_32/steamclient.so + 0x67cba9)
                #4  0x00000000ed707999 n/a (/home/cyril/.steam/debian-installation/ubuntu12_32/steamclient.so + 0x12fe999)
                #5  0x00000000f21d82b0 n/a (/home/cyril/.steam/debian-installation/ubuntu12_32/libtier0_s.so + 0x172b0)

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 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:
<http://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 /home/cyril/.steam/debian-installation/ubuntu12_32/steam...
(No debugging symbols found in /home/cyril/.steam/debian-installation/ubuntu12_32/steam)
[New LWP 10558]
[New LWP 10550]
[New LWP 10504]
[New LWP 10546]
[New LWP 10574]
[New LWP 10557]
[New LWP 10552]
[New LWP 10565]
[New LWP 10502]
[New LWP 10563]
[New LWP 10555]
[New LWP 10545]
[New LWP 10551]
[New LWP 10562]
[New LWP 10559]
[New LWP 10511]
[New LWP 10556]
[New LWP 10570]
[New LWP 10553]
[New LWP 10503]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `/home/cyril/.steam/debian-installation/ubuntu12_32/steam -nominidumps -nobreakp'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xeca88902 in ?? () from /home/cyril/.steam/debian-installation/ubuntu12_32/steamclient.so
[Current thread is 1 (Thread 0xeadffb40 (LWP 10558))]
(gdb)

One very strange thing : when I delete the .steam folder, it downloads again steam and manage to run ... once. It runs very well I can install games and stuff and as soon as I quit it and try to relaunch it, the same behavior occurs.

This problem happened very suddently. Steam was running fine for months now before it happened

Steps for reproducing this issue:

  1. launch steam
  2. it segfaults

Tell me if I can add more logs or if I can run more tests

Thanks

Kkisak-valve maintainer 2021-06-15 github

Hello @DB-CL, can you check if https://github.com/ValveSoftware/steam-for-linux/issues/7813#issuecomment-861475454 works around the issue you are seeing. I suspect that you're seeing the issue being tracked at #7813 and the distro-modified Steam package is redirecting some, but not all of the terminal spew which is hiding some key details from you.

DDB-CL 2021-06-15 github

Yep that's it. The workaround you mentionned worked.

I've seen that issue but I really thought that was different because I had no mention to utlmemory.h

Guess I can close this bug and stick with the #7813

DDB-CL 2021-06-15 github

Thanks btw :)