JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.71k stars 5.49k forks source link

backtrace line number off by 2 #5450

Closed amitmurthy closed 10 years ago

amitmurthy commented 10 years ago
 _/ |\__'_|_|_|\__'_|  |  Commit aabd983 (0 days old master)
|__/                   |  x86_64-linux-gnu

julia> mmap_array(Int64, (10,10), fdio(5), 10)
ERROR: Illegal seek
 in error at error.jl:21
 in mmap_grow at mmap.jl:51
 in mmap_array at mmap.jl:120

mmap_array at mmap.jl:120 should be mmap_array at mmap.jl:118

JeffBezanson commented 10 years ago

Strange. So far I can't find anything unusual about that code that would cause this. Perhaps something llvm is doing to the debug metadata.

Keno commented 10 years ago

I'm pretty sure this was fixed as part of my backtrace work a while back.