Skip to content

MIRI UB in rowan Arc::drop #192

@dnbln

Description

@dnbln
error: Undefined Behavior: write access through <3644568> at alloc1395441[0x0] is forbidden
   --> /Users/dinu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rowan-0.16.1/src/arc.rs:162:12
    |
162 |         if self.inner().count.fetch_sub(1, Release) != 1 {
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ write access through <3644568> at alloc1395441[0x0] is forbidden
    |
    = help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental
    = help: the accessed tag <3644568> has state Frozen which forbids this child write access
help: the accessed tag <3644568> was created here, in the initial state Frozen

Metadata

Metadata

Assignees

No one assigned

    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