Closed
Description
This snippets either segfaults or returns an unhandled UndefRefError
, but only in Julia 1.10 (starting at least with beta1) and only under linux and macos (though the latter only on intel macs). This issue is not observed in 1.9 or in apple-silicon macs. I didn't check Windows.
using LinearAlgebra, FunctionWrappers
function test()
function sfunc()
e = eigen([1.0 + 0im ;;])
return e
end
E = LinearAlgebra.Eigen{Complex{Float64}, Complex{Float64}, Matrix{Complex{Float64}}, Vector{Complex{Float64}}}
asolver = FunctionWrappers.FunctionWrapper{E,Tuple{}}(sfunc)
return asolver
end
s = test()
s()
using Symbolics
s()
Symbolics can be changed to Makie or some other largish package. I am not altogether sure this is a FunctionWrappers issue, since the LinearAlgebra.eigen call seems to be necessary.
Intriguingly, the unhandled memory is avoided if we call sfunc()
inside test
just after defining it.
Metadata
Metadata
Assignees
Labels
No labels