Skip to content

Error when serializing RemoteChannel #22341

@iamed2

Description

@iamed2
julia> serialize(IOBuffer(), RemoteChannel())
ERROR: ArgumentError: elements of IntSet must be between 1 and typemax(Int)
Stacktrace:
 [1] _throw_intset_bounds_err() at ./intset.jl:64
 [2] push! at ./intset.jl:68 [inlined]
 [3] (::Base.Distributed.##133#134{Base.Distributed.RRID,Int64})() at ./distributed/remotecall.jl:249
 [4] lock(::Base.Distributed.##133#134{Base.Distributed.RRID,Int64}, ::Base.Threads.RecursiveTatasLock) at ./lock.jl:101
 [5] add_client at ./distributed/remotecall.jl:247 [inlined]
 [6] send_add_client(::RemoteChannel{Channel{Any}}, ::Int64) at ./distributed/remotecall.jl:262
 [7] serialize(::SerializationState{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::RemoteChannel{Channel{Any}}, ::Bool) at ./distributed/remotecall.jl:281
 [8] serialize(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::RemoteChannel{Channel{Any}}) at ./serialize.jl:629

(This does also occur when there is content in the RemoteChannel)

Metadata

Metadata

Assignees

No one assigned

    Labels

    parallelismParallel or distributed computation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions