]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/alloc/global_system_mixup.stderr
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
[rust.git] / src / tools / miri / tests / fail / alloc / global_system_mixup.stderr
1 error: Undefined Behavior: deallocating ALLOC, which is Rust heap memory, using PLATFORM heap deallocation operation
2   --> RUSTLIB/std/src/sys/PLATFORM/alloc.rs:LL:CC
3    |
4 LL |         FREE();
5    | ^ deallocating ALLOC, which is Rust heap memory, using PLATFORM heap deallocation operation
6    |
7    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9    = note: BACKTRACE:
10    = 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
11    = note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate` at RUSTLIB/std/src/alloc.rs:LL:CC
12 note: inside `main` at $DIR/global_system_mixup.rs:LL:CC
13   --> $DIR/global_system_mixup.rs:LL:CC
14    |
15 LL |         System.deallocate(ptr, l);
16    | ^
17
18 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
19
20 error: aborting due to previous error
21