rustic_core
rustic_core copied to clipboard
Miri fails with `memory allocation of 5368709120 bytes failed` - exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN
Culprit, most likely in this test and surroundings, probably something with the runner and being limited in usage of RAM or so, most likely false positive.
#[test]
fn chunk_zeros() {
let mut reader = repeat(0u8);
let poly = random_poly().unwrap();
let rabin = Rabin64::new_with_polynom(6, poly);
let mut chunker = ChunkIter::new(&mut reader, usize::MAX, rabin);
let chunk = chunker.next().unwrap().unwrap();
assert_eq!(constants::MIN_SIZE, chunk.len());
}
https://github.com/rustic-rs/rustic_core/blob/5675dd5ebea841c6b55c61901a33a42f8504b8e4/src/chunker.rs#L319
Action-Run: https://github.com/rustic-rs/rustic_core/actions/runs/6240530669/job/16940825841#step:9:481
memory allocation of 5368709120 bytes failed
error: test failed, to rerun pass `--lib`
Error: test failed, to rerun pass `--lib`
Caused by:
process didn't exit successfully: `C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\cargo-miri.exe runner D:\a\rustic_core\rustic_core\target\miri\x86_64-pc-windows-msvc\debug\deps\rustic_core-a5df6ff461b5f381.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
note: test exited abnormally; to see the full output pass --nocapture to the harness.
Error: The process 'C:\Users\runneradmin\.cargo\bin\cargo.exe' failed with exit code 3221226505