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 137251 - >=1.1.3 segfaults on simple stylesheet, 1.1.2 works
>=1.1.3 segfaults on simple stylesheet, 1.1.2 works
Status: VERIFIED DUPLICATE of bug 136624
Product: libxslt
Classification: Platform
Component: general
1.1.3
Other Linux
: Normal critical
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-15 15:35 UTC by mwe
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mwe 2004-03-15 15:35:20 UTC
This stylesheet crashes with 1.1.3 and works fine with 1.1.2. 1.1.4 seems
to crash too. The problem is within the <a href...> link, taking out any of
the {$...} variables will make it work.

here's the stripped down version of the stylesheet:
<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/*">
</xsl:template>

<xsl:template match="/*/geodaten">
  <xsl:variable name="x" select="gis/@coord_x"/>
  <xsl:variable name="y" select="gis/@coord_y"/>
  <xsl:variable name="zoom" select="gis/@zoom"/>
  <xsl:variable name="view" select="gis/@typ_code"/>
  <a
href="/foo.php?coords={$x},{$y}&amp;ZOOM={$zoom}&amp;View={$view}&amp;groesse=4,3&amp;Circle={$x},{$y}">Test</a>
</xsl:template>
</xsl:stylesheet>

And here's the xml:
<?xml version="1.0" ?>
  <home/>

The interesting part is that in this stylesheet, the template will never be
called. Any ideas?

Best regards!
Comment 1 William M. Brack 2004-03-15 16:37:25 UTC
This problem should be fixed in the current CVS.

*** This bug has been marked as a duplicate of 137166 ***
Comment 2 William M. Brack 2004-03-15 16:42:10 UTC
Sorry, I should have marked this as a duplicate of the original 
report [must be getting late :-( ]

*** This bug has been marked as a duplicate of 136634 ***
Comment 3 John Fleck 2004-03-16 03:44:18 UTC
Bill - You seem to have inadvertently duped this to a Nautilus big,
which doesn't seem right. Could you check the number again?
Thanks.
Comment 4 William M. Brack 2004-03-16 03:57:11 UTC
yeah, I was right, it *was* getting late... so my correction was 
also wrong.  Let's try one more time ("Third time's a charm!").  
Sorry for all the noise.

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