Skip to content

Weak Bindings Violate Strict Provenance in MIRI #262

Description

@nvzqz

Because the Weak struct is defined as having LazyUsize for the address, it does not maintain pointer provenance and thus fails when run under MIRI with -Zmiri-strict-provenance.

The solution would be to define a LazyPtr type that utilizes AtomicPtr instead of AtomicUsize.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions