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

Debugging TimerOutputs.jl crashes #62

Closed
KristofferC opened this issue Jul 13, 2019 · 1 comment
Closed

Debugging TimerOutputs.jl crashes #62

KristofferC opened this issue Jul 13, 2019 · 1 comment

Comments

@KristofferC
Copy link
Contributor

Using master of MRH.

This might be the same as e.g. #61 so I'll just file this one as a last case so you have some things to check off:

julia> using MagneticReadHead, TimerOutputs

julia> function f()
           to = TimerOutput()
           @timeit to "sleeping" sleep(1)
           print_timer(to)
       end
f (generic function with 1 method)

julia> f()
 ───────────────────────────────────────────────────────────────────
                            Time                   Allocations      
                    ──────────────────────   ───────────────────────
  Tot / % measured:      1.71s / 58.7%           28.5MiB / 0.00%    

 Section    ncalls     time   %tot     avg     alloc   %tot      avg
 ───────────────────────────────────────────────────────────────────
 sleeping        1    1.00s   100%   1.00s      192B  100%      192B
 ───────────────────────────────────────────────────────────────────
 
julia> @run f()
Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Any, (43297,)}[SSAValue(1), SSAValue(2), SSAValue(3), SSAValue(4), ...
record_backtrace at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:217 [inlined]
jl_throw at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:417
jl_bounds_error_ints at /Users/osx/buildbot/slave/package_osx64/build/src/rtutils.c:183
getindex at ./array.jl:729 [inlined]
renumber_ssa at ./compiler/ssair/slot2ssa.jl:65 [inlined]
#241 at ./compiler/ssair/slot2ssa.jl:74 [inlined]
ssamap at ./compiler/ssair/ir.jl:429
renumber_ssa! at ./compiler/ssair/slot2ssa.jl:74 [inlined]
renumber_ssa! at ./compiler/ssair/slot2ssa.jl:73
construct_ssa! at ./compiler/ssair/slot2ssa.jl:859
just_construct_ssa at ./compiler/ssair/driver.jl:109
run_passes at ./compiler/ssair/driver.jl:114
optimize at ./compiler/optimize.jl:164
@oxinabox
Copy link
Owner

oxinabox commented Jul 13, 2019

Smaller MWE:

using MagneticReadHead, TimerOutputs
t = TimerOutput()
@run print_timer(t)

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

No branches or pull requests

2 participants