-
Notifications
You must be signed in to change notification settings - Fork 35
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
v1.12: JuliaInterpreter optimization seems to badly interact with new compressed linetable format #622
Comments
Is this still relevant? I get the same output in both cases. And it doesn't depend on the value of |
This comment was marked as outdated.
This comment was marked as outdated.
A better reproducer: julia> using JuliaInterpreter
julia> fnone1() = nothing;
julia> let m = only(methods(fnone1))
JuliaInterpreter.FrameCode(m, JuliaInterpreter.get_source(m); optimize=true).src.debuginfo
end
Core.DebugInfo(Symbol("REPL[2]"), nothing, svec(), "\x01\0\0\0\0\0\0\0\0\0\0\0\x01\x01\0")
julia> @interpret (() -> nothing)()
julia> fnone2() = nothing;
julia> let m = only(methods(fnone2))
JuliaInterpreter.FrameCode(m, JuliaInterpreter.get_source(m); optimize=true).src.debuginfo
end
Core.DebugInfo(Symbol("REPL[5]"), nothing, svec(), "") Note that if the |
It also doesn't seem to have anything to do with those particular optimizations since it still happens with julia> using JuliaInterpreter
julia> fnone1() = nothing;
julia> let m = only(methods(fnone1))
global fc = JuliaInterpreter.FrameCode(m, JuliaInterpreter.get_source(m); optimize=false)
fc.src.debuginfo
end
Core.DebugInfo(Symbol("REPL[2]"), nothing, svec(), "\x01\0\0\0\0\0\0\0\0\0\0\0\x01\x01\0")
julia> let fr = JuliaInterpreter.prepare_frame(fc, [], Core.svec())
JuliaInterpreter.finish_and_return!(fr)
end
julia> fnone2() = nothing;
julia> let m = only(methods(fnone2))
JuliaInterpreter.FrameCode(m, JuliaInterpreter.get_source(m); optimize=false).src.debuginfo
end
Core.DebugInfo(Symbol("REPL[5]"), nothing, svec(), "") |
Reported upstream as JuliaLang/julia#55688 with a non-JuliaInterpreter reproducer. Seems like we can close this issue here |
It looks like this "optimization" introduces a very bad interaction with the new lineinfo format:
JuliaInterpreter.jl/src/optimize.jl
Lines 76 to 92 in 28dd37c
Originally posted by @aviatesk in #606 (comment)
The text was updated successfully, but these errors were encountered: