You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.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()
insidetest
just after defining it.Ref: pablosanjose/Quantica.jl#235
The text was updated successfully, but these errors were encountered: