Closed ranjanan closed 4 years ago
It looks like uv_eventloop
is defined here, in reinit_stdio
:
https://github.com/JuliaLang/julia/blob/28e79562f484b8adca5581f9c11233b66c89a9a6/base/libuv.jl#L103
And reinit_stdio
is normally called from __init__
, here:
https://github.com/JuliaLang/julia/blob/2233ec47d67753d8c219633cdfa36b8e03ef2332/base/sysimg.jl#L486
Could this be related to the issues in #47? I tried adding that big Sys.__init__(); Base.early_init()
block, but that didn't fix anything..
I hit this recently. Workaround seems to be to make the global variable non-const and initialize in a function. Still somewhat annoying though.
The error I got was:
Here's a minimum reproducible script: