[xml/sgml-pkgs] Bug#293592: libxslt1.1: Setting xml:lang on / makes xsltproc segfault

Vincent Lefevre Vincent Lefevre <vincent@vinc17.org>, 293592@bugs.debian.org
Fri, 4 Feb 2005 17:02:38 +0100


Package: libxslt1.1
Version: 1.1.8-5
Severity: normal

This XSL stylesheet is buggy, but in any case, xsltproc shouldn't
segfault.

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
  <xsl:attribute name="xml:lang">
    <xsl:value-of select="'en'"/>
  </xsl:attribute>
</xsl:template>
</xsl:stylesheet>

dixsept:~> xsltproc test.xsl test.xsl
zsh: segmentation fault (core dumped)  xsltproc test.xsl test.xsl

(gdb) backtrace 
#0  0xb7d3ba09 in free () from /lib/tls/libc.so.6
#1  0xb7e7b505 in xmlFreeDtd () from /usr/lib/libxml2.so.2
#2  0xb7e7b757 in xmlFreeDoc () from /usr/lib/libxml2.so.2
#3  0x08049f51 in ?? ()
#4  0x08053860 in ?? ()
#5  0x08057be0 in ?? ()
#6  0xbffff148 in ?? ()
#7  0x08048fbd in _init ()
#8  0xb7cdf904 in __libc_start_main () from /lib/tls/libc.so.6
#9  0x08049311 in ?? ()

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-dixsept
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages libxslt1.1 depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libgcrypt11                 1.2.0-11     LGPL Crypto library - runtime libr
ii  libgpg-error0               1.0-1        library for common error values an
ii  libxml2                     2.6.16-1     GNOME XML library
ii  zlib1g                      1:1.2.2-4    compression library - runtime

-- no debconf information