
Martijn Faassen wrote:
Stefan Behnel wrote:
Hi Martijn,
Martijn Faassen wrote:
Hey,
Also note that running valgrind over the lxml testsuite now reports quite a few problems -- invalid reads of content previously freed by libxml2, for instance. I hope you're refering to the test_attribute_xmlns_move test. That's the xml:id bug that Noah found. I'm working on that, but it's rather tricky. See here:
I indeed get problems with test_attribute_xmlns_move, but also with test_module_HTML_unicode.
I see you did a fix; the last one is now gone.
I also appear to get a whole bunch of problems near the end of the test run (possbily when it's running doctests? not sure..). Note that test_attribute_xmlns_move currently also fails when I run the tests.
I think I have been looking wrong and mistook the error summary for errors at the end. There are some reports at the end but they look to have something to do with the Python interpreter again, not lxml in particular: ==31495== Invalid read of size 4 ==31495== at 0x41129379: (within /lib/tls/libc-2.3.5.so) ==31495== by 0x410E9121: (within /lib/tls/libc-2.3.5.so) ==31495== by 0x410E9211: tdestroy (in /lib/tls/libc-2.3.5.so) ==31495== by 0x4112971B: (within /lib/tls/libc-2.3.5.so) ==31495== by 0x41129D51: __libc_freeres (in /lib/tls/libc-2.3.5.so) ==31495== by 0x1B8FC68A: _vgw_freeres (vg_preloaded.c:62) ==31495== by 0x41045785: exit (in /lib/tls/libc-2.3.5.so) ==31495== by 0x80D8468: (within /usr/bin/python2.4) ==31495== by 0x80D8645: PyErr_PrintEx (in /usr/bin/python2.4) ==31495== by 0x80D9143: PyRun_SimpleFileExFlags (in /usr/bin/python2.4) ==31495== by 0x8055A05: Py_Main (in /usr/bin/python2.4) ==31495== by 0x4102DEBF: __libc_start_main (in /lib/tls/libc-2.3.5.so) ==31495== Address 0xC is not stack'd, malloc'd or (recently) free'd ==31495== ==31495== Process terminating with default action of signal 11 (SIGSEGV) ==31495== Access not within mapped region at address 0xC ==31495== at 0x41129379: (within /lib/tls/libc-2.3.5.so) ==31495== by 0x410E9121: (within /lib/tls/libc-2.3.5.so) ==31495== by 0x410E9211: tdestroy (in /lib/tls/libc-2.3.5.so) ==31495== by 0x4112971B: (within /lib/tls/libc-2.3.5.so) ==31495== by 0x41129D51: __libc_freeres (in /lib/tls/libc-2.3.5.so) ==31495== by 0x1B8FC68A: _vgw_freeres (vg_preloaded.c:62) ==31495== by 0x41045785: exit (in /lib/tls/libc-2.3.5.so) ==31495== by 0x80D8468: (within /usr/bin/python2.4) ==31495== by 0x80D8645: PyErr_PrintEx (in /usr/bin/python2.4) ==31495== by 0x80D9143: PyRun_SimpleFileExFlags (in /usr/bin/python2.4) ==31495== by 0x8055A05: Py_Main (in /usr/bin/python2.4) ==31495== by 0x4102DEBF: __libc_start_main (in /lib/tls/libc-2.3.5.so) Regards, Martijn