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 451542 - Using xsltproc can bring the system load up to 10 and above.
Using xsltproc can bring the system load up to 10 and above.
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-27 09:14 UTC by Noah Slater
Modified: 2021-07-05 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The svn2cl.xsl stylesheet. (14.77 KB, application/xml)
2007-06-27 09:18 UTC, Noah Slater
Details
Small XML log file that works fine. (130.69 KB, application/xml)
2007-06-27 09:19 UTC, Noah Slater
Details
Large XML log file that doesn't work. (395.04 KB, application/xml)
2007-06-27 09:20 UTC, Noah Slater
Details

Description Noah Slater 2007-06-27 09:14:38 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.
Comment 1 Noah Slater 2007-06-27 09:18:13 UTC
Created attachment 90735 [details]
The svn2cl.xsl stylesheet.
Comment 2 Noah Slater 2007-06-27 09:19:04 UTC
Created attachment 90736 [details]
Small XML log file that works fine.
Comment 3 Noah Slater 2007-06-27 09:20:15 UTC
Created attachment 90737 [details]
Large XML log file that doesn't work.
Comment 4 William M. Brack 2007-06-27 14:36:06 UTC
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?
Comment 5 Noah Slater 2007-06-27 15:03:50 UTC
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
Comment 6 GNOME Infrastructure Team 2021-07-05 11:01:20 UTC
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.