Skip to content

--code-coverage corrupts memory when run with multiple threads #59355

@vtjnash

Description

@vtjnash

Now that threads are the default, I've noticed that our coverage.cpp file is not thread-safe, since coverage wasn't supposed to be run using threads (it gets miscounted if run with threads, but also corrupts memory). However, the default options for threads got changed in v1.12, so now our coverage runs with threads enabled, which causes memory corruption on those CI jobs that use the default options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code coveragemultithreadingBase.Threads and related functionalityobservabilitymetrics, timing, understandability, reflection, logging, ...

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions