|
From: Colin M. <col...@pi...> - 2009-07-13 10:18:04
|
simone marras wrote: > Hi everyone, > > I was having problems of memory allocation that valgirnd identified as > a mismatched number in "malloc/free". Not knowing where the problem > could be I tried to not allocate anything in my code and see if there > was still a similar error. I realized that valgrind still gave me a > mismatched number although I am not actually using malloc and free for > this test. > Where could the problem be? Does valgrind identify the declaration of > a pointer already as if I were to malloc it? > > Simone, Valgrind should give a full backtrace for each error. If you built and linked your program with debug info ( -g option in gcc/g++ ), then the symbol names will be printed, otherwise just the addresses of the functions. What error(s) is valgrind reporting? It is possible that a library that you are using is buggy. If you put some of the output here, I'm sure the we can give you further assistance. Colin S. Miller |