defining non-existent function in another module via GlobalRef segfaults code loading #40698
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:precompilation
Precompilation of modules
MWE is two packages
Foo
andBar
, withBar
depending onFoo
.in
src/Foo.jl
:in
src/Bar.jl
:Precompiling and then loading
Bar
results in a segfault:This is fixed by defining
function bar end
in the moduleFoo
. Is there any way to at least make this not segfault? In general, defining non-existent functions in other modules viaGlobalRef
seems to work just fine, it's only serialization that's not happy:The text was updated successfully, but these errors were encountered: