[lxml-dev] *** glibc detected *** free(): invalid pointer: 0x086449e7 ***

Doug Winter doug at isotoma.com
Mon Mar 5 18:46:19 CET 2007


Stefan Behnel wrote:
> Ah, ok. Any chance you could switch to either 1.2 or 1.3beta? There were a
> number of bug fixes since 1.1.1 that might be related here.

I thought I'd tried this before (I've been hunting this bug a while), 
and I had, but now this is narrowed down a bit it's more interesting. 
1.3beta still abends:

*** glibc detected *** free(): invalid pointer: 0x085a8a8d ***

But the backtrace is different:

(gdb) bt
#0  0xb7fce410 in ?? ()
#1  0xb4a97c0c in ?? ()
#2  0x00000006 in ?? ()
#3  0x000044c7 in ?? ()
#4  0xb7e7d811 in raise () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7e7efb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7eb2d3a in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7eba5cf in mallopt () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7eba672 in free () from /lib/tls/i686/cmov/libc.so.6
#9  0xb728d55d in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#10 0xb728d6a2 in xmlFreeProp () from /usr/lib/libxml2.so.2
#11 0xb728d91b in xmlFreePropList () from /usr/lib/libxml2.so.2
#12 0xb728d4fa in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#13 0xb728d4d6 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#14 0xb728d4d6 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#15 0xb728d4d6 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#16 0xb728d2fe in xmlFreeDoc () from /usr/lib/libxml2.so.2
#17 0xb73ed006 in __pyx_tp_dealloc_5etree__Document (o=0xb6e2848c)
     at src/lxml/etree.c:10807
#18 0xb73f01e1 in __pyx_tp_dealloc_5etree__Element (o=0xb6e32acc)
     at src/lxml/etree.c:38083
#19 0xb73b75ec in __pyx_tp_dealloc_5etree__ElementTree (o=0xb6e32a54)
     at src/lxml/etree.c:38892
#20 0xb73bc626 in __pyx_tp_dealloc_5etree__XSLTResultTree (o=0xb6e32a54)
     at src/lxml/etree.c:47656

Just to confirm the version:

 >>> from lxml import etree
 >>> etree.LXML_VERSION
(1, 3, -1, 0)

Cheers,

Doug.

-- 
Isotoma, Open Source Software Consulting - http://www.isotoma.com
Tel: 01904 567349, Mobile: 07879 423002, Fax: 020 79006980
Postal Address: Tower House, Fishergate, York, YO10 4UA, UK

Registered in England.  Company No 5171172.  VAT GB843570325.
Registered Office: 19a Goodge Street, London, W1T 2PH


More information about the lxml-dev mailing list