Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Isolated locate fails confusingly #201

@votroto

Description

@votroto

When locate is called with isolate=true the isolated dlopen can fail, while the nonisolated dlopen can succeed.

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?

dlopen(dl_path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions