Skip to content

Failed type-assert in _precompilepkgs #60796

@topolarity

Description

@topolarity
Task failed TypeError(:typeassert, "", Tuple{String, Union{Nothing, String}}, false)
ERROR:
Stacktrace:
 [1] (::Base.Precompilation.var"#_precompilepkgs##27#_precompilepkgs##28"{Bool, Bool, IOContext{IO}, Bool, Base.RefValue{Union{Nothing, Base.PkgId}}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, String}, Set{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, IOBuffer}, Base.Precompilation.var"#handle_interrupt#_precompilepkgs##18"{IOContext{IO}, Base.RefValue{Task}, Base.RefValue{Bool}, String, Base.RefValue{Bool}, Base.Event, ReentrantLock, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Base.Event}}, Base.RefValue{Int64}, Base.RefValue{Int64}, Base.RefValue{Int64}, String, Base.RefValue{Bool}, Base.Event, ReentrantLock, Vector{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, String}, Vector{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}}, Base.RefValue{Union{Nothing, String}}, Vector{Base.PkgId}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Bool}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Base.Event}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Bool}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}}, Base.Precompilation.var"#describe_pkg#_precompilepkgs##1"{Dict{Base.PkgId, Base.PkgId}, Base.Precompilation.var"#color_string#_precompilepkgs##0"{Bool}, Int64}, Dict{Base.PkgId, Base.PkgId}, Dict{Base.PkgId, Vector{String}}, Dict{Tuple{Base.PkgId, UInt128, Base.PkgLoadSpec, String, Bool, Base.CacheFlags}, Bool}, Base.Precompilation.var"#color_string#_precompilepkgs##0"{Bool}, Bool, Nothing, IOContext{IO}, Bool, Base.Semaphore, Vector{Base.PkgId}, Bool, Base.PkgLoadSpec, Vector{String}, Vector{String}, Vector{Base.PkgId}, Base.PkgId, Cmd, Base.CacheFlags, Pair{Cmd, Base.CacheFlags}, Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}})()
   @ Base.Precompilation ./precompilation.jl:1145

sadly no more of the stacktrace prints, but it seems to be this line that fails:

cachefile, _ = ret::Tuple{String, Union{Nothing, String}}

seems to occur if you precompile a project from two processes in parallel and hit: Being precompiled by another process (pid: 449125, pidfile: ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:precompilationPrecompilation of modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions