[lxml-dev] PyThread_release_lock segmentation fault
Holger Joukl
Holger.Joukl at LBBW.de
Tue Jan 9 10:20:04 CET 2007
Hi,
lxml-dev-bounces at codespeak.net schrieb am 09.01.2007 04:31:37:
> Hello,
>
> I'm getting segmentation faults inside PyThread_release_lock when trying
> to use lxml 1.1.2. The various stack traces I have seen seem to vary,
> but they are all related to "__xmlRaiseError () from
> /usr/lib/libxml2.so.2" (I haven't produced very many test cases, so
> there might be other causes). The original lxml install was done with
> easy_install, but I get the same results when I test the source directly.
>
> I'm using libxml2-2.6.27, gcc 3.4.3, and python 2.4 on a relatively
> recent redhat install.
No segfaults on my solaris system using gcc 2.95.2, libxml-2.6.27,
libxslt-1.1.18
and python 2.4.3.
There's been some issues with segfaults due to errors raised from libxml
lately which seemed to be correlated with python 2.3 and threading, you
might want
to take a look at the archives. I ran into some myself using python 2.3.
Note that
- my current version is a 1.1.2 branch snapshot taken some time ago
- the "libxml used" and "libxml compiled" output is the same on my system,
but
not on yours (whatever that's supposed to mean)
- I use a more recent Python 2.4 version (2.4.3); maybe the
Python2.3-threading-lxml
issue also extends to earlier Python 2.4-versions?
Holger
Here's my test log:
$ PATH=/apps/pydev/bin:$PATH make test PYTHON=/apps/pydev/bin/python2.4
/apps/pydev/bin/python2.4 setup.py build_ext -i
Building lxml version 1.1.2-33909
running build_ext
/apps/pydev/bin/python2.4 test.py -p -v
TESTED VERSION:
Python: (2, 4, 3, 'final', 0)
lxml.etree: (1, 1, 2, 33909)
libxml used: (2, 6, 27)
libxml compiled: (2, 6, 27)
libxslt used: (1, 1, 18)
libxslt compiled: (1, 1, 18)
477/477 (100.0%): Doctest: extensions.txt
======================================================================
ERROR: test_object_path_syntax
(lxml.tests.test_objectify.ObjectifyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/apps/prod//lib/python2.4/unittest.py", line 260, in run
testMethod()
File "/data/pydev/DOWNLOADS/LXML/lxml/lxml-1.1
/src/lxml/tests/test_objectify.py", line 544, in test_object_path_syntax
self.assertEquals(root.c1.c2.text, path(root).text)
File "objectify.pyx", line 1103, in objectify.ObjectPath.__call__
File "objectify.pyx", line 1244, in objectify._findObjectPath
ValueError: root element does not match: need {objectified}root , got
{objectified}root
======================================================================
FAIL: test_xslt_parameter_missing (lxml.tests.test_xslt.ETreeXSLTTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/apps/prod//lib/python2.4/unittest.py", line 260, in run
testMethod()
File "/data/pydev/DOWNLOADS/LXML/lxml/lxml-1.1
/src/lxml/tests/test_xslt.py", line 221, in test_xslt_parameter_missing
st.apply, tree)
File "/apps/prod//lib/python2.4/unittest.py", line 326, in
failUnlessRaises
raise self.failureException, "%s not raised" % excName
AssertionError: XSLTApplyError not raised
----------------------------------------------------------------------
Ran 477 tests in 1.014s
FAILED (failures=1, errors=1)
make: *** [test_inplace] Error 1
Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.
The contents of this e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail. Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.
More information about the lxml-dev
mailing list