-
-
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
apparent compilation hang in 1.9.0+rc2 #49323
Comments
Here is a "more minimal" example. The script hangs, as above. it does not hang if I replace Thus, this bug may be related to Run the example with:
with I will try to make the example shorter. edit: tentatives to simplify the structure tend to make the test pass. I noted that for a relatively complex data structure the test passes but may take a long time (while being fast in other Julia versions than Maybe the code is not completely stalled, but just taking way too long. |
Doesn't happen on master, so let's see if I can bisect a fix. |
So back-port #48534? |
MWE S = Tuple{Type{Result{Vector{Float64}}}, Union{Nothing, Int64}, Union{Nothing, Float64}, Union{Nothing, Float64}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Bool}, Union{Nothing, ComplexMixtures.SolSummary}, Union{Nothing, ComplexMixtures.SolSummary}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, Vector{Float64}}, Union{Nothing, ComplexMixtures.Density}, Union{Nothing, ComplexMixtures.Volume}, Union{Nothing, Options}, Union{Nothing, Int64}, Union{Nothing, Int64}, Union{Nothing, Int64}, Union{Nothing, Vector{String}}, Union{Nothing, Vector{Float64}}}
T = Tuple{Type{Result{T1}}, Vararg{Any, 29}} where T1
S <: T Looks like the fake union split on |
Maybe related to: #49321
Apparently compilation is hanging when I'm trying to use the
JSON3
package in Julia1.9.0-rc2
.The minimal script to reproduce the bug is:
where the input file is: test.txt
I have installed
1.9.0-rc1
and1.9.0-rc2
usingjuliaup
, and I run:in
rc2
the execution hangs (it works in 1.6, 1.8.5 and 1.9.0-rc1).If I kill the execution I get the following stack trace: stacktrace.txt
The function in case is this one: https://github.com/m3g/ComplexMixtures.jl/blob/ea0d48880c08b6178034fa7c603ec03eefa186eb/src/results.jl#L679
but I don't think it has anything to do with the bug.
I suspect that the problem is compilation because if I add
@show
statements in that function, even in the first line, they don't get immediately printed.The text was updated successfully, but these errors were encountered: