Skip to content

Segfault on showerror in v1.0 - latest #36527

Closed
@fonsp

Description

@fonsp

I have tried to slim this down as much as possible, this is the best I could do:

runtests.jl

using Test

"something"
function jl_is_runnable(path)
    🏡 = Core.eval(Main, :(module asdf end))
    try
        Core.eval(🏡, :(include($path)))
    catch ex
        println.(enumerate(readlines(path; keep=true)))

        showerror(stderr, ex, stacktrace(catch_backtrace()))
    end
end

@test jl_is_runnable("./worse.jl")

worse.jl

@assert z == 10

The result is a segfault, on Linux, macOS and Windows, v1.0 until v1.5.

(Deleting any line from runtests.jl fixes the problem, hence the silly MWE.)

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions