Skip to content

gh-160388: Load the copied library in the deleted-mapping test - #160389

Closed
zaniebot wants to merge 1 commit into
python:mainfrom
zanieb:zb/deleted-libpython-test
Closed

zaniebot wants to merge 1 commit into
python:mainfrom
zanieb:zb/deleted-libpython-test

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 22, 2026 •

Copy link
Copy Markdown

The deleted-libpython mapping test uses LD_LIBRARY_PATH to load a temporary copy of the library. On glibc, an interpreter's DT_RPATH can take precedence and load a different copy, so the test fails because the temporary copy was not mapped. Preload the temporary library explicitly so the subprocess maps the file that the test removes. Create the copy beneath the working directory and preload it through a relative path, since LD_PRELOAD treats spaces and colons as separators.

Fixes #160388.

@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@bedevere-app

bedevere-app Bot commented Oct 22, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@zanieb

zanieb commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Bad robot... apologies

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

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_remote_exec_deleted_libpython can fail when DT_RPATH selects libpython

2 participants