GNOME Bugzilla – Bug 451542
Using xsltproc can bring the system load up to 10 and above.
Last modified: 2021-07-05 11:01:20 UTC
Using xsltproc on a specific type of large file can bring the system load to well above 10 on my system. I have never been able to get the command to complete without it completely hanging my system. It seems that the problem is related to how large various strings are within the XML file it's self. Steps to reproduce: 1. Run: cat log-small.xml | xsltproc svn2cl.xsl - 2. Observe that this takes only a few seconds to complete. 3. Run: cat log-large.xml | xsltproc svn2cl.xsl - 4. Observe that this hangs the machine. I will include all three files with this bug report.
Created attachment 90735 [details] The svn2cl.xsl stylesheet.
Created attachment 90736 [details] Small XML log file that works fine.
Created attachment 90737 [details] Large XML log file that doesn't work.
I cannot reproduce this - [bill@bbsf bug451542]$ xsltproc --version Using libxml 20629, libxslt 10121 and libexslt 813 xsltproc was compiled against libxml 20628, libxslt 10121 and libexslt 813 libxslt 10121 was compiled against libxml 20628 libexslt 813 was compiled against libxml 20628 [bill@bbsf bug451542]$ date;cat log-small.xml | xsltproc svn2c1.xsl - > /dev/null;date Wed Jun 27 07:32:53 PDT 2007 Wed Jun 27 07:32:55 PDT 2007 [bill@bbsf bug451542]$ date;cat log-large.xml | xsltproc svn2c1.xsl - > /dev/null;date Wed Jun 27 07:33:09 PDT 2007 Wed Jun 27 07:33:12 PDT 2007 [bill@bbsf bug451542]$ What OS are you using, and what versions of libxslt and libxml2?
I am running Ubuntu GNU/Linux. nslater@mahora: ~ $ xsltproc -V Using libxml 20627, libxslt 10120 and libexslt 813 xsltproc was compiled against libxml 20627, libxslt 10120 and libexslt 813 libxslt 10120 was compiled against libxml 20627 libexslt 813 was compiled against libxml 20627
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxslt/-/issues/ Thank you for your understanding and your help.