-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)regressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version
Description
The following fun repro crashes the compiler (tested on 1.0.2 and master):
for a = 1 end, b += 2 _ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.2 (2018-11-08)
_/ |\__'_|_|_|\__'_| |
|__/ |
julia> for a = 1 end, b += 2
Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Core.Compiler.NewNode, (0,)}[], i=(2,))
unknown function (ip: 0x7f8441291348)
unknown function (ip: 0x7f84412623e3)
jl_throw at /usr/bin/../lib/libjulia.so.1 (unknown line)
jl_bounds_error_ints at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f84387541d9)
unknown function (ip: 0x7f84387a3faf)
unknown function (ip: 0x7f84387ae95f)
unknown function (ip: 0x7f84387af898)
unknown function (ip: 0x7f84387b0ba1)
unknown function (ip: 0x7f84387b20e1)
unknown function (ip: 0x7f84387b2330)
jl_apply_generic at /usr/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_with_saved_exception_state at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f8441245c96)
unknown function (ip: 0x7f844127c4f9)
jl_toplevel_eval_in at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f84387ec161)
jl_apply_generic at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f843895d6ba)
unknown function (ip: 0x7f843895d92b)
jl_apply_generic at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f8441262d8d)
unknown function (ip: 0xffffffffffffffff)
Unreachable reached at 0x7f8423fad3c8
signal (4): Illegal instruction
in expression starting at no file:0
top-level scope at ./REPL[0]:2 [inlined]
top-level scope at ./none:0
jl_fptr_trampoline at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f844127c497)
jl_toplevel_eval_in at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f84387ec161)
jl_apply_generic at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f843895d6ba)
unknown function (ip: 0x7f843895d92b)
jl_apply_generic at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7f8441262d8d)
unknown function (ip: 0xffffffffffffffff)
Allocations: 96127 (Pool: 96058; Big: 69); GC: 0
zsh: illegal hardware instruction (core dumped) julia --depwarn=no --color=yes
FWIW, didn't crash on 0.6.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)regressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version