-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Backtraces: much better, but still want more #17817
Comments
What happens with inlining and |
No better. |
Inlining can't preserve line numbers on the return value without a more linear IR |
As long as this isn't a regression w.r.t. 0.4 or 0.5 1-2 months ago then this is acceptable for the time being. |
I tried to build a version from a month or so ago, but ran into very persistent libssh2 problems, even with a |
|
the top level |
Thanks, @tkelman. I randomly picked dad6836 from about a month ago, and it's no better: julia> using OffsetArrays
julia> v = OffsetArray(rand(3), -1:1);
julia> v'
ERROR: size not supported for arrays with indices (-1:1,); see http://docs.julialang.org/en/latest/devdocs/offset-arrays/
in errmsg(::OffsetArrays.OffsetArray{Float64,1,Array{Float64,1}}) at /home/tim/.julia/v0.5/OffsetArrays/src/OffsetArrays.jl:40
in transpose at ./arraymath.jl:0 [inlined]
in ctranspose(::OffsetArrays.OffsetArray{Float64,1,Array{Float64,1}}) at ./arraymath.jl:323
in eval(::Module, ::Any) at ./boot.jl:234
in macro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46 It seems that comprehensions pose some problems for backtraces: julia> [x for x in v]
ERROR: size not supported for arrays with indices (-1:1,); see http://docs.julialang.org/en/latest/devdocs/offset-arrays/
in errmsg(::OffsetArrays.OffsetArray{Float64,1,Array{Float64,1}}) at /home/tim/.julia/v0.5/OffsetArrays/src/OffsetArrays.jl:40
in length(::OffsetArrays.OffsetArray{Float64,1,Array{Float64,1}}) at ./abstractarray.jl:71
in anonymous at ./<missing>:?
in eval(::Module, ::Any) at ./boot.jl:234
in macro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46 For the future this might be worth looking into. (All of these errors are fixed on #17816, so when that merges it will be harder to debug this.) |
I think backtraces have been improved and rewritten enough for the current issue to be stale (the examples doesn't repro either). Can always open a new issue with more backtrace gripes. |
I'm testing this on branch
yyc/codegen/deopt-tls
from #17800, so thatjulia --inline=no
doesn't segfault, but master gives the same bad version of the backtrace when inlining is on. Discovered this while working on #17816.Now compare what happens when we turn inlining off:
which is vastly more useful.
I have the impression that we were in better shape a few weeks ago, but I haven't tested.
The text was updated successfully, but these errors were encountered: