[lxml-dev] lxml 2.1.4/2.2beta1 Solaris 9 segv in test-suite
Volker Paulsen
paulsen at orbiteam.de
Tue Jan 6 11:01:19 CET 2009
Hi Stefan,
On Tue, Dec 23, 2008 at 07:38:52AM +0100, Stefan Behnel wrote:
> Volker Paulsen wrote:
> > I just compiled lxml-2.1.4 (and lxml-2.2beta)
> > with gcc 4.2.4 against
> >
> > - libxml2-2.7.2
> > - libxslt-1.1.24
> >
> > Unfortunately the test "test_schematron_invalid_schema_empty" causes a
> > segmentation violation with Python 2.5 and Python 2.6;
> >
> > Please find a gdb backtrace for Python 2.6 and lxml-2.1.4 (and
> > lxml-2.2beta) attached.
>
> I don't think I've seen this before, might be specific to Solaris. From the
> stack trace, it's not sure that the problem is in lxml, as the error is
> handled purely inside libxml2 up to that point.
>
> I'd say you're safe if you don't use schematron (which most people won't
> run into anyway). Could you try to reproduce this with 'xmllint' (comes
> with libxml2) and the empty schema given by the test case?
>
> <schema xmlns="http://purl.oclc.org/dsdl/schematron" />
>
> That would allow us to see if it's a problem with libxml2.
Actually I am not an XML-Crack...
$ cat schematron.dsdl
<schema xmlns="http://purl.oclc.org/dsdl/schematron" />
$ /usr/local/bin/xmllint --version
/usr/local/bin/xmllint: using libxml version 20702
compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
$ /usr/local/bin/xmllint schematron.dsdl
<?xml version="1.0"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron"/>
$ /usr/local/bin/xmllint --valid schematron.dsdl
schematron.dsdl:1: validity error : Validation failed: no DTD found !
<schema xmlns="http://purl.oclc.org/dsdl/schematron" />
^
<?xml version="1.0"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron"/>
Is this helpful?
Regards,
Volker Paulsen
--
OrbiTeam Software GmbH & Co. KG http://www.orbiteam.de/
() Ascii Ribbon Campaign
/\ Support plain text e-mail
More information about the lxml-dev
mailing list