Skip to content

Load the copied library in the deleted-mapping test - #55

Closed
zaniebot wants to merge 1 commit into
mainfrom
zb/relocatable-flag-ii-deleted-libpython
Closed

zaniebot wants to merge 1 commit into
mainfrom
zb/relocatable-flag-ii-deleted-libpython

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Upstream: python#160389.

@zaniebot zaniebot changed the title gh-119696: Load the copied library in the deleted-mapping test Load the copied library in the deleted-mapping test Oct 22, 2026
@zaniebot
zaniebot changed the base branch from zb/relocatable-flag-ii to main October 22, 2026 22:52
@zaniebot
zaniebot force-pushed the zb/relocatable-flag-ii-deleted-libpython branch from f08b125 to f919462 Compare October 22, 2026 22:52
@zanieb
zanieb added this pull request to stack #57 October 22, 2026 22:53
@zaniebot

This comment was marked as resolved.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant