Repository navigation
Dockerfile: use ldconfig for dynamic libraries - #5567
Merged
Merged
Conversation
cyphar
approved these changes
Oct 20, 2026
lifubang
approved these changes
Oct 23, 2026
The libseccomp and libpathrs libraries built by Dockerfile are installed into $DYLIB_DIR/lib, which is only made known to the dynamic linker via LD_LIBRARY_PATH. Yet runc init is executed with a clean environment, so it can not find libpathrs.so.0 and dies, resulting in unable to start container process: can't copy bootstrap data to pipe: write init-p: broken pipe As a result, "make integration" and some of "make unittest" fail. Use ldconfig instead of LD_LIBRARY_PATH. This went unnoticed because CI only builds the image, and never runs tests in it. Add a quick smoke test (run.bats) to the release job, which is the only one that builds the image. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
lifubang
force-pushed
the
dockerfile-ldconfig
branch
from
October 23, 2026 05:47
2299088 to
4cc0368
Compare
lifubang
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The libseccomp and libpathrs libraries built by
Dockerfileare installed into$DYLIB_DIR/lib, which is only made known to the dynamic linker viaLD_LIBRARY_PATH. Yetrunc initis executed with a clean environment, so itcan not find
libpathrs.so.0and dies, resulting inAs a result,
make integration(and some ofmake unittest) fail.Use
ldconfiginstead ofLD_LIBRARY_PATH.This went unnoticed because CI only builds the image, and never runs tests in
it. Add a quick smoke test (
run.bats, ~20s) to the release job, which is theonly one that builds the image.
Found while working on #5566.