This repository was archived by the owner on Aug 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Isolated locate fails confusingly #201
Copy link
Copy link
Open
Description
When locate is called with isolate=true the isolated dlopen can fail, while the nonisolated dlopen can succeed.
BinaryProvider.jl/src/Products.jl
Line 169 in 81f03da
| if success(`$(Base.julia_cmd()) --startup-file=no -e "import Libdl; Libdl.dlopen(\"$(dl_esc_path)\")"`) |
When the isolated dlopen fails with
verbose=true, BinaryProvider says:
[ Info: /blah/lib/libscsindir.so matches our search criteria of libscsindir
[ Info: Could not locate libscsindir inside /blah/lib
Which is somewhat confusing as it DID locate the library, it just could not open it in indirect "mode". Furthermore, when verbose is set to true, and the indirect dlopen fails, the try block a few lines down opens the library successfully in the "unsafe" way (after which it returns nothing anyway). Is that not a problem?
BinaryProvider.jl/src/Products.jl
Line 182 in 81f03da
| dlopen(dl_path) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels