Skip to content

Stack traces can be interleaved when running multithreaded #51056

Open

Description

If exceptions occur in tasks running on 2 (or more) threads and we try to output backtraces concurrently, the output can have interleaved lines, making it difficult to figure out the actual stack for either exception.

Probably the best (only?) solution is to replace the use of jl_safe_printf() wherever it is used, and instead accumulate the entire backtrace into a buffer, then use a single jl_safe_printf to output the buffer.

Any other solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.multithreadingBase.Threads and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions