RudjiGames / MTuner

MTuner is a C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms
BSD 2-Clause "Simplified" License
2.63k stars 145 forks source link

'Call stack tree' and 'stack trace' tabs are empty in 4.3.1 #48

Closed crolopez closed 4 years ago

crolopez commented 5 years ago

Hi,

I have been testing the leak detection capabilities of MTuner to integrate it in the Wazuh testing protocol and I saw that the call stack tree and stack trace tabs are empty in MTuner 4.3.1.

image

image

The test is running with the following code:

#include <windows.h>
#include <stdio.h>

int main(int argc, char** argv) {
  char * a = malloc(3333);
  char * b = malloc(1234); //  Unreferenced memory
  char * c = malloc(4444); //  Still referenced
  char * d = malloc(1385);
  char * e = malloc(2385);

  b = a;

  free(a);
  free(d);

  return 0;
}

However, after reading the issue https://github.com/milostosic/MTuner/issues/37, I tried 4.0.9 and everything worked as expected.

image

image

On the other hand, I can't differentiate the leaks due to unreferenced memory from the leaks still referenced. Is there a way?

Best regards, Cristobal Lopez.

JuantAldea commented 5 years ago

I'm running into the same issue.

milostosic commented 4 years ago

Tracked down to FPO in x86 build.