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 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
