-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Julia 1.11.1 Bug: splatting collect(kwargs)
into an array can crash julia if kwargs are empty
#56628
Comments
collect(kwargs)
into an array can crash julia if kwargs are emptycollect(kwargs)
into an array can crash julia if kwargs are empty
I'm able to reproduce the crash using the above MWE on Julia 1.11.1. Both |
Some background: |
I am also able to reproduce the crashes (both |
Huh. Why did GitHub say I removed those labels? |
Wow, you were fast! - It took me much more time to find out the culprit... |
I can also confirm that the crash does not occur on Julia 1.10.6: julia> f3()
1-element Vector{Any}:
1
julia> f4()
2-element Vector{Any}:
1:10
1 If someone can do a |
I'd also be interested in seeing if an assert build of Julia produces any useful messages. |
|
PR JuliaLang#51317 was a bit over-eager about inferring inferring unreachable code methods. Filter out the Vararg case, since that can be handled by simply removing it instead of discarding the whole call. Fixes JuliaLang#56628 (cherry picked from commit eb9f24c)
PR JuliaLang#51317 was a bit over-eager about inferring inferring unreachable code methods. Filter out the Vararg case, since that can be handled by simply removing it instead of discarding the whole call. Fixes JuliaLang#56628 (cherry picked from commit eb9f24c)
* inference: avoid inferring unreachable code methods (JuliaLang#51317) (cherry picked from commit 0a82b71) * inference: ensure inferring reachable code methods (JuliaLang#57088) PR JuliaLang#51317 was a bit over-eager about inferring inferring unreachable code methods. Filter out the Vararg case, since that can be handled by simply removing it instead of discarding the whole call. Fixes JuliaLang#56628 (cherry picked from commit eb9f24c) --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com>
* inference: avoid inferring unreachable code methods (JuliaLang#51317) (cherry picked from commit 0a82b71) * inference: ensure inferring reachable code methods (JuliaLang#57088) PR JuliaLang#51317 was a bit over-eager about inferring inferring unreachable code methods. Filter out the Vararg case, since that can be handled by simply removing it instead of discarding the whole call. Fixes JuliaLang#56628 (cherry picked from commit eb9f24c) --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com>
According to my tests splatting
collect(kwargs)
into an array crashes julia if kwargs are empty and two or more types are part of the arrayHere's my MNWE after some hours of drill-down.
with the following message
EDIT: Tested on windows and mac-os and julia v1.11.1, does not occur in julia v1.10
The text was updated successfully, but these errors were encountered: