GNOME Bugzilla – Bug 73880
Crash possibly in namespace evaluation
Last modified: 2009-08-15 18:40:50 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
+ Trace 18825
Created attachment 7025 [details] initial stylesheet
Created attachment 7026 [details] included stylesheet
Created attachment 7027 [details] src doc (any would do)
Created attachment 7028 [details] working version of stylesheet
Created attachment 7029 [details] crash causing version
added works.xml and broken.xml, simplified versions that illustrate the problem and show a work-around
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 ->
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
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).
Should be fixed in libxslt-1.0.14 just released ! Daniel