Oh right. So I don’t quite understand what’s going on here, but it looks like a problem with symbol lookup where the JIT compiled Sys.__init__()
can’t find jl_cpu_threads
from libjulia. Presumably this could be related to the flags matlab uses when it dlopen
s your mex file. So to repro outside of matlab you could try a simple executable which dlopen
s a shared library using RTLD_LOCAL
and tries to call a function from it. In turn that function would try to call a function from libjulia? I’m not sure that makes sense though because I’m not sure how the linker handles symbol scope for chained library dependencies.
1 Like