http://bugs.winehq.org/show_bug.cgi?id=9157
------- Additional Comments From cnstar9988@gmail.com 2007-03-08 21:07 ------- I have installed valgrind 3.2.3 before wine 0.9.42, ./configure --prefix=/usr.
I have found that wine 0.9.42 knows about Valgrind, because $WINE_SRC/include/config.h says "#define HAVE_VALGRIND_MEMCHECK_H 1" ls -lta /usr/include/valgrind/valgrind.h -rw-r--r-- 1 root root 146801 Aug 2 22:17 /usr/include/valgrind/valgrind.h
So I think my valgrind+wine is very well installed. But when wine translate my winapp into elf, lost the backtrace of function. Your can build the following app on windows(mulithread support), and use wine+valgrind on Linux, but can't find any memory leak,,,.
#include "string.h" #include "stdlib.h" #include "stdio.h"
int main(int argc, char* argv[]) { char *x, *y;
x = (char *)malloc(32); y = (char *)malloc(16); x[30] = '\0'; y[15] = '\0';
printf("Hello World!\n"); return 0; }