Repository navigation
Commit db7ec46
gh-160388: Load the copied library in the deleted-mapping test (GH-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>
1 parent b8a5478 commit db7ec46
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2367 | 2367 | | |
2368 | 2368 | | |
2369 | 2369 | | |
2370 | | - | |
2371 | | - | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2372 | 2373 | | |
2373 | 2374 | | |
2374 | 2375 | | |
2375 | 2376 | | |
2376 | 2377 | | |
2377 | | - | |
2378 | | - | |
2379 | | - | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
2380 | 2384 | | |
2381 | 2385 | | |
2382 | 2386 | | |
| |||
0 commit comments