protonscr

Error 75 getting shared memory size with /dev/shm mounted with inode64

steamclosed Steam clientDistro Family: Ubuntu
ValveSoftware/steam-for-linux#9514 · opened 2023-05-22 by myocytebd · updated 2023-09-16 · 9 comments · github
Mmyocytebd 2023-05-22 github

Your system information

  • Steam client version (build number or date):
    Unknown - due to crash on launch
cat ./ubuntu12_32/steam-runtime/version.txt
steam-runtime_0.20230118.0
  • Distribution (e.g. Ubuntu):
    Ubuntu 22.04
  • Opted into Steam client beta?: [Yes/No]
    No
  • Have you checked for system updates?: [Yes/No]
    Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

Steps for reproducing this issue:

  1. Run steam
  2. After "checking for update" windows closed, steam crashes.

Log

steam.sh[1571299]: Running Steam on ubuntu 22.04 64-bit
steam.sh[1571299]: STEAM_RUNTIME is enabled automatically
setup.sh[1571407]: Steam runtime environment up-to-date!
steam.sh[1571299]: Steam client's requirements are satisfied
[2023-05-22 12:39:36] Startup - updater built Apr 28 2023 18:32:42
[2023-05-22 12:39:36] Startup - Steam Client launched with: '/home/xxx/.local/share/Steam/ubuntu12_32/steam'
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571516)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-05-22 12:39:36] Loading cached metrics from disk (/home/xxx/.local/share/Steam/package/steam_client_metrics.bin)
[2023-05-22 12:39:36] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2023-05-22 12:39:36] Using the following download hosts for Public, Realm steamglobal
[2023-05-22 12:39:36] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571522)
[2023-05-22 12:39:36] Checking for update on startup
[2023-05-22 12:39:36] Checking for available updates...
[2023-05-22 12:39:36] Downloading manifest: http://media.steampowered.com/client/steam_client_ubuntu12
[2023-05-22 12:39:37] Manifest download: send request
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571523)
[2023-05-22 12:39:37] Manifest download: waiting for download to finish
[2023-05-22 12:39:37] Manifest download: finished
[2023-05-22 12:39:37] Download skipped: /client/steam_client_ubuntu12 version 1682708537, installed version 1682708537, existing pending version 0
[2023-05-22 12:39:37] Nothing to do
[2023-05-22 12:39:37] Verifying installation...
[2023-05-22 12:39:37] Performing checksum verification of executable files
[2023-05-22 12:39:37] Verification complete
Loaded SDL version 3.0.0-1117-g727c7d4e2
Error 75 getting shared memory sizeGtk-Message: 12:39:37.831: Failed to load module "gail"
Gtk-Message: 12:39:37.831: Failed to load module "atk-bridge"
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xe9b099c0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xe9b081f0

(steam:1571516): Gtk-WARNING **: 12:39:37.833: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Yaru/gtk-2.0/main.rc:775: error: unexpected identifier 'direction', expected character '}'

(steam:1571516): Gtk-WARNING **: 12:39:37.833: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Yaru/gtk-2.0/hacks.rc:28: error: invalid string constant "normal_entry", expected valid string constant
GetWin32Stats: display was not open yet, good
Error 75 getting shared memory sizeError 75 getting shared memory sizesrc/common/html/chrome_ipc_client.cpp (1121) : !"Collided with existing master response stream"
src/common/html/chrome_ipc_client.cpp (1121) : !"Collided with existing master response stream"
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571516)
steamwebhelper.sh[1571531]: Runtime for steamwebhelper: defaulting to /home/xxx/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[1571531]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
assert_20230522123937_6.dmp[1571556]: Uploading dump (out-of-process)
/tmp/dumps/assert_20230522123937_6.dmp
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571557)
Could not connect to X session manager: None of the authentication protocols specified are supported
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571619)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571620)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571621)
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571622)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571623)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571626)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571627)
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
Error 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizeInstalling breakpad exception handler for appid(steam)/version(1682708537)/tid(1571651)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571652)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571653)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571654)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571667)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571668)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571669)
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
Error 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizeInstalling breakpad exception handler for appid(steam)/version(1682708537)/tid(1571673)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(1571675)
crash_20230522123938_24.dmp[1571689]: Uploading dump (out-of-process)
/tmp/dumps/crash_20230522123938_24.dmp
./steam.sh: line 798: 1571516 Segmentation fault      (core dumped) "$STEAMROOT/$STEAMEXEPATH" "$@"
~/.local/share/Steam$ assert_20230522123937_6.dmp[1571556]: Finished uploading minidump (out-of-process): success = yes
assert_20230522123937_6.dmp[1571556]: response: CrashID=bp-333ab892-fb7a-4a5a-8e61-8fa932230521
assert_20230522123937_6.dmp[1571556]: file ''/tmp/dumps/assert_20230522123937_6.dmp'', upload yes: ''CrashID=bp-333ab892-fb7a-4a5a-8e61-8fa932230521''
crash_20230522123938_24.dmp[1571689]: Finished uploading minidump (out-of-process): success = yes
crash_20230522123938_24.dmp[1571689]: response: CrashID=bp-8883f1fb-0436-4c0c-965e-da8732230521
crash_20230522123938_24.dmp[1571689]: file ''/tmp/dumps/crash_20230522123938_24.dmp'', upload yes: ''CrashID=bp-8883f1fb-0436-4c0c-965e-da8732230521''

dmp.zip

Kkisak-valve maintainer 2023-05-22 github

Hello @myocytebd, can you check if /dev/shm is configured relatively normally and not hitting an extreme like being completely full?

Mmyocytebd 2023-05-22 github

Hello @myocytebd, can you check if /dev/shm is configured relatively normally and not hitting an extreme like being completely full?

I think it is configured properly with no artificial capacity limit.

tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)

Reading and writing files with a few GiB size at /dev/shm seems fine.

Kkisak-valve maintainer 2023-05-22 github

This is a blind guess, but try remounting /dev/shm without inode64 and see if that has an effect?

Mmyocytebd 2023-05-22 github

This is a blind guess, but try remounting /dev/shm without inode64 and see if that has an effect?

mount with inode32 workaround the problem -- steam client shows login UI.
So steam client is apparently bugged. And I would guess that maybe the stat struct definition is picked incorrectly?

Part of the strace log.
fstat64() succeeds but steam client complains "Error 75 getting shared memory size".

1624987 unlink("/dev/shm/u1000-ValveIPCSharedObj-Steam") = 0
1624987 openat(AT_FDCWD, "/dev/shm/u1000-ValveIPCSharedObj-Steam", O_RDWR|O_CREAT|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC, 0777) = 20
1624987 close(17)                       = 0
1624987 close(18)                       = 0
1624987 close(19)                       = 0
1624987 flock(20, LOCK_EX)              = 0
1624987 fstat64(20, {st_mode=S_IFREG|0775, st_size=0, ...}) = 0
1624987 gettid()                        = 1624987
1624987 write(2, "Error 75 getting shared memory s"..., 35) = 35
1624987 close(20)                       = 0
Mmyocytebd 2023-05-22 github

A possible cause: (quote from tmpfs inode64 patch author)

https://chrisdown.name/2021/07/02/tmpfs-inode-corruption-introducing-inode64.html
So the problem is that if you have a 32-bit executable compiled without _FILE_OFFSET_BITS=64 on a system with a 64-bit wide ino_t, glibc's stat() will simply fail with EOVERFLOW for inode numbers greater than 2^32. As such, we need a support option for those who need to preserve this legacy behaviour while still allowing more modern systems to avoid this issue.

(Not every fstat syscall is followed by Error 75, so some fstat are correct and some are broken)

Ddubslow 2023-07-05 github

FWIW I tried manually deleting everything steam relating then doing a fresh reinstall from the official .deb, and got very similar results to 9762: https://gist.github.com/dubslow/3b100e8b2f8d796e3554216e77377ac6

Do I read that right that crash dumps are automatically uploaded to Valve?

Aatpage 2023-07-27 github

I am suddenly unable to open Steam. It was working hours ago. Looks related to this issue.

Error 75 getting shared memory sizeError 75 getting shared memory sizesrc/common/html/chrome_ipc_client.cpp (1107) : !"Collided with existing master response stream"
src/common/html/chrome_ipc_client.cpp (1107) : !"Collided with existing master response stream"
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
Error 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Fast_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Slow_Master_mem
Error 75 getting shared memory sizesrc/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
src/overlay/common/shmemdrop.h (151) : Assertion Failed: Failed creating file mapping SteamController_Master_Cursor_mem
Error 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizeError 75 getting shared memory sizesrc/common/html/chrome_ipc_client.cpp (1107) : !"Collided with existing master response stream"
src/common/html/chrome_ipc_client.cpp (1107) : !"Collided with existing master response stream"
Error 75 getting shared memory sizeError 75 getting shared memory sizesrc/common/html/chrome_ipc_client.cpp (1107) : !"Collided with existing master response stream"
src/common/html/chrome_ipc_client.cpp (1107) : !"Collided with existing master response stream"

Is there any way to work around this / roll back?

Ddubslow 2023-08-07 github

As of today, with a fresh apt-get dist-upgrade of Debian bookworm, steam now works again on my computer.

Kkisak-valve maintainer 2023-09-16 github

Closing as fixed in the 2023-09-11 Steam client update.

Nothing extracted yet.