Skip to content
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

Miri panics on unsound Pin code #1090

Closed
oli-obk opened this issue Nov 30, 2019 · 2 comments
Closed

Miri panics on unsound Pin code #1090

oli-obk opened this issue Nov 30, 2019 · 2 comments
Labels
A-interpreter Area: affects the core interpreter C-bug Category: This is a bug.

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Nov 30, 2019

Corresponding rust issue: rust-lang/rust#66544
Playground example from irlo: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=70b7b28b690e0020f52695b9e086f5c2

Panic message:

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: ImmTy { imm: ScalarPair(AllocId(546).0x8[<1474>], AllocId(547).0x0[<untagged>]), layout: TyLayout { ty: std::pin::Pin<&mut dyn Dubious>, details: LayoutDetails { variants: Single { index: 0 }, fields: Arbitrary { offsets: [Size { raw: 0 }], memory_index: [0] }, abi: ScalarPair(Scalar { value: Pointer, valid_range: 1..=18446744073709551615 }, Scalar { value: Pointer, valid_range: 1..=18446744073709551615 }), largest_niche: Some(Niche { offset: Size { raw: 0 }, scalar: Scalar { value: Pointer, valid_range: 1..=18446744073709551615 } }), align: AbiAndPrefAlign { abi: Align { pow2: 3 }, pref: Align { pow2: 3 } }, size: Size { raw: 16 } } } }', src/libcore/result.rs:1165:5

@RalfJung
Copy link
Member

RalfJung commented Dec 1, 2019

My guess is that this is a duplicate of #1038... could you capture a stacktrace to confirm?

@RalfJung RalfJung added A-interpreter Area: affects the core interpreter C-bug Category: This is a bug. labels Dec 1, 2019
@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 15, 2019

Yes, it's the same error

@oli-obk oli-obk closed this as completed Dec 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-interpreter Area: affects the core interpreter C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants