Skip to content

Make it easier to debug weak memory emulation induced bugs #2313

Open
@RalfJung

Description

@RalfJung

When our weak memory emulation finds a bug, it can be quite hard to figure out the details. Using -Zmiri-disable-weak-memory-emulation is useful to confirm that it is indeed a weak memory bug, but what then?

One thing we could do is offer a flag to print a diagnostic every time an outdated value is returned from a load. One of them must be the cause of the bug. @cbeuw has some draft of that at cbeuw@64d738c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticserrors and warnings emitted by miriA-weak-memoryArea: emulation of weak memory effects (store buffers)C-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions