-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d14c91
commit 51dcc27
Showing
4 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,45 @@ | ||
error: unsupported operation: can't call foreign function: __libc_current_sigrtmax | ||
--> CARGO_REGISTRY/.../mod.rs:LL:CC | ||
warning: integer-to-pointer cast | ||
--> CARGO_REGISTRY/.../imp_std.rs:LL:CC | ||
| | ||
LL | unsafe { __libc_current_sigrtmax() } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function: __libc_current_sigrtmax | ||
LL | let mut waiter = (queue & !STATE_MASK) as *const Waiter; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ integer-to-pointer cast | ||
| | ||
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support | ||
= note: BACKTRACE: | ||
= help: This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`, | ||
= help: which means that Miri might miss pointer bugs in this program. | ||
= help: See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation. | ||
= help: To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead. | ||
= help: You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics. | ||
= help: Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning. | ||
= note: backtrace: | ||
note: inside `main` at $DIR/tokio_mvp.rs:LL:CC | ||
--> $DIR/tokio_mvp.rs:LL:CC | ||
| | ||
LL | #[tokio::main] | ||
| ^^^^^^^^^^^^^^ | ||
= note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: this warning originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace | ||
warning: integer-to-pointer cast | ||
--> CARGO_REGISTRY/.../word_lock.rs:LL:CC | ||
| | ||
LL | (self & QUEUE_MASK) as *const ThreadData | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ integer-to-pointer cast | ||
| | ||
note: inside `main` at $DIR/tokio_mvp.rs:LL:CC | ||
--> $DIR/tokio_mvp.rs:LL:CC | ||
| | ||
LL | #[tokio::main] | ||
| ^ | ||
= note: this warning originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: unsupported operation: cannot close epoll | ||
--> CARGO_REGISTRY/.../epoll.rs:LL:CC | ||
| | ||
LL | if let Err(err) = syscall!(close(self.ep)) { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ cannot close epoll | ||
| | ||
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support | ||
= note: backtrace: | ||
= note: this error originates in the macro `syscall` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to previous error | ||
error: aborting due to previous error; 2 warnings emitted | ||
|