Skip to content

Steam Runtime 4 can't use libcurl on Ubuntu 24.04 LTS #825

Closed

Description

@vectorstorm

Your system information

  • Steam client version : 1778281814
  • Distribution (e.g. Ubuntu): Ubuntu 24.04 LTS
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs: n/a
  • GPU: NVidia

Please describe your issue in as much detail as possible:

A report from one of our players sent me down this rabbit hole and I think I've chased it as far as I can. We've recently migrated our Linux build to Steam Runtime 4, and a user who is still running Ubuntu 24.04 LTS cannot run our game any more. They get these error messages:

/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libcrypto.so.3: version OPENSSL_3.3.0' not found (required by /lib/x86_64-linux-gnu/libssl.so.3)
/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libcrypto.so.3: version OPENSSL_3.4.0' not found (required by /lib/x86_64-linux-gnu/libssl.so.3)
/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libcrypto.so.3: version `OPENSSL_3.2.0' not found (required by /lib/x86_64-linux-gnu/libssl.so.3)

And then the game fails to launch.

After installing a fresh copy of Ubuntu 24.04 LTS on a test PC, I've confirmed that I get these same error messages. Our various test machines with more recent distros do not have this problem; it works across Arch, CachyOS, SteamDecks, AnduinOS, and a few others.

I have repro steps which don't require our game, though; only tools that ship with the container:

Steps for reproducing this issue:

  1. On an Ubuntu 24.04 LTS machine, with Steam and the Steam Linux Runtime 4 installed in default locations, run the following command in terminal: sudo ~/.steam/steam/steamapps/common/SteamLinuxRuntime_4/run xterm (you require 'sudo' in order for the runtime to successfully run bwrap, as Canonical restricts who is allowed to invoke that program in 24.04 LTS. You can omit the 'sudo' if you reconfigure AppArmor to allow unprivileged access)
  2. Inside this xterm, run the command curl. (or any other executable that links against libcurl, but 'curl' itself is easiest for testing since the runtime already includes it!)
  3. Notice you get the three error messages above, about OPENSSL_3.3.0, OPENSSL_3.4.0, and OPENSSL_3.2.0 (in that order) not being found.

I don't know why this error is only happening on Ubuntu 24.04 and not on other (more recent) distributions; I'm guessing that somehow execution is escaping from the runtime container and talking to the native distribution's crypto libraries instead of the container's more recent ones, which would explain how/why it fails on Ubuntu 24.04 but not on more recent distributions?

Activity

  1. changed the title [-]Steam Runtime 4 can't run curl on Ubuntu 24.04 LTS[/-] [+]Steam Runtime 4 can't use libcurl on Ubuntu 24.04 LTS[/+] on May 22, 2026
  2. smcv commented on May 22, 2026

    @smcv
    Contributor

    For your information, an easier and less sudo way to get a shell inside a game container is to launch a SLR 4 game with its Steam launch options set to PRESSURE_VESSEL_SHELL=instead %command%. Maelstrom is a convenient example of a free game that runs in SLR 4.

  3. smcv commented on May 22, 2026

    @smcv
    Contributor

    /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libcrypto.so.3: version OPENSSL_3.3.0' not found (required by /lib/x86_64-linux-gnu/libssl.so.3)

    At a high level, the problem is that something in the graphics stack (we can't yet tell what from the information available here) has a dependency on OpenSSL libcrypto. The graphics libraries could legitimately stop working if they don't have at least their required libcrypto, and application libraries (like libcurl and your game) could legitimately stop working if they don't have at least their required libcrypto, so we need to choose which one of those libcrypto instances is newer. If the host version is newer, we make it available in /usr/lib/pressure-vessel/overrides/, and if the container version is newer, we don't do that. In principle, this should hopefully work.

    However, something has gone wrong here. If I'm reading correctly, https://launchpad.net/ubuntu/+source/openssl says that Ubuntu 24.04 has OpenSSL 3.0.13, while https://tracker.debian.org/pkg/openssl says that Debian 13 (and therefore steamrt4) has OpenSSL 3.5.x. Therefore we should be choosing the container's version; but we aren't.

    The result is that when curl loads OpenSSL libssl, which loads OpenSSL libcrypto, we have libssl version 3.5.x but libcrypto 3.0.13, which is far too old, hence missing symbols.

    There are two angles that we can attack this from:

    • We're somehow identifying Ubuntu 24.04's OpenSSL 3.0.13 as being newer than or equal to steamrt4's 3.5.x, which is not true. My guess would be that we are unable to identify either one as being newer than the other, which means we fall back to assuming the host version is newer, because until recently that has usually been true. If we can teach the container machinery to identify their relative versions better, then we should be able to decide that 3.5.x is newer than 3.0.13.
    • And, Ubuntu 24.04's graphics stack somehow depends on OpenSSL libcrypto, which seems odd: I would not have expected a graphics stack to depend on cryptography libraries. Perhaps we can identify why, and ask for it to not do that?

    GPU: NVidia

    I wonder whether this is libnvidia-pkcs11-openssl3.so.*, which is treated as part of the graphics stack but certainly does depend on libcrypto. Perhaps we should denylist the libnvidia-pkcs11* libraries as not really being "graphics": as far as we know, they're for "confidential computation", which is more of a CUDA/GPGPU thing than a gaming thing, and OpenSSL-related breakage like this is a pretty bad impact for a library that we're not even sure we need.

    Taking this particular library from the host was broken for a while, until I fixed it in https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/merge_requests/925 in the hope that it might help to resolve #799.

    cc @ao2: see also steamrt/tasks#1035, steamrt/tasks#914 internally.

  4. vectorstorm commented on May 23, 2026

    @vectorstorm
    Author

    I've double-checked with the original user who reported the issue and can confirm that both they and the test machine I've been using are both using NVidia GPUs, so the dependency on libcrypto coming from the nvidia libraries does seem plausible. I don't have a spare AMD-equipped machine I can put Ubuntu 24.04 onto to disprove that theory, unfortunately.

    (Thanks for the pointer to Maelstrom as a SLR4 game to use as an entry point to that container; It's such a blast from the past to see it again! I'm actually in the "Thanks To" credits for the game, as I did a bunch of dev work and testing for the developer back in the day. :) )

    Anyhow, I have checked and found that my game does work on Ubuntu 24.04 LTS when built for Runtime 3 (sniper). So whatever this issue is, it appears to have come in somewhere between Sniper and Runtime 4.

  5. smcv commented on May 23, 2026

    @smcv
    Contributor

    whatever this issue is, it appears to have come in somewhere between Sniper and Runtime 4

    It's probably as simple as: sniper is based on Debian 11 (4 years older), so either it's too old to have OpenSSL 3 at all (curl would use either OpenSSL 1.x or GNUTLS), or its OpenSSL 3 is older than Ubuntu's (and therefore it's correct/harmless that Ubuntu's version is picked up).

  6. smcv commented on May 26, 2026

    @smcv
    Contributor

    There are two angles that we can attack this from

    We're looking into both of these, and if it turns out we don't actually need libnvidia-pkcs11*, we might end up making both changes in order to minimize the chance of problems in future.

    We're somehow identifying Ubuntu 24.04's OpenSSL 3.0.13 as being newer than or equal to steamrt4's 3.5.x

    We now understand why this is happening: OpenSSL 3 doesn't follow the common Linux convention of having the SONAME be a symlink to a versioned regular file, like libcrypto.so.3 -> libcrypto.so.3.5.6, but instead ships libcrypto.so.3 as a regular file. We can hopefully work around this by comparing its ELF versioned symbols.

    my game

    Out of interest, what is your game? We have lots of legacy Steam Runtime 1 games that we can use for smoke-testing new releases, but a much narrower range of SLR 3 and SLR 4 games, so it might be useful to add your game to our selection of sample games for smoke-testing new versions.

  7. vectorstorm commented on May 27, 2026

    @vectorstorm
    Author

    Out of interest, what is your game? We have lots of legacy Steam Runtime 1 games that we can use for smoke-testing new releases, but a much narrower range of SLR 3 and SLR 4 games

    It's MMORPG Tycoon 2.

    Right now, the 'default' branch is on Steam Runtime 1 and SDL2, and our publicly-visible 'test' branch is currently on Steam Runtime 3 and SDL3; I had upgraded all the way to Runtime 4, but went back down to 3 after identifying this issue and finding that 3 worked for our testers.

    Once this issue is sorted out, I'd like to bump back up to Runtime 4 again. (if it would be helpful for your testing, I could absolutely make a Runtime 4 build now in a side branch. Please let me know if you'd like me to do that!)

  8. smcv commented on May 27, 2026

    @smcv
    Contributor

    We're somehow identifying Ubuntu 24.04's OpenSSL 3.0.13 as being newer than or equal to steamrt4's 3.5.x, which is not true

    This side of the problem should be fixed in the next steamrt4 beta, which will hopefully resolve the issue.

    Perhaps we should denylist the libnvidia-pkcs11* libraries as not really being "graphics"

    It isn't yet clear whether we're going to do this as well, or not (waiting on info from Nvidia).

  9. vectorstorm commented on May 29, 2026

    @vectorstorm
    Author

    Awesome! If you let me know when that steamrt4 beta is ready for public testing, I'll verify the fix and report back.

  10. smcv commented on May 29, 2026

    @smcv
    Contributor

    If you let me know when that steamrt4 beta is ready for public testing, I'll verify the fix and report back.

    Thanks, will do. I'm hoping for sometime next week (we're waiting for SDL 3.4.10) but can't guarantee that.

  11. smcv commented on May 29, 2026

    @smcv
    Contributor

    if it would be helpful for your testing, I could absolutely make a Runtime 4 build now in a side branch

    If it's easy to do, then yes please - that'll give us one more thing to try when we test new beta candidates, which should mean we can catch more regressions than just testing Maelstrom every time.

  12. vectorstorm commented on May 29, 2026

    @vectorstorm
    Author

    If it's easy to do, then yes please

    Done! It's the new publicly visible "steamrt4" branch.

    Details:

    The game is built on a custom C++ engine, using SDL3, rendering via OpenGL, and using a compiled-in copy of GLAD as our OpenGL loader. We link against libfmod and libfmodstudio (using their provided library binaries which we bundle in with the download), and libphysfs (which we build inside the Runtime 4 SDK docker container and then ship with the game), We link against and use the container's copies of SDL3, libcurl, and libz.

    The game does now work with SDL3's wayland video driver. (this is new for us; we were doing OpenGL tricks before that Wayland's EGL interface did not like, but now it's all working! So if someday you want to test real-world SDL3 Wayland compatibility with the Steam Overlay or similar features, it should work here.)

  13. smcv commented on Jun 2, 2026

    @smcv
    Contributor

    It's the new publicly visible "steamrt4" branch

    Thanks, I can confirm that this game runs successfully [edit: on Ubuntu 24.04 with Nvidia 580.159.03] with the beta candidate we're currently testing, and it has libcurl.so.4.8.0 and libssl.so.3 from the steamrt4 runtime in its /proc/*/maps, so that's looking good so far. We can also run curl in the container.

    I'll let you know when this arrives in a public beta (not there yet). It'll initially appear in the beta branch of SteamLinuxRuntime_4, with 4.0.20260602.x or later in VERSIONS.txt.

  14. smcv commented on Jun 3, 2026

    @smcv
    Contributor

    This should be fixed in today's new beta, versioned 4.0.20260602.240811.

    Please could you opt-in an affected machine to the beta branch of the Steam Linux Runtime 4.0 compat tool, and re-test?

    We should leave this issue open until the beta has been promoted to stable, which usually takes a few weeks. You'll probably want to stay on SLR 3 until then, and retry updating to SLR 4 after this issue is fully closed.

  15. vectorstorm commented on Jun 5, 2026

    @vectorstorm
    Author

    I can confirm that with the Steam Linux Runtime 4.0 beta branch installed, our game now launches and runs successfully on our old Ubuntu 24.04 LTS machine, which previously failed as documented above. Thanks so much for the quick diagnosis and turnaround!

    Once the beta gets promoted to stable we'll move all our new Linux builds back to Runtime 4.0 - historic ones will remain on the runtimes they used when they were originally released - and we'll remove the 'steamrt4' branch, but we'll leave it there for further testing by anybody who wants to use it until then!

  16. smcv commented on Jun 5, 2026

    @smcv
    Contributor

    Perhaps we should denylist the libnvidia-pkcs11* libraries as not really being "graphics"

    It isn't yet clear whether we're going to do this as well, or not (waiting on info from Nvidia).

    FYI, after discussion with an Nvidia developer, we decided to exclude these libraries from being "captured" from the host system into the container (so the new beta has both of the solutions I suggested in #825 (comment)). We'll have to see how well that works - there was some concern about possible regressions if games use (some particular corners of) CUDA, so we might have to revert this half of the solution if there's a problem with it.

    But because we also fixed the OpenSSL version-comparison to be done correctly, even if we have to revert that half of the solution, the other half will still be present, and that should still be enough to avoid the user-visible bug coming back.

  17. smcv commented on Jun 9, 2026

    @smcv
    Contributor

    SLR 4 version 4.0.20260608.242786 has now been promoted to stable (mainly to get a regression fix for sdl2-compat) and as a result this change is now in the default branch, so I think this issue can now be closed.

  18. vectorstorm commented on Jun 10, 2026

    @vectorstorm
    Author

    I confirm that this new stable branch of Runtime 4 is still working for our game; I'll be swapping our game's main default branch over to using it sometime in the next few days. Thanks so much for the quick turnaround on the bugfix and for the extensive communication throughout!

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