-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
rust-lang/rust
#125633Description
On both GitHub CI default linux runner (should have 16GB RAM), and locally (also linux, 64GB RAM), the following test will run out of memory in Miri, but panic in normal cargo test:
#[test]
fn try_allocate_a_lot() {
let mut v = Vec::<u8>::new();
v.try_reserve(128 * 1024 * 1024 * 1024).unwrap();
let _ = v;
}cargo testpanics:called `Result::unwrap()` on an `Err` value: TryReserveError { kind: AllocError { layout: Layout { size: 137438953472, align: 1 (1 << 0) }, non_exhaustive: () } }cargo miri testwill try allocating and get killed for OOM, CTRL+C does not stop it
Apologies if this has been reported before, I could not find another issue for this.
Metadata
Metadata
Assignees
Labels
No labels