RustRoguelike icon indicating copy to clipboard operation
RustRoguelike copied to clipboard

Mingw64 generate_bare_map SegFault

Open nsmryan opened this issue 2 years ago • 4 comments

Mingw64 segfaults on generate_bare_map due to a free that occurs when the function ends.

This function calls into wfc-rs, so it is likely some kind of double free situation. Perhaps the update to the wfc.h code in the latest commit, which fixes a leak (presumably by freeing some memory) free something that Rust then double-frees.

Look at the commit to wfc, where frees occur, and see if any of that memory is allocated in Rust. Consider something like asking Rust to ignore the memory if so.

nsmryan avatar Apr 21 '22 03:04 nsmryan