Closed fmwviormv closed 1 year ago
This seems like a bug with mimalloc interacting with OpenBSD. OpenBSD isn't really a tested target, so not sure how to proceed. I could disable mimalloc on anything but Windows/macOS and Linux because only those are known good.
cab11a4b4bff1237225e8e5264ea6c1dac319d94
When I build vkquake in DEBUG=1, it shows a lot of warnings after run:
And then stopped by a NULL pointer dereferencing after a failed allocation:
But after I used
-DUSE_CRT_MALLOC
to build flags, I don't see that problem. Isn't the game old enough to work fast enough without those complex memory management codes? Some operating systems (say OpenBSD) have strong memory allocation mechanism which could be helpful for finding allocation bugs, but with a non-standard memory allocation it couldn't help.