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

inference bug in OC optimization causes julia to abort #54357

Open
vtjnash opened this issue May 4, 2024 · 0 comments
Open

inference bug in OC optimization causes julia to abort #54357

vtjnash opened this issue May 4, 2024 · 0 comments

Comments

@vtjnash
Copy link
Sponsor Member

vtjnash commented May 4, 2024

This should neither error, nor should the error cause julia to abort (due to buggy handling / lowering of sparams):

julia> f(g, ::Type{AT}) where {AT} = Base.Experimental.@opaque AT (args...) -> g((args::AT)...)
f (generic function with 1 method)

julia> @code_typed f(+, Tuple{Int,Int})(1, 2, 3)
Internal error: during type inference of
f(Function, Type{Tuple{Int64, Int64}})
Encountered unexpected error in runtime:
BoundsError(a=Array{Core.Compiler.VarState, 1}(dims=(0,), mem=Memory{Core.Compiler.VarState}(0, 0x7f42815330b0)[]), i=(1,))
throw_boundserror at ./essentials.jl:14
getindex at ./essentials.jl:893 [inlined]
stmt_effect_flags at ./compiler/optimize.jl:313
recompute_effects_flags at ./compiler/optimize.jl:382 [inlined]
add_inst_flag! at ./compiler/ssair/inlining.jl:1221 [inlined]
add_inst_flag! at ./compiler/ssair/inlining.jl:1218 [inlined]
process_simple! at ./compiler/ssair/inlining.jl:1248
assemble_inline_todo! at ./compiler/ssair/inlining.jl:1619
ssa_inlining_pass! at ./compiler/ssair/inlining.jl:80 [inlined]
run_passes_ipo_safe at ./compiler/optimize.jl:976
run_passes_ipo_safe at ./compiler/optimize.jl:991 [inlined]
optimize at ./compiler/optimize.jl:965

[3198871] signal 6 (-6): Aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant