Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to undefined reference Julia 1.9 #562

Closed
fredrikekre opened this issue Feb 3, 2023 · 1 comment · Fixed by #563
Closed

Access to undefined reference Julia 1.9 #562

fredrikekre opened this issue Feb 3, 2023 · 1 comment · Fixed by #563

Comments

@fredrikekre
Copy link
Contributor

I get a UndefRefError: access to undefined reference on this line:

sparams = Core.svec(frame.framedata.sparams...)
where I have

frame.framedata.sparams = Any[#undef, Int64, typeof(identity)]

I don't have a (small) reproducer.

@KristofferC
Copy link
Member

An MWE is:

julia> f(x::Union{Vector{T}, Nothing}) where {T} = x + 1
f (generic function with 1 method)

julia> @run f(nothing)
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] Base.StackTraces.StackFrame(frame::JuliaInterpreter.Frame)
   @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/8vzXf/src/utils.jl:740
 [2] show_backtrace(io::IOContext{IOBuffer}, frame::JuliaInterpreter.Frame)
   @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/8vzXf/src/utils.jl:761
 [3] showerror(io::IOContext{IOBuffer}, ex::MethodError, bt::JuliaInterpreter.Frame; backtrace::Bool)
   @ Base ./errorshow.jl:90
 [4] showerror
   @ ./errorshow.jl:86 [inlined]
 [5] display_error(io::IOContext{IOBuffer}, er::MethodError, frame::JuliaInterpreter.Frame)
   @ JuliaInterpreter ~/.julia/packages/JuliaInterpreter/8vzXf/src/utils.jl:781

Where the sparam is undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants