You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letfor i =1:2try0//0catch; endendiffalse; a =0; end+a
end
or one-line let;for i=1:2;try 0//0 catch;end;end;if false;a=0;end;+a;end
This crashes with
Unreachable reached at 0x7f1cde7c33c3
signal (4): Illegal instruction
[...]
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4015d4)
Removing or changing almost anything makes the bug disappear, including:
removing the let block (a function still crashes)
changing i=1:2 to i=1:1
changing 0//0 to 0//1 or 0/0 (but 0/(0//1) still crashes)
removing the try-catch
changing false to true
not assigning a in the if
not doing something with a after the if
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-2000:03 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Phenom(tm) II X4 955 Processor
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, amdfam10)
I'm using the tarball downloaded from julialang.org.
The text was updated successfully, but these errors were encountered:
Thanks for the report, and for the nicely reduced example. I think this is fixed by #32830 which is already applied to the 1.3 backport branch (#33073), and marked for backport to 1.0.5 (#33075) if someone makes the manual backport.
I can confirm that the bug is fixed on the 1.2.1 backports branch (backports-release-1.2/03c9c72961), but still present on the 1.0.5 backports branch (backports-release-1.0/ec7c6f6187) at the moment.
or one-line
let;for i=1:2;try 0//0 catch;end;end;if false;a=0;end;+a;end
This crashes with
Removing or changing almost anything makes the bug disappear, including:
let
block (afunction
still crashes)i=1:2
toi=1:1
0//0
to0//1
or0/0
(but0/(0//1)
still crashes)try
-catch
false
totrue
a
in theif
a
after theif
I'm using the tarball downloaded from julialang.org.
The text was updated successfully, but these errors were encountered: