[lxml-dev] Test failures on Windows
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Sat Oct 28 21:55:55 CEST 2006
Hi Sidnei,
Sidnei da Silva wrote:
> On Sat, Oct 28, 2006 at 04:12:30PM +0200, Stefan Behnel wrote:
> | the assumption that ctxt->spaceTab has always been initialised when calling
> | xmlCtxtReset() is wrong.
> | I don't know in which cases this field remains uninitialised, so if you
> | want to add some more infos to the bug report, feel free to investigate. I
> | only know that it definitely happens in the case where we call
> | xmlCtxtReadFile(). It is possible that this requires previous runs of the
> | parser, maybe even a failed run preceding the crash, can't tell...
>
> Maybe in spacePush, if memory allocation fails. That seems a bit odd
> though... unless you're really short on memory :)
I think I was on the wrong track. It's a bug in libxml2, but not the right
one. The crash appears somewhere in the long doctest in api.txt, most likely
in a place where errors are tested when parsing from a string. That's not what
we are looking for.
You said that your patch fixes the problem, are you certain about that?
Because calling xmlCtxtReset() should do exactly that (and a lot more) and it
doesn't seem to solve the problem - according to the buildbot.
Stefan
More information about the lxml-dev
mailing list