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 112703 - xsltproc crash in xsltApplyTemplates
xsltproc crash in xsltApplyTemplates
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2003-05-10 10:38 UTC by Mikhail Zabaluev
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The offending XML document (18.69 KB, text/xml)
2003-05-10 10:40 UTC, Mikhail Zabaluev
Details

Description Mikhail Zabaluev 2003-05-10 10:38:53 UTC
Processing a DocBook XSL document (to be attached) using a DocBook XSL
stylesheet results in segmentation fault.


Using libxml 20507, libxslt 10030 and libexslt 720
xsltproc was compiled against libxml 20507, libxslt 10030 and libexslt 720
libxslt 10030 was compiled against libxml 20507
libexslt 720 was compiled against libxml 20507


Command line:
xsltproc -v -o gpl.html
/usr/share/xml/docbook/xsl-stylesheets-1.61.0/html/docbook.xsl
gpl-appendix.sgml


Post-mortem investigation via gdb:

3023                                val = (const xmlChar *)
3024                                     
xmlHashLookup2(ctxt->style->stripSpaces,
3025                                                     cur->parent->name,
3026                                                    
cur->parent->ns->href);

(gdb) p cur->parent->ns
$1 = (struct _xmlNs *) 0xffffffff

(gdb) backtrace
  • #0 xsltApplyTemplates
    at transform.c line 3023
  • #1 xsltApplyOneTemplate
    at transform.c line 1462
  • #2 xsltProcessOneNode
    at transform.c line 1300
  • #3 xsltApplyTemplates
    at transform.c line 3152
  • #4 xsltApplyOneTemplate
    at transform.c line 1462
  • #5 xsltChoose
    at transform.c line 3270
  • #6 xsltApplyOneTemplate
    at transform.c line 1462
  • #7 xsltCallTemplate
    at transform.c line 2902
  • #8 xsltApplyOneTemplate
    at transform.c line 1462
  • #9 xsltChoose
    at transform.c line 3292
  • #10 xsltApplyOneTemplate
    at transform.c line 1462

Comment 1 Mikhail Zabaluev 2003-05-10 10:40:02 UTC
Created attachment 16404 [details]
The offending XML document
Comment 2 Daniel Veillard 2003-05-10 18:23:38 UTC
Okay, reproduced locally and fixed in CVS. That was introduced
as the result of a change in handling result value trees.

  thanks for the report,

Daniel
Comment 3 Daniel Veillard 2003-07-07 14:06:23 UTC
this should be closed by release of libxslt-1.0.31
                                                                     
          
  thanks,
                                                                     
          
Daniel