aligned_alloc.rs icon indicating copy to clipboard operation
aligned_alloc.rs copied to clipboard

Spurious test failure of large_high_align on x64 MSVC

Open jonas-schievink opened this issue 8 years ago • 1 comments

The test allocates 1 MiB aligned to 1 MiB, so it shouldn't really hit OOM (I think). Yet this log indicates that the allocation failed (by returning a NULL pointer).

All other builds have passed, so this might even be specific to x86_64-pc-windows-msvc.

jonas-schievink avatar Jan 28 '17 19:01 jonas-schievink

I've reproduced this for both small_high_align and large_high_align under wine:

running 6 tests
test tests::align_less_than_sizeof_usize ... ok
test tests::align_not_power_of_two ... ok
test tests::align_zero ... ok
test tests::large_high_align ... ok
test tests::small_high_align ... FAILED
test tests::small_low_align ... ok

failures:

---- tests::small_high_align stdout ----
	thread 'tests::small_high_align' panicked at 'assertion failed: !ptr.is_null()', src/lib.rs:148
running 6 tests
test tests::align_less_than_sizeof_usize ... ok
test tests::align_not_power_of_two ... ok
test tests::align_zero ... ok
test tests::large_high_align ... FAILED
test tests::small_high_align ... ok
test tests::small_low_align ... ok

failures:

---- tests::large_high_align stdout ----
	thread 'tests::large_high_align' panicked at 'assertion failed: !ptr.is_null()', src/lib.rs:157

jonas-schievink avatar Jul 01 '17 23:07 jonas-schievink