[lxml-dev] Failure to Compile on Windows
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Sat Oct 21 22:14:56 CEST 2006
Hi Sidney,
Sidnei da Silva wrote:
> On Fri, Oct 20, 2006 at 02:22:26PM +0200, Stefan Behnel wrote:
> | Thanks for setting this up. The fact that it's a tuple does not necessarily
> | mean it's a Python problem. Could you come up with a stack trace or at least
> | the test name that triggered it? Try running test.py -v.
>
> There you have it:
>
> test_empty_parse (lxml.tests.test_errors.ErrorTestCase) ... ok
> test_XMLDTDID (lxml.tests.test_etree.ETreeOnlyTestCase) ... Fatal Python error:
> \pybots\slave\2.5.dasilva-x86\build\Objects\tupleobject.c:169 object at 013A91B8
> has negative ref count -606348326
>
>
> Stack Trace:
> -------------------------------------------------------------------------------
> ntdll.dll!7c822583()
>> python25_d.dll!Py_FatalError(const char * msg=0x0021d274) Line 1552 C
> python25_d.dll!_Py_NegativeRefcount(const char * fname=0x1e2b7da8, int lineno=0x000000a9, _object * op=0x013a91b8) Line 193 + 0xc C
> python25_d.dll!tupledealloc(PyTupleObject * op=0x0144e478) Line 169 + 0x75 C
> python25_d.dll!_Py_Dealloc(_object * op=0x0144e478) Line 1928 + 0x7 C
> python25_d.dll!tupledealloc(PyTupleObject * op=0x01451ab8) Line 169 + 0x8a C
> python25_d.dll!_Py_Dealloc(_object * op=0x01451ab8) Line 1928 + 0x7 C
> etree_d.pyd!__pyx_tp_dealloc_5etree__IDDict(_object * o=0x013a94f8) Line 45102 + 0x73 C
[...]
Thanks. That wasn't the greatest code anyway, so thanks for pointing me at it.
I couldn't reproduce the bug and didn't find anything suspicious under
valgrind, so I just committed a cleaned up version of some code parts that may
have lead to the problem and I hope that changes the refcount behaviour also.
Could you retry with the current trunk version?
Thanks again,
Stefan
More information about the lxml-dev
mailing list