Skip to content

"test_rc_cyclic_with_one_ref" fails in Miri #76509

Description

@RalfJung

In the latest test suite run in Miri, test_rc_cyclic_with_one_ref failed. This test was added in f03d0b3 as part of #75994. The cyclic Arc tests work fine, so either the tests are different or something about the Rc implementation is.

The error is "error: Undefined Behavior: not granting access to tag because incompatible item is protected: [Unique for <74172040> (call 24024731)]", which means that some memory is deallocated while a mutable reference to it exists that is kept alive because it was passed as an argument to some function that is still running.

Cc @mental32

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions