Re: [xml] error



nitin singh said:
Hello
I am running a code using two libraries, xmlsec and
libxml2. when i try to find memory leaks using
valgrind I get following leak


==26377== 4 bytes in 1 blocks are definitely lost in
loss record 1 of 27
==26377==    at 0x1B903D1C: malloc
(vg_replace_malloc.c:131)
==26377==    by 0x1BA908D5: xmlStrndup__internal_alias
(xmlstring.c:45)
==26377==    by 0x1BA90931: xmlStrdup__internal_alias
(xmlstring.c:71)
==26377==    by 0x1BA90EDE: xmlStrcat__internal_alias
(xmlstring.c:515)
==26377==
==26377== LEAK SUMMARY:
==26377==    definitely lost: 4 bytes in 1 blocks.
==26377==    possibly lost:   0 bytes in 0 blocks.
==26377==    still reachable: 31945 bytes in 476
blocks.
==26377==         suppressed: 200 bytes in 1 blocks.
==26377== Reachable blocks (those to which a pointer
was found) are not shown.
==26377== To see them, rerun with:
--show-reachable=yes



I have checked all of my code, used grep, did
everything i could, and now I am sure
that i am not calling xmlStrcat or xmlStrdup anywhere
in my code.
Just want to make sure, the internal alias is for
xmlStrcat only, right ???
Can somebody help me trace this out.
thanks
Nitin

We will need to look further back in the stack to find where the leak arises. 
Use valgrind's parameter "--num-callers=50" to do this.  Also, when you make a
report, please make sure to specify which version of the library you are using
(provide the output of "xmllint --version").

Bill




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]