-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Hang in inference, during subtyping, on 1.10.9 #58115
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Have you tried it without |
I have confirmed it still hangs without it, thanks for the recommendation. |
I've edited the reproducer at the top of the issue to remove the annotation, since it reproduces without it, for both me and Tomas. Thanks all! |
Fix bisected to #50927. |
Next steps for Kristoffer:
|
The subtype query that seems to get stuck from the MWE on 1.10 is: a = Tuple{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{ Union{Tuple{}, Tuple{Tuple{}}}}}}}}}}}}} , Tuple{}}
b = Tuple{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{Tuple{Vararg{Union{Tuple{}, Tuple{Tuple{}}}}}}}}}}}}}}}, Tuple{}}
a <: b This specific query also hangs on nightly (although the MWE does no longer reproduce). @N5N3 or @vtjnash, any chance you could give some extra info on the possibility of fixing this? |
Looks like a ∀ union explosion caused by |
fix JuliaLang#58115 (cherry picked from commit 9e14600)
Fix the subtyping hang found in #58115 (comment)
Fix the subtyping hang found in #58115 (comment) (cherry picked from commit c9ad04d)
Fix the subtyping hang found in JuliaLang#58115 (comment)
The following code hangs:
reproducer
When interrupted, the stack trace points to subtyping:
The issue doesn't seem to reproduce on 1.11 and recent nightly (the code runs and throws an exception -- this is expected, it's a minified example).
Could you please have a look? Thanks!
The text was updated successfully, but these errors were encountered: