Posted on 2009-03-11 01:02:29-07 by codechild
Memory Leak Update
I have finally managed to fix all of the leaks in XML::Bare. I will release the new version this upcoming weekend. I would release it now, but I would like to fix the licensing issues with the test xml files in the distribution before I release.

Note to anyone trying to patch memory leaks in XS code: check out the following modules:
1. Devel::LeakTrace::Fast ( for finding the general location of leaks )
2. Devel::Peek ( for dumping the full structure of variables and finding reference counting problems )
3. Data::Dumper ( no reference count info, but is capable of easily showing circular references and weird reference problems )
4. Devel::Monitor ( to get a basic idea of when variables are freed if at all )
5. Devel::Leak ( see 1; this one is not very useful compared to Devel::LeakTrace )

Also, valgrind deserves mention as the only truly complete way to check for memory leaks across any type of code.
Direct Responses: 10149 | 10174 | Write a response
Posted on 2009-03-11 08:47:58-07 by meriadoc in response to 10148
Re: Memory Leak Update
Fantastic - thanks a million!
Direct Responses: Write a response
Posted on 2009-03-16 00:08:46-07 by codechild in response to 10148
Re: Memory Leak Update
After more testing I have found several additional problems... I should have them resolved tomorrow evening to release. For anyone waiting, sorry for the delay; it is coming soon!

Another note for anyone who cares... make clean is not so reliable! -some- files -may- remain as previous versions!
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.