Daniel Veillard <veillard@redhat.com> writes:
On Wed, Jun 05, 2002 at 06:09:39AM -0500, Michael Smith wrote:
Camille Bégnis <camille@mandrakesoft.com> writes:
Hmm, tracking down to the code causing the error was easier than I
thought: the following sample works fine with 1.48 and makes xsltproc
1.0.18 segfault with 1.51.1 html (works with FO).
Yep -- I just tried the same doc instance below on my environment with
xsltproc and the current (cvs) version of the stylesheets
(html/docbook.xsl) and reproduced the same segfault.
Hum, I can't reproduce it here:
paphio:~/XSLT/tests/docbook -> /usr/bin/xsltproc ~/tmp/docbook-xsl-1.51.1/html/docbook.xsl tst.xml
Error Undefined namespace prefix
xmlXPathCompiledEval: evaluation failed
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"><title>xsltproc segfault test</title><meta name="generator" content="DocBook XSL Stylesheets V1.51.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article"><div class="titlepage"><div><h2 class="title"><a name="id2760937"></a>xsltproc segfault test</h2></div><hr></div></div></body></html>
paphio:~/XSLT/tests/docbook -> /usr/bin/xsltproc --version
Using libxml 20422, libxslt 10018 and libexslt 709
xsltproc was compiled against libxml 20419, libxslt 10018 and libexslt 709
libxslt 10018 was compiled against libxml 20419
libexslt 709 was compiled against libxml 20419
paphio:~/XSLT/tests/docbook ->
Same for my development version from libxslt/libxml2 CVS, I will dig up about
the Undefined namespace prefix error ... but can you check first with the
RPMs from ftp://xmlsoft.org/
I compiled from latest release source (libxslt-1.0.18) & I get no
segfault running xsltproc built from that on the same test file (only
error is the 'Undefined namespace prefix' thing).
The xsltproc version I got the segfault from was:
Using libxml 20417, libxslt 10013 and libexslt 705
xsltproc was compiled against libxml 20417, libxslt 10013 and libexslt 705
libxslt 10013 was compiled against libxml 20417
libexslt 705 was compiled against libxml 20417
But I get no segfault with newer-but-not-the-latest version on another
machine:
Using libxml 20419, libxslt 10016 and libexslt 707
xsltproc was compiled against libxml 20419, libxslt 10016 and libexslt 707
libxslt 10016 was compiled against libxml 20419
libexslt 707 was compiled against libxml 20419
That's the latest version packaged for Debian. Don't know what the
latest are for other distros are, but it looks like if they're >= 1.0.16
won't get the segfault at least.
--Mike