How to debug a crash?

Meet a crash like this when running certain part of my codes.

Unreachable reached at 0x11a03de66

signal (4): Illegal instruction: 4
in expression starting at no file:0
top-level scope at ./REPL[17]:2 [inlined]
top-level scope at ./none:0
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:825
jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/builtins.c:633
eval at ./boot.jl:319
eval_user_input at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:85
macro expansion at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:117 [inlined]
#28 at ./task.jl:262
jl_apply at /Users/osx/buildbot/slave/package_osx64/build/src/./julia.h:1538 [inlined]
start_task at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:268
Allocations: 58071594 (Pool: 58060526; Big: 11068); GC: 287
Illegal instruction: 4

My question is, how to track down the causes of such crash?

The easiest way to (hopefully) fix this is to do a fresh (as of a few hours ago) source build of the release-1.0 branch of Julia; as advertised here that branch will likely become Julia 1.0.1, and your crash may have already been fixed there.

If that doesn’t fix it, then you really will need to debug it. There are some very helpful gdb tips in devdocs.

That one is beeing worked on by jeff. See github

All github, or a special place, like an issue/PR?


Sorry, I am on the phone and just wanted to inform that this is a known bug

1 Like