After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 137166 - Five variables expansion causes segfaults
Five variables expansion causes segfaults
Status: VERIFIED DUPLICATE of bug 136624
Product: libxslt
Classification: Platform
Component: general
1.1.4
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-14 17:50 UTC by ruslan
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ruslan 2004-03-14 17:50:14 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
  • #0 _int_free
    from /lib/libc.so.6
  • #1 free
    from /lib/libc.so.6
  • #2 xsltFreeTemplate
    at xslt.c line 326
  • #3 xsltFreeTemplateList
    at xslt.c line 342
  • #4 xsltFreeStylesheet
    at xslt.c line 488
  • #5 main
    at xsltproc.c line 883
  • #6 __libc_start_main
    from /lib/libc.so.6

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
Comment 1 John Fleck 2004-03-14 21:29:33 UTC
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.
Comment 2 William M. Brack 2004-03-15 00:26:14 UTC
This should be already fixed in CVS.

*** This bug has been marked as a duplicate of 136624 ***
Comment 3 William M. Brack 2004-03-15 16:37:24 UTC
*** Bug 137251 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Veillard 2004-03-25 11:42:10 UTC
This should be closed by release of libxslt-1.1.5,
                                                                                
  thanks,
                                                                                
Daniel