GNOME Bugzilla – Bug 459713
Crashes on some docbook transformations
Last modified: 2007-07-26 19:52:16 UTC
Steps to reproduce: This has been reported as Debian bug #434300 I'm going to attach the tarball the bug reporter attached there. Decompress the tarball and run make from within the directory it creates (you need docbook-xsl installed on your system, or to change the Makefiles to remove --nonet option). xsltproc will crash during processing. Investigation shows it crashes on access to free'd namespace structures. They are freed by the code added by this change: http://svn.gnome.org/viewcvs/libxslt/trunk/libxslt/xslt.c?view=diff&r1=1428&r2=1429 It doesn't crash with 1.1.20, and I also confirmed it doesn't crash with 1.1.21 with this patch reverted. Stack trace: Other information:
Created attachment 92257 [details] testcase It would be better if i actually attached the tarball...
I was able to reduce the size of the example a lot so I can present a really small example, that shows the segmentation fault. Interesting: If you remove one (or both) of the empty templates, than xsltproc succeeds. Simply run xsltproc -o test.html test_459713.xsl test_459713.xml (I'm running it with the current docbook-xsl release 1.73.0, if that's important).
Created attachment 92462 [details] Simpler example to reproduce the problem. A more simple example.
I reverted the change to libxslt/xslt.c from the specified SVN revision. Since this change was only to fix a problem found in a debugging environment, there should not be any noticible ill-effects from removing it.