
Hi, David Turner wrote:
I'm trying to write some code that uses lxml, and I run into a weird memory error.
Unfortunately, I can't seem to create a small testcase. So this bug report probably won't be very useful.
Thanks for the report. However, I can't see anything related to lxml from your stack traces, so before I try to reproduce this, would you mind trying it with the latest trunk version of lxml? You didn't state which version you were using, so I assume it was a release version.
Running valgrind shows a couple of memory errors. The first is in xmlFreeNode, when it attempts to get the dict from a doc that has been freed. The node in question is created at line 327 of tasklist.py in transcluder -- but the error comes later, during garbage collection.
Could you send me the valgrind log? bzip2 is fine. Thanks, Stefan