Skip to content

Flatpak: containers share one ld.so.cache in XDG_RUNTIME_DIR, so starting one container can break another that is running #878

Backlog

Description

@ilyvion

Your system information

  • Steam Runtime Version: steamrt4 4.0.20261021.265997, pressure-vessel 0.20261007.0
  • Steam client build: 1794536281
  • Distribution: Fedora Linux 44 (Workstation Edition), kernel 7.3.4-200.fc44.x86_64, GNOME on Wayland
  • Steam packaging: Flatpak com.valvesoftware.Steam 1.0.0.87 from Flathub (commit e02cefb32ca3), runtime org.freedesktop.Platform//26.08 (commit 95c9b964faba), Flatpak 1.18.4
  • GPU: NVIDIA GeForce RTX 2080, driver 620.70.06
  • CPU: Intel Core i9-9900K
  • Link to your full system information: https://gist.github.com/ilyvion/0a5229faba248f9e15da916a93cd4347
  • Have you checked for system updates?: Yes
  • What compatibility tool are you using?: Proton Experimental (experimental-11.0-20261123b), in Steam Linux Runtime 4.0
  • SteamLinuxRuntime/VERSIONS.txt: depot 1.0.20261021.266054, scripts 0.20261007.0
  • SteamLinuxRuntime_soldier/VERSIONS.txt: depot 2.0.20261021.266042, pressure-vessel 0.20261007.0
  • SteamLinuxRuntime_sniper/VERSIONS.txt: depot 3.0.20261021.266025, pressure-vessel 0.20261007.0
  • SteamLinuxRuntime_4/VERSIONS.txt: depot 4.0.20261021.265997, pressure-vessel 0.20261007.0

Please describe your issue in as much detail as possible:

Expected: a game launched shortly after Steam starts runs normally.

Actual: two launches failed within two minutes of starting Steam, both with missing-library errors. The same game launched normally a few minutes later, without restarting Steam.

Both failures happened while Steam was running background containers. At least one of those was a d3ddriverquery64.exe test.

What I observed

Under Flatpak, pressure-vessel puts the regenerated ld.so.cache in $XDG_RUNTIME_DIR/pressure-vessel/ldso:

pv-adverb[704]: D: run: '/sbin/ldconfig' '-f' '/run/user/1000/pressure-vessel/ldso/ld.so.conf' '-C' '/run/user/1000/pressure-vessel/ldso/new-ld.so.cache' '-X' '-v'
pv-adverb[704]: D: Generated ld.so.cache in /run/user/1000/pressure-vessel/ldso

Flatpak shares that directory between all instances of the app. In both of the running Steam client's sandboxes, /run/user/1000 is a mount of /run/user/1000/.flatpak/com.valvesoftware.Steam/xdg-run on the host. In the Steam client's own container:

/etc/ld.so.cache -> /run/user/1000/pressure-vessel/ldso/ld.so.cache

Containers do overwrite each other's cache:

  • The failing game's container generated a cache with 585 libraries at 16:15:06. When I inspected the file after the failure, it had been rewritten at 16:15:47 and contained 750 libraries.
  • The later, successful launch rewrote it again at 16:18:38, while the Steam client's container was still running and still linked to it.
Timeline (2026-12-02, local time)
Time Event
16:13:32 Steam starts
16:13:54 A Flatpak sub-sandbox starts, and runs until 16:14:18
16:14:03 Launch 1 fails with exit code 127: steam-runtime-launch-client can't find libdl.so.2
16:14:21 Another sub-sandbox starts
16:14:26 Launch 2 starts
16:14:37 The game's container runs ldconfig, which takes 29 seconds
16:15:06 The game's container finishes generating its cache
16:15:21 Steam logs that a d3ddriverquery64.exe test in sniper timed out
16:15:22.1 A new sub-sandbox starts
16:15:22.3 The sub-sandbox from 16:14:21 ends
16:15:23.4 Launch 2 fails: a child process in the game's container exits with 127, around when the missing-library errors appear
16:15:24.6 The game's container exits with status 5
16:15:51 The last background sub-sandbox ends
16:18:37 Launch 3 succeeds, with no background sub-sandboxes starting during it

Launch 1, from console-linux.txt:

[2026-12-02 16:14:03] ERROR: ld.so: object '/tmp/pressure-vessel-libs-gESVM6/${LIB}/libshared-library-guard.so' cannot be loaded as audit interface: cannot open shared object file; ignored.
[2026-12-02 16:14:03] steam-runtime-launch-client: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

Launch 2, from the Proton log:

Wine cannot find the FreeType font library.
err:winediag:gnutls_process_attach failed to load libgnutls, no support for encryption
ERROR: ld.so: object '/tmp/pressure-vessel-libs-I3Qvfp/${LIB}/libshared-library-guard.so' cannot be loaded as audit interface: cannot open shared object file; ignored.
.../Proton - Experimental/files/lib/wine/i386-unix/wine64: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
err:win:get_desktop_window failed to start explorer 1
err:vulkan:vulkan_init_once Failed to load libvulkan.so.1
err:steamclient:steamclient_call Access violation in steamclient_init.

The same container had listed libfreetype.so.6, libgnutls.so.30, libvulkan.so.1 and libc.so.6 in its cache at 16:15:06.

Suspected cause (not confirmed)

I think that when a new container starts, the shared ld.so.cache is unusable for existing containers until the new container's ldconfig finishes. Any process started in an existing container during that time can fail to find its libraries. A slow ldconfig, like the 29-second one above, would make that window much longer.

I haven't captured the contents of the cache at the moment of a failure, and I haven't checked this against the pressure-vessel source.

If that is the cause, giving each container its own ldso directory under Flatpak should avoid it.

Logs
  • failure.log: STEAM_LINUX_RUNTIME_LOG=1 STEAM_LINUX_RUNTIME_VERBOSE=1 log from launch 2
  • proton-failure.log: PROTON_LOG=1 log from launch 2
  • success.log: the same type of log as failure.log, from launch 3

Launch 1 failed before a log was created. I replaced the Steam account name, host name and STEAMVIDEOTOKEN with REDACTED or HOSTNAME.

Possibly related

Steps for reproducing this issue:

This depends on timing. I have seen it in one Steam session so far, and haven't tried to reproduce it deliberately.

  1. Fully exit the Flatpak version of Steam, then start it again.
  2. Within the first two minutes, while Steam is running its background d3ddriverquery64.exe tests, launch a Proton game.
  3. If it fails, wait until the background containers have exited (flatpak ps shows only Steam's own two instances) and launch it again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions