Skip to content

strange CI error running gc code #53026

Closed
@vtjnash

Description

@vtjnash

This seems it clearly shouldn't happen, as the Matrix is thread-local and the size is not changed, so there is not much way the length of the Memory inside should be corrupted, but yet somehow, we see this failure:

gc                                                (1) |        started at 2024-01-21T00:19:42.883
ERROR: LoadError: TaskFailedException
    nested task error: BoundsError: attempt to access 1125×1125 Matrix{Cell} at index [1]
    Stacktrace:
     [1] throw_boundserror(A::Matrix{Cell}, I::Tuple{Int64})
       @ Base ./essentials.jl:14
     [2] setindex!
       @ ./array.jl:971 [inlined]
     [3] fillcells!(mc::Matrix{Cell})
       @ Main /cache/build/tester-amdci5-12/julialang/julia-master/julia-c5e9e7c283/share/julia/test/gc/objarray.jl:18
     [4] work
       @ /cache/build/tester-amdci5-12/julialang/julia-master/julia-c5e9e7c283/share/julia/test/gc/objarray.jl:25 [inlined]
     [5] macro expansion
       @ /cache/build/tester-amdci5-12/julialang/julia-master/julia-c5e9e7c283/share/julia/test/gc/objarray.jl:30 [inlined]
     [6] (::var"#7#threadsfor_fun#2"{var"#7#threadsfor_fun#1#3"{UnitRange{Int64}}})(tid::Int64; onethread::Bool)
       @ Main ./threadingconstructs.jl:214
     [7] #7#threadsfor_fun
       @ ./threadingconstructs.jl:181 [inlined]
     [8] (::Base.Threads.var"#1#2"{var"#7#threadsfor_fun#2"{var"#7#threadsfor_fun#1#3"{UnitRange{Int64}}}, Int64})()
       @ Base.Threads ./threadingconstructs.jl:153
Stacktrace:
 [1] threading_run(fun::var"#7#threadsfor_fun#2"{var"#7#threadsfor_fun#1#3"{UnitRange{Int64}}}, static::Bool)
   @ Base.Threads ./threadingconstructs.jl:171
 [2] macro expansion
   @ ./threadingconstructs.jl:219 [inlined]
 [3] run(maxsize::Int64)
   @ Main /cache/build/tester-amdci5-12/julialang/julia-master/julia-c5e9e7c283/share/julia/test/gc/objarray.jl:29
 [4] top-level scope
   @ /cache/build/tester-amdci5-12/julialang/julia-master/julia-c5e9e7c283/share/julia/test/gc/objarray.jl:35
in expression starting at /cache/build/tester-amdci5-12/julialang/julia-master/julia-c5e9e7c283/share/julia/test/gc/objarray.jl:35
gc                                                (1) |         failed at 2024-01-21T00:20:30.964

https://buildkite.com/julialang/julia-master/builds/32516#018d2921-a653-440d-aefb-55eb83d5595c

Metadata

Metadata

Assignees

Labels

ciContinuous integrationmultithreadingBase.Threads and related functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions