Skip to content

Assertion failure on nightly: scopedvalue + try/catch/finally #56062

Closed
@simonbyrne

Description

@simonbyrne

On the current nightly (8d515ed), the following triggers an assertion failure on both Linux and MacOS

using Base.ScopedValues: @with

ts = Int[]
try
    @with begin
        return
    end
catch err
finally
    push!(ts, 2)
end

Metadata

Metadata

Labels

GCGarbage collectorbisect wantedbugIndicates an unexpected problem or unintended behaviorerror handlingHandling of exceptions by Julia or the user

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions