mingw64 memory leak tools #90
Replies: 1 comment 5 replies
-
Dr. Memory was the only "no recompilation needed" tool I knew for Windows -- a bit like Linux's Valgrind. It's a pity it's not working. https://github.com/DynamoRIO/drmemory appears to be maintained, so perhaps it's something that can be fixed. For the record, https://github.com/jrfonseca/memtrail?tab=readme-ov-file#links I list many memory debugging tools, but all for Linux. If you use Clang instead of GCC, then you can also use AddressSanitizer to detect many kind of errors, but AFAICT, leak detection is not yet supported on Windows. I've successfully used https://github.com/johnsonjh/duma to debug memory leaks and buffer overflows with MinGW. It was a long time ago but it worked great back then. It's the only leak detection tool I can recommend for MinGW at this moment. Good luck. Please let me know in this issue if you had success with DUMA or any other tool. |
Beta Was this translation helpful? Give feedback.
-
Are there any good memory leak detection tools on mingw64? I've tried Dr.memory, and found that on win10 10 21H2 it gives an error, and the compiled debug version is not accurate to the line number!
Beta Was this translation helpful? Give feedback.
All reactions