Skip to content

[3.14] gh-160388: Load the copied library in the deleted-mapping test (GH-160396) - #160516

Merged
itamaro merged 1 commit into
python:3.14from
miss-islington:backport-3a440b6-3.14
Oct 23, 2026
Merged

itamaro merged 1 commit into
python:3.14from
miss-islington:backport-3a440b6-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit 3a440b6)

Co-authored-by: Zanie Blue contact@zanie.dev

…ythonGH-160396)

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.
(cherry picked from commit 3a440b6)

Co-authored-by: Zanie Blue <contact@zanie.dev>
@itamaro
itamaro enabled auto-merge (squash) October 23, 2026 23:01
@itamaro
itamaro merged commit 53002b9 into python:3.14 Oct 23, 2026
94 of 96 checks passed
@miss-islington
miss-islington deleted the backport-3a440b6-3.14 branch October 23, 2026 23:15
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.

3 participants