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 73880 - Crash possibly in namespace evaluation
Crash possibly in namespace evaluation
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.4.13
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-03-07 18:28 UTC by Mark Vakoc
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
initial stylesheet (3.41 KB, text/xml)
2002-03-07 18:28 UTC, Mark Vakoc
Details
included stylesheet (25.24 KB, text/xml)
2002-03-07 18:29 UTC, Mark Vakoc
Details
src doc (any would do) (98 bytes, text/xml)
2002-03-07 18:29 UTC, Mark Vakoc
Details
working version of stylesheet (1.17 KB, text/xml)
2002-03-07 19:24 UTC, Mark Vakoc
Details
crash causing version (1.09 KB, text/xml)
2002-03-07 19:24 UTC, Mark Vakoc
Details

Description Mark Vakoc 2002-03-07 18:28:02 UTC
Confirmed on both NT and rh 7.2

The following stylesheets causes a segfault w/ identical traces on both 
platforms.  

Crash Info (sorry, my unix skills aren't tip-top)

[root@slor tmp]# cat /proc/version
Linux version 2.4.7-10 (bhcompile@stripples.devel.redhat.com) (gcc version 
2.96
20000731 (Red Hat Linux 7.1 2.96-98)) #1 Thu Sep 6 17:27:27 EDT 2001

[mark@slor tmp]$ xsltproc --version
Using libxml 20416, libxslt 10009 and libexslt 702
xsltproc was compiled against libxml 20412, libxslt 10009 and libexslt 702
libxslt 10009 was compiled against libxml 20412
libexslt 702 was compiled against libxml 20412


[mark@slor tmp]$ gdb
GNU gdb Red Hat Linux (5.1-1)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux".
(gdb) file xlstproc
xlstproc: No such file or directory.
(gdb) file xsltproc
Reading symbols from xsltproc...(no debugging symbols found)...done.
(gdb) run style.xsl src.xml
Starting program: /usr/bin/xsltproc style.xsl src.xml
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x400b0fa0 in xmlStrEqual () from /usr/lib/libxml2.so.2
(gdb) backtrace
  • #0 xmlStrEqual
    from /usr/lib/libxml2.so.2
  • #1 xmlXPathNsLookup
    from /usr/lib/libxml2.so.2
  • #2 xmlXPathNodeCollectAndTest
    from /usr/lib/libxml2.so.2
  • #3 xmlXPathCompOpEval
    from /usr/lib/libxml2.so.2
  • #4 xmlXPathCompOpEval
    from /usr/lib/libxml2.so.2
  • #5 xmlXPathRunEval
    from /usr/lib/libxml2.so.2
  • #6 xmlXPathCompiledEval
    from /usr/lib/libxml2.so.2
  • #7 xsltEvalXPathPredicate
    from /usr/lib/libxslt.so.1
  • #8 xsltTestCompMatch
    from /usr/lib/libxslt.so.1
  • #9 xsltGetTemplate
    from /usr/lib/libxslt.so.1
  • #10 xsltProcessOneNode
    from /usr/lib/libxslt.so.1
  • #11 xsltApplyTemplates
    from /usr/lib/libxslt.so.1
  • #12 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #13 xsltIf
    from /usr/lib/libxslt.so.1
  • #14 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #15 xsltProcessOneNode
    from /usr/lib/libxslt.so.1
  • #16 xsltApplyTemplates
    from /usr/lib/libxslt.so.1
  • #17 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #18 xsltProcessOneNode
    from /usr/lib/libxslt.so.1
  • #19 xsltApplyTemplates
    from /usr/lib/libxslt.so.1
  • #20 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #21 xsltCopy
    from /usr/lib/libxslt.so.1
  • #22 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #23 xsltProcessOneNode
    from /usr/lib/libxslt.so.1
  • #24 xsltApplyTemplates
    from /usr/lib/libxslt.so.1
  • #25 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #26 xsltDocumentElem
    from /usr/lib/libxslt.so.1
  • #27 xsltApplyOneTemplate
    from /usr/lib/libxslt.so.1
  • #28 xsltProcessOneNode
    from /usr/lib/libxslt.so.1
  • #29 xsltApplyStylesheetInternal
    from /usr/lib/libxslt.so.1
  • #30 xsltApplyStylesheet
    from /usr/lib/libxslt.so.1
  • #31 xmlInitMemory
  • #32 xmlInitMemory
  • #33 __libc_start_main
    at ../sysdeps/generic/libc-start.c line 129

Comment 1 Mark Vakoc 2002-03-07 18:28:36 UTC
Created attachment 7025 [details]
initial stylesheet
Comment 2 Mark Vakoc 2002-03-07 18:29:06 UTC
Created attachment 7026 [details]
included stylesheet
Comment 3 Mark Vakoc 2002-03-07 18:29:33 UTC
Created attachment 7027 [details]
src doc (any would do)
Comment 4 Mark Vakoc 2002-03-07 19:24:01 UTC
Created attachment 7028 [details]
working version of stylesheet
Comment 5 Mark Vakoc 2002-03-07 19:24:30 UTC
Created attachment 7029 [details]
crash causing version
Comment 6 Mark Vakoc 2002-03-07 19:24:59 UTC
added works.xml and broken.xml, simplified versions that illustrate 
the problem and show a work-around 
Comment 7 Daniel Veillard 2002-03-08 11:19:41 UTC
Well for me attachment 7028 [details] and 7029 both work and
produce teh same result.
But the initial stylesheet leads to the crash, I will debug
from it:

paphio:~/tmp/73880 -> xsltproc --noout 7028.xsl doc.xml > res1
paphio:~/tmp/73880 -> xsltproc --noout 7029.xsl doc.xml > res2
paphio:~/tmp/73880 -> diff res1 res2
paphio:~/tmp/73880 -> xsltproc --noout 7025.xsl doc.xml > res3
Segmentation fault
paphio:~/tmp/73880 -> 
Comment 8 Daniel Veillard 2002-03-08 14:24:46 UTC
Okay, fixed in CVS:

http://cvs.gnome.org/bonsai/cvsquery.cgi?module=libxslt&branch=HEAD&branchtype=match&dir=libxslt&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=03%2F08%2F02+08%3A54&maxdate=03%2F08%2F02+08%3A56&cvsroot=%2Fcvs%2Fgnome

Let's say it was a stylesheet compilation error.
I also fixed the "fake" node generation error that your
stylesheets exhibited.

Daniel
Comment 9 Mark Vakoc 2002-03-10 19:55:45 UTC
verified through several tests that caused exhibited the problem 
(note:  unable to remove the dependencies of these tests for the 
test suite, if desired the included attachments could be used).
Comment 10 Daniel Veillard 2002-03-18 22:00:21 UTC
Should be fixed in libxslt-1.0.14 just released !

Daniel