different strategy for normalizing Rust stdlib path
This commit is contained in:
parent
1c11fc64b1
commit
9a448744a2
@ -461,12 +461,7 @@ path = "lib.rs"
|
||||
command.env_remove("RUSTFLAGS");
|
||||
// Disable debug assertions in the standard library -- Miri is already slow enough.
|
||||
// But keep the overflow checks, they are cheap.
|
||||
// Also remap the current directory to something that is stable across different
|
||||
// machines. Otherwise ui output would contain the current directory.
|
||||
command.env(
|
||||
"RUSTFLAGS",
|
||||
"-Cdebug-assertions=off -Coverflow-checks=on -Zremap-cwd-prefix=rustc_src",
|
||||
);
|
||||
command.env("RUSTFLAGS", "-Cdebug-assertions=off -Coverflow-checks=on");
|
||||
// Finally run it!
|
||||
if command.status().expect("failed to run xargo").success().not() {
|
||||
show_error(format!("failed to run xargo"));
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: incorrect layout on deallocation: ALLOC has size 1 and alignment ALIGN, but gave size 1 and alignment ALIGN
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect layout on deallocation: ALLOC has size 1 and alignment ALIGN, but gave size 1 and alignment ALIGN
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::alloc::dealloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
note: inside `main` at $DIR/deallocate-bad-alignment.rs:LL:CC
|
||||
--> $DIR/deallocate-bad-alignment.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: incorrect layout on deallocation: ALLOC has size 1 and alignment ALIGN, but gave size 2 and alignment ALIGN
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect layout on deallocation: ALLOC has size 1 and alignment ALIGN, but gave size 2 and alignment ALIGN
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::alloc::dealloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
note: inside `main` at $DIR/deallocate-bad-size.rs:LL:CC
|
||||
--> $DIR/deallocate-bad-size.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer to ALLOC was dereferenced after this allocation got freed
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer to ALLOC was dereferenced after this allocation got freed
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::alloc::dealloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
note: inside `main` at $DIR/deallocate-twice.rs:LL:CC
|
||||
--> $DIR/deallocate-twice.rs:LL:CC
|
||||
|
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: deallocating ALLOC, which is Rust heap memory, using PLATFORM heap deallocation operation
|
||||
--> RUSTLIB/std/src/sys/PLATFORM/alloc.rs:LL:CC
|
||||
|
|
||||
LL | libc::free(ptr as *mut libc::c_void)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ deallocating ALLOC, which is Rust heap memory, using PLATFORM heap deallocation operation
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::sys::PLATFORM::alloc::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc` at rustc_src/src/sys/PLATFORM/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::alloc::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc` at RUSTLIB/std/src/sys/PLATFORM/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate` at RUSTLIB/std/src/alloc.rs:LL:CC
|
||||
note: inside `main` at $DIR/global_system_mixup.rs:LL:CC
|
||||
--> $DIR/global_system_mixup.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: incorrect layout on deallocation: ALLOC has size 1 and alignment ALIGN, but gave size 2 and alignment ALIGN
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect layout on deallocation: ALLOC has size 1 and alignment ALIGN, but gave size 2 and alignment ALIGN
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::alloc::realloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::alloc::realloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
note: inside `main` at $DIR/reallocate-bad-size.rs:LL:CC
|
||||
--> $DIR/reallocate-bad-size.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer to ALLOC was dereferenced after this allocation got freed
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer to ALLOC was dereferenced after this allocation got freed
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::alloc::realloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::alloc::realloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
note: inside `main` at $DIR/reallocate-dangling.rs:LL:CC
|
||||
--> $DIR/reallocate-dangling.rs:LL:CC
|
||||
|
|
||||
|
@ -1,13 +1,17 @@
|
||||
error: Undefined Behavior: deallocating ALLOC, which is stack variable memory, using Rust heap deallocation operation
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ deallocating ALLOC, which is stack variable memory, using Rust heap deallocation operation
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::alloc::dealloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `alloc::alloc::box_free::<i32, std::alloc::Global>` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<i32>> - shim(Some(std::boxed::Box<i32>))` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::mem::drop::<std::boxed::Box<i32>>` at rustc_src/src/mem/mod.rs:LL:CC
|
||||
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `alloc::alloc::box_free::<i32, std::alloc::Global>` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<i32>> - shim(Some(std::boxed::Box<i32>))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::mem::drop::<std::boxed::Box<i32>>` at RUSTLIB/core/src/mem/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/stack_free.rs:LL:CC
|
||||
--> $DIR/stack_free.rs:LL:CC
|
||||
|
|
||||
|
@ -9,7 +9,7 @@ LL | panic!()
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `thread_start` at rustc_src/src/panic.rs:LL:CC
|
||||
= note: inside `thread_start` at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
= note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error; 1 warning emitted
|
||||
|
@ -9,7 +9,7 @@ LL | panic!()
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `thread_start` at rustc_src/src/panic.rs:LL:CC
|
||||
= note: inside `thread_start` at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
= note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error; 1 warning emitted
|
||||
|
@ -7,7 +7,7 @@ LL | let x = unsafe { ptr::addr_of!(*p) };
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `main` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `main` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: this error originates in the macro `ptr::addr_of` (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
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: memory access failed: null pointer is not a valid pointer
|
||||
--> RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
|
|
||||
LL | copy_nonoverlapping(&src as *const T, dst, 1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: null pointer is not a valid pointer
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::write::<[u8; 0]>` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut [u8; 0]>::write` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::write::<[u8; 0]>` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut [u8; 0]>::write` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/null_pointer_write_zst.rs:LL:CC
|
||||
--> $DIR/null_pointer_write_zst.rs:LL:CC
|
||||
|
|
||||
|
@ -1,15 +1,19 @@
|
||||
error: unsupported operation: `open` not available when isolation is enabled
|
||||
--> RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
|
|
||||
LL | let fd = cvt_r(|| unsafe { open64(path.as_ptr(), flags, opts.mode as c_int) })?;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `open` not available when isolation is enabled
|
||||
|
|
||||
= help: pass the flag `-Zmiri-disable-isolation` to disable isolation;
|
||||
= help: or pass `-Zmiri-isolation-error=warn` to configure Miri to return an error code from isolated operations (if supported for that operation) and continue with a warning
|
||||
|
||||
= note: inside closure at rustc_src/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::cvt_r::<i32, [closure@std::sys::PLATFORM::fs::File::open_c::{closure#0}]>` at rustc_src/src/sys/PLATFORM/mod.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::fs::File::open_c` at rustc_src/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::fs::File::open` at rustc_src/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
= note: inside `std::fs::OpenOptions::_open` at rustc_src/src/fs.rs:LL:CC
|
||||
= note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at rustc_src/src/fs.rs:LL:CC
|
||||
= note: inside `std::fs::File::open::<&str>` at rustc_src/src/fs.rs:LL:CC
|
||||
= note: inside closure at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::cvt_r::<i32, [closure@std::sys::PLATFORM::fs::File::open_c::{closure#0}]>` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::fs::File::open_c` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
= note: inside `std::sys::PLATFORM::fs::File::open` at RUSTLIB/std/src/sys/PLATFORM/fs.rs:LL:CC
|
||||
= note: inside `std::fs::OpenOptions::_open` at RUSTLIB/std/src/fs.rs:LL:CC
|
||||
= note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at RUSTLIB/std/src/fs.rs:LL:CC
|
||||
= note: inside `std::fs::File::open::<&str>` at RUSTLIB/std/src/fs.rs:LL:CC
|
||||
note: inside `main` at $DIR/isolated_file.rs:LL:CC
|
||||
--> $DIR/isolated_file.rs:LL:CC
|
||||
|
|
||||
|
@ -13,7 +13,7 @@ note: inside `<GeneratorIteratorAdapter<[static generator@$DIR/generator-pinned-
|
||||
|
|
||||
LL | match me.resume(()) {
|
||||
| ^^^^^^^^^^^^^
|
||||
= note: inside `<std::boxed::Box<GeneratorIteratorAdapter<[static generator@$DIR/generator-pinned-moved.rs:LL:CC]>> as std::iter::Iterator>::next` at rustc_src/src/boxed.rs:LL:CC
|
||||
= note: inside `<std::boxed::Box<GeneratorIteratorAdapter<[static generator@$DIR/generator-pinned-moved.rs:LL:CC]>> as std::iter::Iterator>::next` at RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
note: inside `main` at $DIR/generator-pinned-moved.rs:LL:CC
|
||||
--> $DIR/generator-pinned-moved.rs:LL:CC
|
||||
|
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: overflow computing total size of `copy`
|
||||
--> RUSTLIB/core/src/intrinsics.rs:LL:CC
|
||||
|
|
||||
LL | copy(src, dst, count)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ overflow computing total size of `copy`
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::intrinsics::copy::<i32>` at rustc_src/src/intrinsics.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut i32>::copy_from` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::intrinsics::copy::<i32>` at RUSTLIB/core/src/intrinsics.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut i32>::copy_from` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/copy_overflow.rs:LL:CC
|
||||
--> $DIR/copy_overflow.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: ALLOC has size 4, so pointer to 5 bytes starting at offset 0 is out-of-bounds
|
||||
--> RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: ALLOC has size 4, so pointer to 5 bytes starting at offset 0 is out-of-bounds
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at rustc_src/src/ptr/const_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/out_of_bounds_ptr_1.rs:LL:CC
|
||||
--> $DIR/out_of_bounds_ptr_1.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: overflowing in-bounds pointer arithmetic
|
||||
--> RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing in-bounds pointer arithmetic
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at rustc_src/src/ptr/const_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/out_of_bounds_ptr_2.rs:LL:CC
|
||||
--> $DIR/out_of_bounds_ptr_2.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: ALLOC has size 4, so pointer to 1 byte starting at offset -1 is out-of-bounds
|
||||
--> RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: ALLOC has size 4, so pointer to 1 byte starting at offset -1 is out-of-bounds
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at rustc_src/src/ptr/const_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/out_of_bounds_ptr_3.rs:LL:CC
|
||||
--> $DIR/out_of_bounds_ptr_3.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: null pointer is not a valid pointer
|
||||
--> RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) as *mut T }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: null pointer is not a valid pointer
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut i32>::offset` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut i32>::offset` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/ptr_offset_0_plus_0.rs:LL:CC
|
||||
--> $DIR/ptr_offset_0_plus_0.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: 0x1 is not a valid pointer
|
||||
--> RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) as *mut T }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: 0x1 is not a valid pointer
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut u8>::offset` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut u8>::offset` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/ptr_offset_int_plus_int.rs:LL:CC
|
||||
--> $DIR/ptr_offset_int_plus_int.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: 0x1 is not a valid pointer
|
||||
--> RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) as *mut T }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: 0x1 is not a valid pointer
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut u8>::offset` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut u8>::offset` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/ptr_offset_int_plus_ptr.rs:LL:CC
|
||||
--> $DIR/ptr_offset_int_plus_ptr.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: overflowing in-bounds pointer arithmetic
|
||||
--> RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflowing in-bounds pointer arithmetic
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at rustc_src/src/ptr/const_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::const_ptr::<impl *const i8>::offset` at RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/ptr_offset_overflow.rs:LL:CC
|
||||
--> $DIR/ptr_offset_overflow.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: ALLOC has size 4, so pointer at offset 32 is out-of-bounds
|
||||
--> RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) as *mut T }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: ALLOC has size 4, so pointer at offset 32 is out-of-bounds
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut u32>::offset` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut u32>::offset` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/ptr_offset_ptr_plus_0.rs:LL:CC
|
||||
--> $DIR/ptr_offset_ptr_plus_0.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: `float_to_int_unchecked` intrinsic called on 3.40282347E+38 which cannot be represented in target type `i32`
|
||||
--> RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/round.rs:LL:CC
|
||||
|
|
||||
LL | implement! { f32 }
|
||||
| ^^^^^^^^^^^^^^^^^^ `float_to_int_unchecked` intrinsic called on 3.40282347E+38 which cannot be represented in target type `i32`
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `core::core_simd::round::<impl std::simd::Simd<f32, 2_usize>>::to_int_unchecked::<i32>` at rustc_src/src/../../portable-simd/crates/core_simd/src/round.rs:LL:CC
|
||||
= note: inside `core::core_simd::round::<impl std::simd::Simd<f32, 2_usize>>::to_int_unchecked::<i32>` at RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/round.rs:LL:CC
|
||||
note: inside `main` at $DIR/simd-float-to-int.rs:LL:CC
|
||||
--> $DIR/simd-float-to-int.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: dereferencing pointer failed: ALLOC has size 9, so pointer to 1 byte starting at offset 9 is out-of-bounds
|
||||
--> RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::simd_gather(or, ptrs, enable.to_int()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: ALLOC has size 9, so pointer to 1 byte starting at offset 9 is out-of-bounds
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::simd::Simd::<i8, 4_usize>::gather_select_unchecked` at rustc_src/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
|
||||
= note: inside `std::simd::Simd::<i8, 4_usize>::gather_select_unchecked` at RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
|
||||
note: inside `main` at $DIR/simd-gather.rs:LL:CC
|
||||
--> $DIR/simd-gather.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: dereferencing pointer failed: ALLOC has size 9, so pointer to 1 byte starting at offset 9 is out-of-bounds
|
||||
--> RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
|
||||
|
|
||||
LL | intrinsics::simd_scatter(self, ptrs, enable.to_int())
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: ALLOC has size 9, so pointer to 1 byte starting at offset 9 is out-of-bounds
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::simd::Simd::<i8, 4_usize>::scatter_select_unchecked` at rustc_src/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
|
||||
= note: inside `std::simd::Simd::<i8, 4_usize>::scatter_select_unchecked` at RUSTLIB/core/src/../../portable-simd/crates/core_simd/src/vector.rs:LL:CC
|
||||
note: inside `main` at $DIR/simd-scatter.rs:LL:CC
|
||||
--> $DIR/simd-scatter.rs:LL:CC
|
||||
|
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: overflow computing total size of `write_bytes`
|
||||
--> RUSTLIB/core/src/intrinsics.rs:LL:CC
|
||||
|
|
||||
LL | write_bytes(dst, val, count)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ overflow computing total size of `write_bytes`
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::intrinsics::write_bytes::<i32>` at rustc_src/src/intrinsics.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut i32>::write_bytes` at rustc_src/src/ptr/mut_ptr.rs:LL:CC
|
||||
= note: inside `std::intrinsics::write_bytes::<i32>` at RUSTLIB/core/src/intrinsics.rs:LL:CC
|
||||
= note: inside `std::ptr::mut_ptr::<impl *mut i32>::write_bytes` at RUSTLIB/core/src/ptr/mut_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/write_bytes_overflow.rs:LL:CC
|
||||
--> $DIR/write_bytes_overflow.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: enum value has invalid tag: $HEX
|
||||
--> RUSTLIB/core/src/mem/mod.rs:LL:CC
|
||||
|
|
||||
LL | Discriminant(intrinsics::discriminant_value(v))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ enum value has invalid tag: $HEX
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::mem::discriminant::<Foo>` at rustc_src/src/mem/mod.rs:LL:CC
|
||||
= note: inside `std::mem::discriminant::<Foo>` at RUSTLIB/core/src/mem/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/invalid_enum_tag.rs:LL:CC
|
||||
--> $DIR/invalid_enum_tag.rs:LL:CC
|
||||
|
|
||||
|
@ -10,9 +10,9 @@ LL | std::panic::catch_unwind(|| unwind()).unwrap_err();
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside closure at $DIR/bad_unwind.rs:LL:CC
|
||||
= note: inside `std::panicking::r#try::do_call::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::r#try::<(), [closure@$DIR/bad_unwind.rs:LL:CC]>` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panic::catch_unwind::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at rustc_src/src/panic.rs:LL:CC
|
||||
= note: inside `std::panicking::r#try::do_call::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::r#try::<(), [closure@$DIR/bad_unwind.rs:LL:CC]>` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panic::catch_unwind::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
note: inside `main` at $DIR/bad_unwind.rs:LL:CC
|
||||
--> $DIR/bad_unwind.rs:LL:CC
|
||||
|
|
||||
|
@ -3,81 +3,85 @@ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
thread 'main' panicked at 'second', $DIR/double_panic.rs:LL:CC
|
||||
stack backtrace:
|
||||
0: std::backtrace_rs::backtrace::miri::trace_unsynchronized
|
||||
at rustc_src/src/../../backtrace/src/backtrace/miri.rs:LL:CC
|
||||
at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
|
||||
1: std::backtrace_rs::backtrace::miri::trace
|
||||
at rustc_src/src/../../backtrace/src/backtrace/miri.rs:LL:CC
|
||||
at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
|
||||
2: std::backtrace_rs::backtrace::trace_unsynchronized
|
||||
at rustc_src/src/../../backtrace/src/backtrace/mod.rs:LL:CC
|
||||
at RUSTLIB/std/src/../../backtrace/src/backtrace/mod.rs:LL:CC
|
||||
3: std::sys_common::backtrace::_print_fmt
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
4: <std::sys_common::backtrace::_print::DisplayBacktrace as std::fmt::Display>::fmt
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
5: std::fmt::write
|
||||
at rustc_src/src/fmt/mod.rs:LL:CC
|
||||
at RUSTLIB/core/src/fmt/mod.rs:LL:CC
|
||||
6: <std::sys::PLATFORM::stdio::Stderr as std::io::Write>::write_fmt
|
||||
at rustc_src/src/io/mod.rs:LL:CC
|
||||
at RUSTLIB/std/src/io/mod.rs:LL:CC
|
||||
7: std::sys_common::backtrace::_print
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
8: std::sys_common::backtrace::print
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
9: std::panicking::default_hook::{closure#1}
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
10: std::panicking::default_hook
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
11: std::panicking::rust_panic_with_hook
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
12: std::rt::begin_panic::{closure#0}
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
13: std::sys_common::backtrace::__rust_end_short_backtrace
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
14: std::rt::begin_panic
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
15: <Foo as std::ops::Drop>::drop
|
||||
at $DIR/double_panic.rs:LL:CC
|
||||
16: std::ptr::drop_in_place - shim(Some(Foo))
|
||||
at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
17: main
|
||||
at $DIR/double_panic.rs:LL:CC
|
||||
18: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
|
||||
at rustc_src/src/ops/function.rs:LL:CC
|
||||
at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
19: std::sys_common::backtrace::__rust_begin_short_backtrace
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
20: std::rt::lang_start::{closure#0}
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
21: std::ops::function::impls::call_once
|
||||
at rustc_src/src/ops/function.rs:LL:CC
|
||||
at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
22: std::panicking::r#try::do_call
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
23: std::panicking::r#try
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
24: std::panic::catch_unwind
|
||||
at rustc_src/src/panic.rs:LL:CC
|
||||
at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
25: std::rt::lang_start_internal::{closure#2}
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
26: std::panicking::r#try::do_call
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
27: std::panicking::r#try
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
28: std::panic::catch_unwind
|
||||
at rustc_src/src/panic.rs:LL:CC
|
||||
at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
29: std::rt::lang_start_internal
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
30: std::rt::lang_start
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
thread panicked while panicking. aborting.
|
||||
error: abnormal termination: the program aborted execution
|
||||
--> RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
|
||||
|
|
||||
= note: inside `std::sys::PLATFORM::abort_internal` at rustc_src/src/sys/PLATFORM/mod.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside closure at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::rt::begin_panic::<&str>` at rustc_src/src/panicking.rs:LL:CC
|
||||
note: inside `<Foo as std::ops::Drop>::drop` at rustc_src/src/panic.rs:LL:CC
|
||||
LL | unsafe { libc::abort() }
|
||||
| ^^^^^^^^^^^^^ the program aborted execution
|
||||
|
|
||||
= note: inside `std::sys::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::rt::begin_panic::<&str>` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
note: inside `<Foo as std::ops::Drop>::drop` at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
--> $DIR/double_panic.rs:LL:CC
|
||||
|
|
||||
LL | panic!("second");
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= note: inside `std::ptr::drop_in_place::<Foo> - shim(Some(Foo))` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<Foo> - shim(Some(Foo))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/double_panic.rs:LL:CC
|
||||
--> $DIR/double_panic.rs:LL:CC
|
||||
|
|
||||
|
@ -1,15 +1,19 @@
|
||||
thread 'main' panicked at 'panicking from libstd', $DIR/panic_abort1.rs:LL:CC
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
error: abnormal termination: the program aborted execution
|
||||
--> RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside closure at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::rt::begin_panic::<&str>` at rustc_src/src/panicking.rs:LL:CC
|
||||
note: inside `main` at rustc_src/src/panic.rs:LL:CC
|
||||
LL | libc::abort();
|
||||
| ^^^^^^^^^^^^^ the program aborted execution
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::rt::begin_panic::<&str>` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
note: inside `main` at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
--> $DIR/panic_abort1.rs:LL:CC
|
||||
|
|
||||
LL | std::panic!("panicking from libstd");
|
||||
|
@ -1,16 +1,20 @@
|
||||
thread 'main' panicked at '42-panicking from libstd', $DIR/panic_abort2.rs:LL:CC
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
error: abnormal termination: the program aborted execution
|
||||
--> RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside closure at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::panicking::begin_panic_handler` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::rt::panic_fmt` at rustc_src/src/panicking.rs:LL:CC
|
||||
note: inside `main` at rustc_src/src/panic.rs:LL:CC
|
||||
LL | libc::abort();
|
||||
| ^^^^^^^^^^^^^ the program aborted execution
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::rt::panic_fmt` at RUSTLIB/core/src/panicking.rs:LL:CC
|
||||
note: inside `main` at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
--> $DIR/panic_abort2.rs:LL:CC
|
||||
|
|
||||
LL | std::panic!("{}-panicking from libstd", 42);
|
||||
|
@ -1,17 +1,21 @@
|
||||
thread 'main' panicked at 'panicking from libcore', $DIR/panic_abort3.rs:LL:CC
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
error: abnormal termination: the program aborted execution
|
||||
--> RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside closure at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::panicking::begin_panic_handler` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::rt::panic_fmt` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `core::panicking::panic` at rustc_src/src/panicking.rs:LL:CC
|
||||
note: inside `main` at rustc_src/src/panic.rs:LL:CC
|
||||
LL | libc::abort();
|
||||
| ^^^^^^^^^^^^^ the program aborted execution
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::rt::panic_fmt` at RUSTLIB/core/src/panicking.rs:LL:CC
|
||||
= note: inside `core::panicking::panic` at RUSTLIB/core/src/panicking.rs:LL:CC
|
||||
note: inside `main` at RUSTLIB/core/src/panic.rs:LL:CC
|
||||
--> $DIR/panic_abort3.rs:LL:CC
|
||||
|
|
||||
LL | core::panic!("panicking from libcore");
|
||||
|
@ -1,16 +1,20 @@
|
||||
thread 'main' panicked at '42-panicking from libcore', $DIR/panic_abort4.rs:LL:CC
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
error: abnormal termination: the program aborted execution
|
||||
--> RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at rustc_src/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside closure at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::panicking::begin_panic_handler` at rustc_src/src/panicking.rs:LL:CC
|
||||
= note: inside `std::rt::panic_fmt` at rustc_src/src/panicking.rs:LL:CC
|
||||
note: inside `main` at rustc_src/src/panic.rs:LL:CC
|
||||
LL | libc::abort();
|
||||
| ^^^^^^^^^^^^^ the program aborted execution
|
||||
|
|
||||
= note: inside `panic_abort::__rust_start_panic::abort` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `panic_abort::__rust_start_panic` at RUSTLIB/panic_abort/src/lib.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::panicking::begin_panic_handler::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
= note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
= note: inside `std::rt::panic_fmt` at RUSTLIB/core/src/panicking.rs:LL:CC
|
||||
note: inside `main` at RUSTLIB/core/src/panic.rs:LL:CC
|
||||
--> $DIR/panic_abort4.rs:LL:CC
|
||||
|
|
||||
LL | core::panic!("{}-panicking from libcore", 42);
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: pointer arithmetic failed: $HEX is not a valid pointer
|
||||
--> RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::offset(self, count) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pointer arithmetic failed: $HEX is not a valid pointer
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::ptr::const_ptr::<impl *const u8>::offset` at rustc_src/src/ptr/const_ptr.rs:LL:CC
|
||||
= note: inside `std::ptr::const_ptr::<impl *const u8>::offset` at RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
note: inside `main` at $DIR/strict-provenance-offset.rs:LL:CC
|
||||
--> $DIR/strict-provenance-offset.rs:LL:CC
|
||||
|
|
||||
|
@ -7,7 +7,7 @@ LL | assert_eq!(42, **unsafe { &*Weak::as_ptr(&weak) });
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `main` at rustc_src/src/macros/mod.rs:LL:CC
|
||||
= note: inside `main` at RUSTLIB/core/src/macros/mod.rs:LL:CC
|
||||
= note: this error originates in the macro `assert_eq` (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
|
||||
|
@ -1,19 +1,23 @@
|
||||
error: Undefined Behavior: deallocating while item is protected: [Unique for <TAG> (call ID)]
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ deallocating while item is protected: [Unique for <TAG> (call ID)]
|
||||
|
|
||||
= help: this indicates a potential bug in the program: it performed an invalid operation, but the rules it violated are still experimental
|
||||
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
|
||||
|
||||
= note: inside `std::alloc::dealloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `alloc::alloc::box_free::<i32, std::alloc::Global>` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<i32>> - shim(Some(std::boxed::Box<i32>))` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::mem::drop::<std::boxed::Box<i32>>` at rustc_src/src/mem/mod.rs:LL:CC
|
||||
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `alloc::alloc::box_free::<i32, std::alloc::Global>` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<i32>> - shim(Some(std::boxed::Box<i32>))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::mem::drop::<std::boxed::Box<i32>>` at RUSTLIB/core/src/mem/mod.rs:LL:CC
|
||||
note: inside closure at $DIR/deallocate_against_barrier1.rs:LL:CC
|
||||
--> $DIR/deallocate_against_barrier1.rs:LL:CC
|
||||
|
|
||||
LL | drop(unsafe { Box::from_raw(raw) });
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: inside `<[closure@$DIR/deallocate_against_barrier1.rs:LL:CC] as std::ops::FnOnce<(&mut i32,)>>::call_once - shim` at rustc_src/src/ops/function.rs:LL:CC
|
||||
= note: inside `<[closure@$DIR/deallocate_against_barrier1.rs:LL:CC] as std::ops::FnOnce<(&mut i32,)>>::call_once - shim` at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
note: inside `inner` at $DIR/deallocate_against_barrier1.rs:LL:CC
|
||||
--> $DIR/deallocate_against_barrier1.rs:LL:CC
|
||||
|
|
||||
|
@ -1,19 +1,23 @@
|
||||
error: Undefined Behavior: deallocating while item is protected: [SharedReadWrite for <TAG> (call ID)]
|
||||
--> RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ deallocating while item is protected: [SharedReadWrite for <TAG> (call ID)]
|
||||
|
|
||||
= help: this indicates a potential bug in the program: it performed an invalid operation, but the rules it violated are still experimental
|
||||
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
|
||||
|
||||
= note: inside `std::alloc::dealloc` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `alloc::alloc::box_free::<std::cell::Cell<i32>, std::alloc::Global>` at rustc_src/src/alloc.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<std::cell::Cell<i32>>> - shim(Some(std::boxed::Box<std::cell::Cell<i32>>))` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::mem::drop::<std::boxed::Box<std::cell::Cell<i32>>>` at rustc_src/src/mem/mod.rs:LL:CC
|
||||
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `alloc::alloc::box_free::<std::cell::Cell<i32>, std::alloc::Global>` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<std::boxed::Box<std::cell::Cell<i32>>> - shim(Some(std::boxed::Box<std::cell::Cell<i32>>))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::mem::drop::<std::boxed::Box<std::cell::Cell<i32>>>` at RUSTLIB/core/src/mem/mod.rs:LL:CC
|
||||
note: inside closure at $DIR/deallocate_against_barrier2.rs:LL:CC
|
||||
--> $DIR/deallocate_against_barrier2.rs:LL:CC
|
||||
|
|
||||
LL | drop(unsafe { Box::from_raw(raw) });
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: inside `<[closure@$DIR/deallocate_against_barrier2.rs:LL:CC] as std::ops::FnOnce<(&std::cell::Cell<i32>,)>>::call_once - shim` at rustc_src/src/ops/function.rs:LL:CC
|
||||
= note: inside `<[closure@$DIR/deallocate_against_barrier2.rs:LL:CC] as std::ops::FnOnce<(&std::cell::Cell<i32>,)>>::call_once - shim` at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
note: inside `inner` at $DIR/deallocate_against_barrier2.rs:LL:CC
|
||||
--> $DIR/deallocate_against_barrier2.rs:LL:CC
|
||||
|
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: ALLOC has size 2, so pointer to 4 bytes starting at offset 0 is out-of-bounds
|
||||
--> RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
|
|
||||
LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ALLOC has size 2, so pointer to 4 bytes starting at offset 0 is out-of-bounds
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::boxed::Box::<u32>::from_raw_in` at rustc_src/src/boxed.rs:LL:CC
|
||||
= note: inside `std::boxed::Box::<u32>::from_raw` at rustc_src/src/boxed.rs:LL:CC
|
||||
= note: inside `std::boxed::Box::<u32>::from_raw_in` at RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
= note: inside `std::boxed::Box::<u32>::from_raw` at RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
note: inside `main` at $DIR/issue-miri-1050-1.rs:LL:CC
|
||||
--> $DIR/issue-miri-1050-1.rs:LL:CC
|
||||
|
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: 0x4 is not a valid pointer
|
||||
--> RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
|
|
||||
LL | Box(unsafe { Unique::new_unchecked(raw) }, alloc)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 0x4 is not a valid pointer
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::boxed::Box::<i32>::from_raw_in` at rustc_src/src/boxed.rs:LL:CC
|
||||
= note: inside `std::boxed::Box::<i32>::from_raw` at rustc_src/src/boxed.rs:LL:CC
|
||||
= note: inside `std::boxed::Box::<i32>::from_raw_in` at RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
= note: inside `std::boxed::Box::<i32>::from_raw` at RUSTLIB/alloc/src/boxed.rs:LL:CC
|
||||
note: inside `main` at $DIR/issue-miri-1050-2.rs:LL:CC
|
||||
--> $DIR/issue-miri-1050-2.rs:LL:CC
|
||||
|
|
||||
|
@ -1,4 +1,11 @@
|
||||
error: Undefined Behavior: trying to reborrow <TAG> for SharedReadOnly permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location
|
||||
--> RUSTLIB/core/src/slice/mod.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { &*index.get_unchecked(self) }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |
|
||||
| trying to reborrow <TAG> for SharedReadOnly permission at ALLOC[0x4], but that tag does not exist in the borrow stack for this location
|
||||
| this error occurs as part of a reborrow at ALLOC[0x4..0x8]
|
||||
|
|
||||
= help: this indicates a potential bug in the program: it performed an invalid operation, but the rules it violated are still experimental
|
||||
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
|
||||
@ -7,7 +14,7 @@ help: <TAG> was created by a retag at offsets [0x0..0x0]
|
||||
|
|
||||
LL | assert_eq!(*s.get_unchecked(1), 2);
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
= note: inside `core::slice::<impl [i32]>::get_unchecked::<usize>` at rustc_src/src/slice/mod.rs:LL:CC
|
||||
= note: inside `core::slice::<impl [i32]>::get_unchecked::<usize>` at RUSTLIB/core/src/slice/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/zst_slice.rs:LL:CC
|
||||
--> $DIR/zst_slice.rs:LL:CC
|
||||
|
|
||||
|
@ -7,7 +7,7 @@ LL | let _x = unsafe { ptr::addr_of!(*x) };
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `main` at rustc_src/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `main` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: this error originates in the macro `ptr::addr_of` (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
|
||||
|
@ -1,10 +1,14 @@
|
||||
error: Undefined Behavior: reading 16 bytes of memory starting at ALLOC, but 12 bytes are uninitialized starting at ALLOC+0x4, and this operation requires initialized memory
|
||||
--> RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
|
|
||||
LL | let mut order = unsafe { memcmp(left.as_ptr(), right.as_ptr(), len) as isize };
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reading 16 bytes of memory starting at ALLOC, but 12 bytes are uninitialized starting at ALLOC+0x4, and this operation requires initialized memory
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `<u8 as core::slice::cmp::SliceOrd>::compare` at rustc_src/src/slice/cmp.rs:LL:CC
|
||||
= note: inside `core::slice::cmp::<impl std::cmp::Ord for [u8]>::cmp` at rustc_src/src/slice/cmp.rs:LL:CC
|
||||
= note: inside `<u8 as core::slice::cmp::SliceOrd>::compare` at RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
= note: inside `core::slice::cmp::<impl std::cmp::Ord for [u8]>::cmp` at RUSTLIB/core/src/slice/cmp.rs:LL:CC
|
||||
note: inside `main` at $DIR/uninit_buffer.rs:LL:CC
|
||||
--> $DIR/uninit_buffer.rs:LL:CC
|
||||
|
|
||||
|
@ -1,9 +1,13 @@
|
||||
error: Undefined Behavior: entering unreachable code
|
||||
--> RUSTLIB/core/src/hint.rs:LL:CC
|
||||
|
|
||||
LL | unsafe { intrinsics::unreachable() }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ entering unreachable code
|
||||
|
|
||||
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
|
||||
= note: inside `std::hint::unreachable_unchecked` at rustc_src/src/hint.rs:LL:CC
|
||||
= note: inside `std::hint::unreachable_unchecked` at RUSTLIB/core/src/hint.rs:LL:CC
|
||||
note: inside `main` at $DIR/unreachable.rs:LL:CC
|
||||
--> $DIR/unreachable.rs:LL:CC
|
||||
|
|
||||
|
@ -104,6 +104,8 @@ regexes! {
|
||||
"sys::[a-z]+::" => "sys::PLATFORM::",
|
||||
// Windows file paths
|
||||
r"\\" => "/",
|
||||
// erase Rust stdlib path
|
||||
"[^ `]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/",
|
||||
// erase platform file paths
|
||||
"sys/[a-z]+/" => "sys/PLATFORM/",
|
||||
}
|
||||
|
@ -1,31 +1,31 @@
|
||||
thread 'main' panicked at 'panicking from libstd', $DIR/panic1.rs:LL:CC
|
||||
stack backtrace:
|
||||
0: std::rt::begin_panic
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
1: main
|
||||
at $DIR/panic1.rs:LL:CC
|
||||
2: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
|
||||
at rustc_src/src/ops/function.rs:LL:CC
|
||||
at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
3: std::rt::lang_start::{closure#0}
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
4: std::ops::function::impls::call_once
|
||||
at rustc_src/src/ops/function.rs:LL:CC
|
||||
at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
5: std::panicking::r#try::do_call
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
6: std::panicking::r#try
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
7: std::panic::catch_unwind
|
||||
at rustc_src/src/panic.rs:LL:CC
|
||||
at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
8: std::rt::lang_start_internal::{closure#2}
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
9: std::panicking::r#try::do_call
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
10: std::panicking::r#try
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
11: std::panic::catch_unwind
|
||||
at rustc_src/src/panic.rs:LL:CC
|
||||
at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
12: std::rt::lang_start_internal
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
13: std::rt::lang_start
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
|
||||
|
@ -2,17 +2,4 @@ $DIR/backtrace-api-v0.rs:LL:CC (func_d)
|
||||
$DIR/backtrace-api-v0.rs:LL:CC (func_c)
|
||||
$DIR/backtrace-api-v0.rs:LL:CC (func_b)
|
||||
$DIR/backtrace-api-v0.rs:LL:CC (func_a)
|
||||
$DIR/backtrace-api-v0.rs:LL:CC (main)
|
||||
rustc_src/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - shim(fn()))
|
||||
rustc_src/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start::{closure#0})
|
||||
rustc_src/src/ops/function.rs:LL:CC (std::ops::function::impls::call_once)
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try)
|
||||
rustc_src/src/panic.rs:LL:CC (std::panic::catch_unwind)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start_internal::{closure#2})
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try)
|
||||
rustc_src/src/panic.rs:LL:CC (std::panic::catch_unwind)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start_internal)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start)
|
||||
$DIR/backtrace-api-v0.rs:LL:CC RUSTLIB/core/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
|
||||
|
@ -2,17 +2,4 @@ $DIR/backtrace-api-v1.rs:LL:CC (func_d)
|
||||
$DIR/backtrace-api-v1.rs:LL:CC (func_c)
|
||||
$DIR/backtrace-api-v1.rs:LL:CC (func_b)
|
||||
$DIR/backtrace-api-v1.rs:LL:CC (func_a)
|
||||
$DIR/backtrace-api-v1.rs:LL:CC (main)
|
||||
rustc_src/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - shim(fn()))
|
||||
rustc_src/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start::{closure#0})
|
||||
rustc_src/src/ops/function.rs:LL:CC (std::ops::function::impls::call_once)
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try)
|
||||
rustc_src/src/panic.rs:LL:CC (std::panic::catch_unwind)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start_internal::{closure#2})
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
|
||||
rustc_src/src/panicking.rs:LL:CC (std::panicking::r#try)
|
||||
rustc_src/src/panic.rs:LL:CC (std::panic::catch_unwind)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start_internal)
|
||||
rustc_src/src/rt.rs:LL:CC (std::rt::lang_start)
|
||||
$DIR/backtrace-api-v1.rs:LL:CC RUSTLIB/core/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
|
||||
|
@ -9,28 +9,28 @@
|
||||
4: main
|
||||
at $DIR/backtrace-std.rs:LL:CC
|
||||
5: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
|
||||
at rustc_src/src/ops/function.rs:LL:CC
|
||||
at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
6: std::sys_common::backtrace::__rust_begin_short_backtrace
|
||||
at rustc_src/src/sys_common/backtrace.rs:LL:CC
|
||||
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
|
||||
7: std::rt::lang_start::{closure#0}
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
8: std::ops::function::impls::call_once
|
||||
at rustc_src/src/ops/function.rs:LL:CC
|
||||
at RUSTLIB/core/src/ops/function.rs:LL:CC
|
||||
9: std::panicking::r#try::do_call
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
10: std::panicking::r#try
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
11: std::panic::catch_unwind
|
||||
at rustc_src/src/panic.rs:LL:CC
|
||||
at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
12: std::rt::lang_start_internal::{closure#2}
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
13: std::panicking::r#try::do_call
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
14: std::panicking::r#try
|
||||
at rustc_src/src/panicking.rs:LL:CC
|
||||
at RUSTLIB/std/src/panicking.rs:LL:CC
|
||||
15: std::panic::catch_unwind
|
||||
at rustc_src/src/panic.rs:LL:CC
|
||||
at RUSTLIB/std/src/panic.rs:LL:CC
|
||||
16: std::rt::lang_start_internal
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
17: std::rt::lang_start
|
||||
at rustc_src/src/rt.rs:LL:CC
|
||||
at RUSTLIB/std/src/rt.rs:LL:CC
|
||||
|
@ -17,7 +17,7 @@ thread 'main' panicked at 'index out of bounds: the len is 3 but the index is 4'
|
||||
Caught panic message (String): index out of bounds: the len is 3 but the index is 4
|
||||
thread 'main' panicked at 'attempt to divide by zero', $DIR/catch_panic.rs:LL:CC
|
||||
Caught panic message (&str): attempt to divide by zero
|
||||
thread 'main' panicked at 'align_offset: align is not a power-of-two', rustc_src/src/ptr/const_ptr.rs:LL:CC
|
||||
thread 'main' panicked at 'align_offset: align is not a power-of-two', RUSTLIB/core/src/ptr/const_ptr.rs:LL:CC
|
||||
Caught panic message (&str): align_offset: align is not a power-of-two
|
||||
thread 'main' panicked at 'assertion failed: false', $DIR/catch_panic.rs:LL:CC
|
||||
Caught panic message (&str): assertion failed: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user