-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE when reading bytes from an enum storing a pointer #1910
Comments
Ah, this is a bug I introduced when I reordered some code in Miri's Here's a reproducer not relying on Miri: #![feature(const_ptr_read)]
#![feature(const_ptr_offset)]
const C: () = unsafe {
let foo = Some(&42 as *const i32);
(&foo as *const _ as *const u8).add(12).read();
};
fn main() {
} |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 14, 2021
…li-obk fix ICE on Miri/CTFE copy of half a pointer Fixes rust-lang/miri#1910 r? `@oli-obk`
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Nov 15, 2021
…li-obk fix ICE on Miri/CTFE copy of half a pointer Fixes rust-lang/miri#1910 r? ``@oli-obk``
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Nov 15, 2021
…li-obk fix ICE on Miri/CTFE copy of half a pointer Fixes rust-lang/miri#1910 r? ```@oli-obk```
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 15, 2021
…li-obk fix ICE on Miri/CTFE copy of half a pointer Fixes rust-lang/miri#1910 r? ````@oli-obk````
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code
Running the following with
cargo miri run
crashes.Meta
rustc --version --verbose
:cargo miri --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: