Have problems on MacOS Ventura with mimalloc: "(unaligned) pointer" warning in Debug and segfault in Release.
It seems that mi_usable_size gets pointer not allocated by mimalloc.
Debug output:
mimalloc: error: mi_usable_size: invalid (unaligned) pointer: 0x97f86e598e2153a3
mimalloc: error: mi_usable_size: invalid (unaligned) pointer: 0xa0cfe8d603a959b3
mimalloc: warning: mi_usable_size: pointer might not point to a valid heap region: 0x20d54b5b0
(this may still be a valid very large allocation (over 64MiB))
mimalloc: error: mi_usable_size: pointer does not point to a valid heap space: 0x20d54b5b0
Good day.
Have problems on MacOS Ventura with mimalloc: "(unaligned) pointer" warning in Debug and segfault in Release. It seems that mi_usable_size gets pointer not allocated by mimalloc.
Sample code:
app.m
CMakeLists.txt
Debug output: mimalloc: error: mi_usable_size: invalid (unaligned) pointer: 0x97f86e598e2153a3 mimalloc: error: mi_usable_size: invalid (unaligned) pointer: 0xa0cfe8d603a959b3 mimalloc: warning: mi_usable_size: pointer might not point to a valid heap region: 0x20d54b5b0 (this may still be a valid very large allocation (over 64MiB)) mimalloc: error: mi_usable_size: pointer does not point to a valid heap space: 0x20d54b5b0