capsule-capture-libs treats $ORIGIN literally in DT_RUNPATH dependency lookup
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- linux, shell
- Área
- operating-systems, tooling
Línea de trabajo
Comienza con el reproduce.sh del reproductor independiente y el punto de entrada instalado x86_64-linux-gnu-capsule-capture-libs. Ejecuta el reproductor e inspecciona el manejo de DT_RUNPATH indicado por la salida de depuración, especialmente la búsqueda del helper bajo $ORIGIN. Se considera terminado cuando el helper hermano se resuelve de forma relativa a la DSO de la capa y capsule-capture-libs finaliza correctamente sin las soluciones alternativas indicadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Your system information
- Steam Runtime Version: Steam Linux Runtime 3.0 (sniper)
3.0.20260608.242788;steam-runtime-tools/ pressure-vessel0.20260601.0 - Distribution (e.g. Ubuntu 18.04): Ubuntu 26.04 LTS
- Link to your full system information (Help -> Steam Runtime Diagnostics) in a Gist: https://gist.github.com/tracyliving/e82c7ab2fc0377924a1dad785c4bd333 (home directory redacted)
- Have you checked for system updates?: Steam verified its installation; host package updates were not checked because the standalone reproducer does not depend on the graphics stack
- What compatibility tool are you using?: Steam Linux Runtime 3.0 (sniper); the reproducer also invokes its
capsule-capture-libsdirectly - What versions are listed in
steamapps/common/SteamLinuxRuntime/VERSIONS.txt? Not installed - What versions are listed in
steamapps/common/SteamLinuxRuntime_soldier/VERSIONS.txt? Not installed - What versions are listed in
steamapps/common/SteamLinuxRuntime_sniper/VERSIONS.txt?depot 3.0.20260608.242788,pressure-vessel 0.20260601.0,sniper 3.0.20260608.242788 - What versions are listed in
steamapps/common/SteamLinuxRuntime_4/VERSIONS.txt?depot 4.0.20260608.242786,pressure-vessel 0.20260601.0,steamrt4 4.0.20260608.242786
Please describe your issue in as much detail as possible:
x86_64-linux-gnu-capsule-capture-libs recognizes a DSO's DT_RUNPATH=$ORIGIN, but appears to treat $ORIGIN as a literal directory name instead of expanding it relative to the DSO containing the RUNPATH.
A minimal layer DSO has:
NEEDED Shared library: [libcapsule-origin-helper.so.1]
RUNPATH Library runpath: [$ORIGIN]
The layer and helper are in the same directory. A normal dlopen(..., RTLD_NOW) succeeds and calls into the helper (result=42). The same layer fails dependency resolution in capsule-capture-libs.
Relevant debug output:
_dso_iterate_sections: .../libcapsule-origin-layer.so.1 DT_RUNPATHs "$ORIGIN"
search_ldpath: searching for libcapsule-origin-helper.so.1 in $ORIGIN (prefix: /)
search_ldpath: examining /$ORIGIN/libcapsule-origin-helper.so.1
error: code 2: Missing dependencies: Could not find
"libcapsule-origin-helper.so.1" in LD_LIBRARY_PATH (unset),
ld.so.cache, DT_RUNPATH or fallback ...
I expected $ORIGIN to resolve to the directory containing libcapsule-origin-layer.so.1, matching the dynamic loader. This affects importing host Vulkan layers that have private sibling dependencies.
Sanitized standalone reproducer and observed output:
https://gist.github.com/tracyliving/43714c213b92c677aee924697c97f345
Workarounds include adding the sibling directory to LD_LIBRARY_PATH, using an absolute RUNPATH, or removing the DT_NEEDED edge and loading the sibling explicitly. PRESSURE_VESSEL_IMPORT_VULKAN_LAYERS=0 bypasses this path but disables host Vulkan-layer import, so it is not equivalent behavior.
I found issue #478 while searching, but that concerns non-standard Guix library locations rather than $ORIGIN expansion.
Steps for reproducing this issue:
-
Clone the reproducer:
git clone https://gist.github.com/43714c213b92c677aee924697c97f345.git capsule-origin-repro cd capsule-origin-repro -
Pass the installed Sniper tool to the script:
sh reproduce.sh \ "$HOME/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/libexec/steam-runtime-tools-0/x86_64-linux-gnu-capsule-capture-libs" -
Observe that the native loader prints
result=42, thencapsule-capture-libsexits nonzero after examining/$ORIGIN/libcapsule-origin-helper.so.1.
- Lenguaje dominante
- Shell
- Estrellas
- 1.5k
- Forks
- 98
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ValveSoftware/steam-runtime
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
ValveSoftware/steam-runtime#876 ·
-
Runtime 4 on AArch64: diagnostic for loaded libraries in the first bubblewrap prerequisite childAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
ValveSoftware/steam-runtime#875 ·
-
Pressure Vessel
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ValveSoftware/steam-runtime#873 · 4 comentarios ·
-
A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPUAbierto
Dificultad 4/5 1-2 días Aptitud para principiantes 42/100
ValveSoftware/steam-runtime#872 · 25 comentarios ·
-
Nov 12th Steam Update Breaks Compatibility with any game that uses a dedicated GPU on Linux.Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
ValveSoftware/steam-runtime#871 · 13 comentarios ·
Todos los issues de ValveSoftware/steam-runtime
Issues similares
-
kind/bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
kubeflow/sdk#998 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
linuxserver/docker-healthchecks#137 · 1 comentario ·
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
good first issue type/ci
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
c-w-z/commit-decision-record#20 ·
Los mantenedores suelen responder en 1 día
-
bug compatibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
omacom/omarchy#20525 · 1 comentario ·
Los mantenedores suelen responder en 1 día