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

Internal error during testing of VTKDataTypes.jl #49473

Closed
maleadt opened this issue Apr 24, 2023 · 3 comments
Closed

Internal error during testing of VTKDataTypes.jl #49473

maleadt opened this issue Apr 24, 2023 · 3 comments
Labels
regression Regression in behavior compared to a previous version
Milestone

Comments

@maleadt
Copy link
Member

maleadt commented Apr 24, 2023

From PkgEval, https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_date/2023-04/22/VTKDataTypes.primary.log:

Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Core.SSAValue, (69,)}[SSAValue(1), SSAValue(2), SSAValue(3), SSAValue(4), SSAValue(18446744073709551615), SSAValue(18446744073709551615), SSAValue(7), SSAValue(8), SSAValue(9), SSAValue(18446744073709551615), SSAValue(18446744073709551615), SSAValue(12), SSAValue(13), SSAValue(14), SSAValue(18446744073709551615), SSAValue(18446744073709551615), SSAValue(17), SSAValue(18), SSAValue(18446744073709551615), SSAValue(20), SSAValue(21), SSAValue(18446744073709551615), SSAValue(23), SSAValue(24), SSAValue(25), SSAValue(26), SSAValue(27), SSAValue(18446744073709551615), SSAValue(29), SSAValue(30), SSAValue(31), SSAValue(32), SSAValue(33), SSAValue(34), SSAValue(35), SSAValue(36), SSAValue(37), SSAValue(18446744073709551615), SSAValue(39), SSAValue(40), SSAValue(41), SSAValue(18446744073709551615), SSAValue(43), SSAValue(44), SSAValue(45), SSAValue(46), SSAValue(47), SSAValue(48), SSAValue(18446744073709551615), SSAValue(50), SSAValue(51), SSAValue(18446744073709551615), SSAValue(53), SSAValue(54), SSAValue(55), SSAValue(18446744073709551615), SSAValue(57), SSAValue(18446744073709551615), SSAValue(59), SSAValue(18446744073709551615), SSAValue(61), SSAValue(62), SSAValue(18446744073709551615), SSAValue(64), SSAValue(65), SSAValue(66), SSAValue(18446744073709551615), SSAValue(18446744073709551615), SSAValue(18446744073709551615)], i=(-2,))
ijl_bounds_error_ints at /cache/build/default-amdci5-3/julialang/julia-master/src/rtutils.c:194
getindex at ./essentials.jl:13 [inlined]
renumber_ssa at ./compiler/ssair/slot2ssa.jl:63
#410 at ./compiler/ssair/slot2ssa.jl:70 [inlined]
ssamap at ./compiler/utilities.jl:347
renumber_ssa! at ./compiler/ssair/slot2ssa.jl:70 [inlined]
renumber_ssa! at ./compiler/ssair/slot2ssa.jl:69 [inlined]
construct_ssa! at ./compiler/ssair/slot2ssa.jl:936
slot2reg at ./compiler/optimize.jl:645
run_passes at ./compiler/optimize.jl:507
run_passes at ./compiler/optimize.jl:522 [inlined]
optimize at ./compiler/optimize.jl:471 [inlined]
_typeinf at ./compiler/typeinfer.jl:270
typeinf at ./compiler/typeinfer.jl:216

rr trace: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/rr/VTKDataTypes-1682271975.tar.zst

Bisected to #49113 (cc @aviatesk @vtjnash).

Maybe there's a dependency I missed that need to be adjusted? Looking into reducing the issue now.

@maleadt maleadt added the regression Regression in behavior compared to a previous version label Apr 24, 2023
@maleadt maleadt added this to the 1.10 milestone Apr 24, 2023
@vtjnash
Copy link
Member

vtjnash commented Apr 24, 2023

I seem to recall seeing that https://github.com/BenLauwens/ResumableFunctions.jl corrupts the IR before passing it off to Julia's frontend.

@maleadt
Copy link
Member Author

maleadt commented Apr 24, 2023

Ah yes. Not sure about the corruption, but that's the dep that needs to be updated: https://github.com/BenLauwens/ResumableFunctions.jl/blob/d0d43947c83dfffb9464f1953181af1a2bedd2b1/src/macro.jl#L34

@maleadt maleadt closed this as completed Apr 24, 2023
@maleadt
Copy link
Member Author

maleadt commented Apr 24, 2023

FWIW, fix for this: JuliaDynamics/ResumableFunctions.jl#60 (thanks to @aviatesk)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

2 participants