-
Notifications
You must be signed in to change notification settings - Fork 632
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 UB warning about compat feature #2514
Comments
This might be an instance of rust-lang/unsafe-code-guidelines#148? Unfortunately I don't have the time to dig further into this right now. |
Would be good to try this again once rust-lang/miri#1952 lands and it shipped; that PR adds a (temporary) work-around for rust-lang/unsafe-code-guidelines#148, at least for self-referential generators. |
I retried it at nightly (rustc 1.60.0-nightly 89b9f7b28 2022-01-10) and it now throws the error in another place.
|
I guess the SB violation is due to futures 0.1's futures-rs/src/task_impl/mod.rs Lines 551 to 561 in 47b876f
futures-rs/src/task_impl/mod.rs Lines 584 to 607 in 47b876f
futures-rs/src/task_impl/std/mod.rs Lines 642 to 657 in 47b876f
|
I tried to use miri to check a piece of code, and accidentally found that the
compat
feature had some UB warnings.https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8ef0b573eab227a3fb307ca73df351bb
by default, miri will report an error saying that
0x1
is not a valid function pointer. I try to fix it,but another error will occur
If
-Zmiri-track-raw-pointers
is enabled,I am not sure what this means, maybe @RalfJung can help.
The text was updated successfully, but these errors were encountered: