debug builds are massively broken on Windows
Before !4324 (merged), most of mesa used
src/util/imports.h, which maps directly to
calloc(). Hoever, !4324 (merged) changed to use the versions from
src/util/u_memory.h instead. This seems like a fine enough cleanup... however:
- On Windows debug-builds
debug_callocrequires to be freed using
- Many call-sites in mesa allocates using
CALLOC_STRUCT, but frees using
The end result is that debug-builds on Windows crash hard, due to freeing the wrong pointer. This leads to heap-corruptions all over the place.
This also happens in the tagged release 20.1.0-rc1.