-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
The CBinding.jl code contains the following:
Lines 242 to 244 in 38e76e5
# WARNING: risky hack to trick Julia dlopen into ccalling the C dlopen with NULL (meaning to dlopen current process rather than a library) | |
struct _NullCString <: AbstractString end | |
Base.cconvert(::Type{Cstring}, ::_NullCString) = Cstring(C_NULL) |
Lines 293 to 294 in 38e76e5
lib = dlopen(_NullCString()) | |
lib == C_NULL && error("Failed to dlopen Julia process") |
This broke on 1.10, but PkgEval spotted it and it will soon be fixed, see JuliaLang/julia#49010 (comment) and JuliaLang/julia#49611
However, it should be noted that this operation does not actually return a handle to the process, but to libjulia-internal (JuliaLang/julia#49010 (comment)). Opening an issue to see if this is intended, and if so, maybe the comment should be updated.
Metadata
Metadata
Assignees
Labels
No labels