xsltproc crashdump

Bug #85439 reported by Christian Holtje
6
Affects Status Importance Assigned to Milestone
libxslt
Fix Released
Medium
libxslt (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: xsltproc

I think the cause was creating func:function (using exslt) with TWO func:result nodes...

Example (untested):
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:func="http://exslt.org/functions"
                extension-element-prefixes="func"
>
  <xsl:output method="xml" indent="yes"/>

<func:function name="foo">
  <func:result select="'bar'"/>
  <func:result select="'bar'"/>
</func:function>

<xsl:template match="/">
  <node>
    <xsl:value-of select="foo()"/>
  </node>
</xsl:template>

</xsl:stylesheet>

Ciao!

Revision history for this message
Christian Holtje (docwhat) wrote :

Forgot to attach the coredump.

Ciao!

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in libxslt:
assignee: nobody → andreas-moog
status: New → Incomplete
Revision history for this message
Christian Holtje (docwhat) wrote :

It still does a core dump:
$ xsltproc launchpad-35439.xsl empty.xml
exsltFuncResultElem: only xsl:fallback is allowed to follow func:result
zsh: segmentation fault xsltproc launchpad-35439.xsl empty.xml

I have attached the correct XSL for this.

Note, it still shows the correct error, but it shouldn't segfault.

Revision history for this message
Andreas Moog (ampelbein) wrote :

What version of xsltproc are you using? I just tried on Intrepid with

xsltproc:
  Installed: 1.1.24-1ubuntu1

and don't get this error anymore.

Revision history for this message
Christian Holtje (docwhat) wrote :

ii libxslt1.1 1.1.22-1ubuntu XSLT processing library - runtime library
ii xsltproc 1.1.22-1ubuntu XSLT command line processor

Ubuntu Hardy Heron.

What is the output from running this in Intrepid?

Revision history for this message
Andreas Moog (ampelbein) wrote :

andreas@Callypso:~/Desktop$ xsltproc launchpad-35439.xsl empty.xml
exsltFuncResultElem: only xsl:fallback is allowed to follow func:result
warning: failed to load external entity "empty.xml"
unable to parse empty.xml
andreas@Callypso:~/Desktop$

Revision history for this message
Christian Holtje (docwhat) wrote :

Andreas:

You have to create the empty xml node. You can use launchpad-35439.xsl if you want or you can greate an empty.xml file:

* empty.xml would be something like:
<xml/>

* The commandline to use launchpad-35439.xsl is:
xsltproc launchpad-35439 launchpad-35439.xsl

Without the xml file, I don't get a segfault either.

Ciao!

Revision history for this message
Andreas Moog (ampelbein) wrote :

Okay, now i can reproduce the bug. I'm getting a segfault, too. Setting this to confirmed for developers to start working on it. Thanks for the report.

Changed in libxslt:
assignee: andreas-moog → nobody
status: Incomplete → Confirmed
Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here:

http://bugzilla.gnome.org/show_bug.cgi?id=548309

Changed in libxslt:
status: Unknown → New
Revision history for this message
C de-Avillez (hggdh2) wrote :

Marking as triaged.

Changed in libxslt:
status: Confirmed → Triaged
Revision history for this message
Connor Imes (ckimes) wrote :

Setting Importance to Low at Andreas Moog's request.

Changed in libxslt:
importance: Undecided → Low
Changed in libxslt:
importance: Unknown → Medium
Changed in libxslt:
status: New → Fix Released
Revision history for this message
Steve Beattie (sbeattie) wrote :

This was fixed upstream in libxslt 1.1.27 (commits 14ee81b06c12743a88fbc1676f3d35a86a74e08e and aebfee35d1106035dddf897e0e81d72d110b5e63). Marking this bug closed.

Changed in libxslt (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.