Conversation
|
Edit: Opened #20 Running DetailsThe Miri logged an error error when impl ThreadInit {
/// Initialize the 'current thread' mechanism on this thread, returning the
/// Rust entry point.
pub fn init(self: Box<Self>) -> Box<dyn FnOnce() + Send> {
// ...
self.rust_start
} // <<<<<<< `self` is deallocated here
}This looks like a false positive. Miri somehow thinks All memory accesses performed during deallocation |
694fc1e to
fe9f384
Compare
> Round `ptr`'s address down to the previous `align` bytes boundary. > Round `ptr`'s address up to the next `align` bytes boundary.
…n,up}` `pointer::map_addr` preserves the provenance of the original pointer.
2de228a to
7404284
Compare
Integer-to-pointer casts are not supported in Strict Provenance and generates warnings when running in Miri.
Use `std::ptr::without_provenance_mut` instead of integer-to-pointer cast to avoid Miri warnings.
Work-around for false positive in Miri (#20)
7404284 to
7712f27
Compare
Fixes #12