|
1 |
| -error: Undefined Behavior: creating an allocation larger than half the address space |
2 |
| - --> tests/fail/alloc/too_large.rs:LL:CC |
| 1 | +thread 'main' panicked at RUSTLIB/core/src/panicking.rs:LL:CC: |
| 2 | +unsafe precondition(s) violated: Layout::from_size_align_unchecked requires that align is a power of 2 and the rounded-up allocation size does not exceed isize::MAX |
| 3 | +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
| 4 | +note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect |
| 5 | +thread caused non-unwinding panic. aborting. |
| 6 | +error: abnormal termination: the program aborted execution |
| 7 | + --> RUSTLIB/std/src/sys/pal/PLATFORM/mod.rs:LL:CC |
3 | 8 | |
|
4 |
| -LL | __rust_alloc(bytes, 1); |
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^^ creating an allocation larger than half the address space |
| 9 | +LL | unsafe { libc::abort() } |
| 10 | + | ^^^^^^^^^^^^^ the program aborted execution |
6 | 11 | |
|
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 | 12 | = note: BACKTRACE:
|
10 |
| - = note: inside `main` at tests/fail/alloc/too_large.rs:LL:CC |
| 13 | + = note: inside `std::sys::pal::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/pal/PLATFORM/mod.rs:LL:CC |
| 14 | + = note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC |
| 15 | + = note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC |
| 16 | + = note: inside `std::sys::backtrace::__rust_end_short_backtrace::<{closure@std::panicking::begin_panic_handler::{closure#0}}, !>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC |
| 17 | + = note: inside `std::panicking::begin_panic_handler` at RUSTLIB/std/src/panicking.rs:LL:CC |
| 18 | + = note: inside `core::panicking::panic_nounwind` at RUSTLIB/core/src/panicking.rs:LL:CC |
| 19 | + = note: inside `std::alloc::Layout::from_size_align_unchecked::precondition_check` at RUSTLIB/core/src/ub_checks.rs:LL:CC |
| 20 | + = note: inside `std::alloc::Layout::from_size_align_unchecked` at RUSTLIB/core/src/ub_checks.rs:LL:CC |
| 21 | + = note: inside `std::alloc::__default_lib_allocator::__rust_alloc` at RUSTLIB/std/src/alloc.rs:LL:CC |
| 22 | +note: inside `main` |
| 23 | + --> tests/fail/alloc/too_large.rs:LL:CC |
| 24 | + | |
| 25 | +LL | __rust_alloc(bytes, 1); |
| 26 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
11 | 27 |
|
12 | 28 | note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
|
13 | 29 |
|
|
0 commit comments