Closed
Description
On a private package [edit: repro in comment below], with Julia v1.12 (7 day old master, at 1b0fba7) i see the following:
Internal error: during type inference of
(::TaskGroups.var"#_maybe_spawn_worker##0#_maybe_spawn_worker##1"{TaskGroups.TaskGroup})()
Encountered unexpected error in runtime:
MethodError(f=Base.string, args=(Expr(:call, :<=, :id, Expr(:call, :length, Expr(:., :compact, :(:pending_nodes)))),), world=0x0000000000001961)
thread (4) jl_method_error_bare at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/gf.c:2507
thread (4) jl_method_error at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/gf.c:2525
thread (4) jl_f_throw_methoderror at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/builtins.c:587 [inlined]
thread (4) jl_f_throw_methoderror at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/builtins.c:583
thread (4) _assert_tostring at ./error.jl:249
thread (4) unknown function (ip: 0x7fffbce66dd2) at (unknown file)
thread (4) did_already_insert at ./../usr/share/julia/Compiler/src/ssair/passes.jl:373
thread (4) process_phinode_values at ./../usr/share/julia/Compiler/src/ssair/ir.jl:1281
thread (4) jfptr_process_phinode_values_98514.1 at /nix/store/72g8yzry2c5vfsa161p2j4xbigrwpgbm-julia-1.12.0-DEV/lib/julia/sys.so (unknown line)
thread (4) process_node! at ./../usr/share/julia/Compiler/src/ssair/ir.jl:1629
thread (4) iterate_compact at ./../usr/share/julia/Compiler/src/ssair/ir.jl:1937
thread (4) iterate at ./../usr/share/julia/Compiler/src/ssair/ir.jl:1859 [inlined]
thread (4) compact! at ./../usr/share/julia/Compiler/src/ssair/ir.jl:2136
thread (4) run_passes_ipo_safe at ./../usr/share/julia/Compiler/src/optimize.jl:1013
thread (4) run_passes_ipo_safe at ./../usr/share/julia/Compiler/src/optimize.jl:1027 [inlined]
thread (4) optimize at ./../usr/share/julia/Compiler/src/optimize.jl:1002
thread (4) jfptr_optimize_118359.1 at /nix/store/72g8yzry2c5vfsa161p2j4xbigrwpgbm-julia-1.12.0-DEV/lib/julia/sys.so (unknown line)
thread (4) finish_nocycle at ./../usr/share/julia/Compiler/src/typeinfer.jl:203
thread (4) jfptr_finish_nocycle_119415.1 at /nix/store/72g8yzry2c5vfsa161p2j4xbigrwpgbm-julia-1.12.0-DEV/lib/julia/sys.so (unknown line)
thread (4) typeinf at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:4275
thread (4) typeinf_ext at ./../usr/share/julia/Compiler/src/typeinfer.jl:1154
thread (4) typeinf_ext_toplevel at ./../usr/share/julia/Compiler/src/typeinfer.jl:1228
thread (4) jfptr_typeinf_ext_toplevel_119358.1 at /nix/store/72g8yzry2c5vfsa161p2j4xbigrwpgbm-julia-1.12.0-DEV/lib/julia/sys.so (unknown line)
thread (4) jl_apply at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/julia.h:2248 [inlined]
thread (4) jl_type_infer at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/gf.c:452
thread (4) jl_compile_method_internal at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/gf.c:2971
thread (4) _jl_invoke at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/gf.c:3465 [inlined]
thread (4) ijl_apply_generic at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/gf.c:3673
thread (4) jl_apply at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/julia.h:2248 [inlined]
thread (4) start_task at /build/julia-v1.12.0-DEV+RAI-d8e121836bcd203fd304b278e19b5a76db4b811f/src/task.c:1277
which points at
julia/Compiler/src/ssair/passes.jl
Line 373 in 1b0fba7
Metadata
Metadata
Assignees
Labels
No labels