I’m writing a C++ program with several threads, lots of IO, etc. and I want to check for memory leaks. The program runs great in debug build, and release build. But, if I run Valgrind from within Qt Creator (v 12.0.2) with Qt5.15.2, I see some output from my program and then:
21:18:04: Analyzing finished.
21:18:04: Process exited with return value Process crashed
21:18:04: Analyzing finished.
But there is no output showing where it crashed! I tried running valgrind on my program from the bash command prompt and it runs fine (though LOTS of output because of no supression files for Qt). No crash.
There’s something about running Valgrind in Qt Creator that exposes a memory problem (I’m guessing). But I can’t find it! I have core (crash) files enabled, yet this crash does not cause a core dump to be written. I’m at a loss…how do I find out what’s going on to cause the crash?