-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Haven't seen anyone mention this yet so I thought I'd open an issue here. Running the current tests under miri reports Undefined Behavior in Gc<T>
's Drop impl:
test test_derive_bounds ... error: Undefined Behavior: dereferencing pointer failed: 0x1c56a8 is not a valid pointer
--> /home/timo/rust-gc/gc/src/lib.rs:134:18
|
134 | unsafe { &*clear_root_bit(self.ptr_root.get()).as_ptr() }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: 0x1c56a8 is not a valid pointer
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
= note: backtrace:
= note: inside `gc::Gc::<Thunk<NotTrace>>::inner` at /home/timo/rust-gc/gc/src/lib.rs:134:18
note: inside `<gc::Gc<Thunk<NotTrace>> as std::ops::Drop>::drop` at /home/timo/rust-gc/gc/src/lib.rs:279:17
--> /home/timo/rust-gc/gc/src/lib.rs:279:17
|
279 | self.inner().unroot_inner();
| ^^^^^^^^^^^^
Metadata
Metadata
Assignees
Labels
No labels