Closed Validark closed 2 months ago
Thanks for reporting this.
This issue can be reproduced more simply for const overaligned_sizes = [_]usize{ 192, 192, 192 };
. It occurs due to utils.roundUpToPowerOfTwo erroneously rounding down, causing the aligned size for a len/alignment of 64/192 being 128 instead of 256 - with 3 consective allocations, this causes a segfault. This is fixed in https://github.com/joadnacer/jdz_allocator/commit/65372f6bff078fe32ac15359d35c06e3f60c07d8
While debugging this, I also noticed tests failing for max alignment on a device with a large page size (16KiB), as previously alignment was capped at the system's minimum page size. This is now fixed in https://github.com/joadnacer/jdz_allocator/commit/ecd8fd6d5677dd630f73cc397de1402fd9543c66, and alignment is now supported for up to 32KiB on all systems.
Gives the following error: