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 137633 - xsltproc seqfaults using a stylesheet with many xpath expressions
xsltproc seqfaults using a stylesheet with many xpath expressions
Status: VERIFIED DUPLICATE of bug 136624
Product: libxslt
Classification: Platform
Component: general
1.1.4
Other Linux
: Normal major
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-18 22:28 UTC by Sebastian Böhm
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Böhm 2004-03-18 22:28:27 UTC
-libxslt 1.1.4
-libxml 2.6.7
-debian woody width libc6 and gcc from testing
-nothing special


the following crashes xsltproc: 
<elem attr="{1} {1} {1} {1} {1} {1}"/>

if I remove one xpath expression it works. This works:
<elem attr="{1} {1} {1} {1} {1}"/>

I seems to crash if more than 5 xpath expressions are used in one attribute .

in another stylesheet it reproduced a crash if more than 4 xpath expressions are in one 
attribute.

-------test.xsl------------
<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:template match="/root">
        <elem attr="{1} {1} {1} {1} {1} {1}"/>
    </xsl:template>
</xsl:stylesheet>
-------x.xml------------
<?xml version="1.0"?>
<root/>
-------cmd-line-output------------
# xsltproc --verbose test.xsl x.xml
Resolving attribute sets references
<?xml version="1.0"?>
<elem attr="1 1 1 1 1"/>
# xsltproc --verbose test.xsl x.xml
Resolving attribute sets references
<?xml version="1.0"?>
<elem attr="1 1 1 1 1 1"/>
Segmentation fault
#
Comment 1 John Fleck 2004-03-19 00:58:44 UTC
Thanks for the report. This is fixed in CVS.

*** This bug has been marked as a duplicate of 136624 ***
Comment 2 Daniel Veillard 2004-03-25 11:34:33 UTC
This should be closed by release of libxslt-1.1.5,
                                                                                
  thanks,
                                                                                
Daniel