https://github.com/JuliaLang/julia
Revision 680bbcedd5a5bbb50805d4932ced7992e31d9be2 authored by Elliot Saba on 21 October 2021, 16:37:12 UTC, committed by KristofferC on 11 November 2021, 11:19:17 UTC
* Disable `DL_LOAD_PATH` prepending for `@`-paths on Darwin

Many thanks to Randy Rucker from Apple for pointing out that we were
technically relying on undefined behavior in `dyld` for loading things
via `jl_dlopen("@loader_path/@rpath/libfoo.dylib")`, due to the
composition of `dlopen("@rpath/libfoo.dylib")` in our Julia code, and
the `DL_LOAD_PATH` prepending we do in `jl_load_dynamic_library()`.

This PR uses a slightly modified version of a patch emailed to me by
Randy, and should solve
https://github.com/JuliaLang/Downloads.jl/issues/149 on macOS Monterey
where the undefined behavior in `dyld` has changed.

* Apply suggestions from code review

Co-authored-by: Jameson Nash <vtjnash@gmail.com>

* Use `[]` instead of `*`

Co-authored-by: Jameson Nash <vtjnash@gmail.com>
(cherry picked from commit 76c243141a611da572bda3332f836b898998225f)
1 parent 9b1ff81
History
Tip revision: 680bbcedd5a5bbb50805d4932ced7992e31d9be2 authored by Elliot Saba on 21 October 2021, 16:37:12 UTC
Disable `DL_LOAD_PATH` prepending for `@`-paths on Darwin (#42721)
Tip revision: 680bbce
File Mode Size
.buildkite
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.clang-format -rw-r--r-- 3.3 KB
.codecov.yml -rw-r--r-- 52 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 425 bytes
.mailmap -rw-r--r-- 11.0 KB
CITATION.bib -rw-r--r-- 2.6 KB
CONTRIBUTING.md -rw-r--r-- 19.9 KB
HISTORY.md -rw-r--r-- 292.0 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 50.3 KB
Makefile -rw-r--r-- 25.3 KB
NEWS.md -rw-r--r-- 21.6 KB
README.md -rw-r--r-- 7.5 KB
THIRDPARTY.md -rw-r--r-- 3.7 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 3.9 KB

README.md

back to top