[lxml-dev] xmlHashComputeKey crash

Stefan Behnel stefan_ml at behnel.de
Fri Oct 24 11:14:11 CEST 2008



Kevin Watters wrote:
>>> The xsltRegisterExtModuleFunction gets an xmlChar* "name" argument that 
> appears 
>>> to be a bad pointer, and is eventually accessed in xmlHashComputeKey.
>> thanks for the report. Could you add what version of lxml and especially
>> libxml2 and libxslt you are using? This actually looks more like a problem in
>> libxml2 or libexslt, although I never stumbled over anything related so far.
> 
> We're using
> 
> libxml2-2.6.31
> libxslt-1.1.22
> lxml-2.1.2

I can't reproduce anything like this on Linux using these versions. However,
given that the stacktrace is almost etree-free (and no user code should have
run up to this point), could you report this on the libxml2 mailing list to
see if others can somehow give more context?

One more thing to test: are you using any other tools or libraries that depend
on libxml2 or libxslt in your code? It happens that other tools configure the
libraries differently, which can interfere with the way lxml uses them. OTOH,
if you are using a static Windows binary build, I doubt that this could pose
any problems...

Stefan



More information about the lxml-dev mailing list