GNOME Bugzilla – Bug 137166
Five variables expansion causes segfaults
Last modified: 2009-08-15 18:40:50 UTC
It is actual also in version 1.0.33, but in one of ealier versions (ships with slack 9.0) everything is ok. There was a moment, when 1.0.33 works too, but i can't say what was changed... ruslan@ru:/srv/urh/cgi-bin$ cat t.xsl <?xml version="1.0" encoding="utf8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="a">1</xsl:param> <xsl:template match="/"> <a href="/{$a}{$a}{$a}{$a}{$a}/">test</a> </xsl:template> </xsl:stylesheet> ruslan@ru:/srv/urh/cgi-bin$ xsltproc t.xsl t.xsl <?xml version="1.0"?> <a href="/11111/">test</a> Segmentation fault (gdb) bt
+ Trace 45110
ruslan@ru:/srv/urh/cgi-bin$ gcc --version gcc (GCC) 3.2.3 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ruslan@ru:/srv/urh/cgi-bin$ xsltproc -V Using libxml 20607, libxslt 10104 and libexslt 804 xsltproc was compiled against libxml 20607, libxslt 10104 and libexslt 804 libxslt 10104 was compiled against libxml 20607 libexslt 804 was compiled against libxml 20607 ruslan@ru:/srv/urh/cgi-bin$ xmllint --version xmllint: using libxml version 20607 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata Schemas
This seems to have been caused by some changed introduced in the last release(s). No segfault with libxml 20606, libxslt 10102, upgraded to libxml 20607, libxslt 10104 and I get the segfault.
This should be already fixed in CVS. *** This bug has been marked as a duplicate of 136624 ***
*** Bug 137251 has been marked as a duplicate of this bug. ***
This should be closed by release of libxslt-1.1.5, thanks, Daniel