GNOME Bugzilla – Bug 99326
xmllint version 2.4.27 hangs
Last modified: 2009-08-15 18:40:50 UTC
When I try building kde3.1, xmllint hangs trying to process the ksysguard docs from kdebase. (Or at least, it takes over 5 minutes CPU time on a small xml file.) The command line used is: /usr/bin/xmllint --catalogs --valid --noout index.docbook
Created attachment 12493 [details] KSysguard index.docbook file
More information at http://bugs.kde.org/show_bug.cgi?id=51023 Upgraded to version 2.4.28, but no change, unfortunately.
The XML file is not sufficient. I don't have your catalogs, your DOCTYPE Public ID is not registered, your systeme ID is a relative URI ... Useless ... I can't reproduce it ! I of course get tons of validity error messages when running that command. I tried to reproduce the problem with a small test case but it does not fail for me and there is no way I can try to find your problem considering all the missing pieces in your report !!! paphio:~/XML -> xmllint --valid test.xml <?xml version="1.0"?> <!DOCTYPE book SYSTEM "book.dtd" [ <!ENTITY kappname "&ksysguard;"> ]> <book> &ksysguard; </book> paphio:~/XML -> cat book.dtd <!ELEMENT book (#PCDATA)> <!ENTITY ksysguard "foo"> paphio:~/XML -> cat test.xml <?xml version="1.0" ?> <!DOCTYPE book SYSTEM "book.dtd" [ <!ENTITY kappname "&ksysguard;"> ]> <book> &ksysguard; </book> paphio:~/XML -> xmllint --valid --noout test.xml paphio:~/XML -> I can't reproduce it, make the effort of providing a small test case reproducing the problem, I cannot debug purely on guesswork ! Daniel
Apparently, this patch fixes the problem, http://cvs.gnome.org/bonsai/cvsquery.cgi?module=gnome-xml&branch=HEAD&branchtype=match&dir=gnome-xml&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=11%2F25%2F02+08%3A19&maxdate=11%2F25%2F02+08%3A21&cvsroot=%2Fcvs%2Fgnome Daniel
The URL above shows many a lot CVS checkings (I tried with mozilla). I cannot test the patch.
Well if the KDE folks were using the xml@gnome.org list as suggested for bug reporting and communication with me on the topic of libxml well I could have pointed you at the list archive. Bonsai seems broken, hence the problem. You can find the patch in gnome CVS base, module gnome-xml, Daniel
Thanks for the info. I guess this one is meant (I'll give it a try): From: Daniel Veillard <veillard@redhat.com> Subject: Re: Bug Report : xmllint (libxml2-2.4.27) - Entity in Entity processing To: Peter Bray <pdb_ml@yahoo.com.au> Cc: xml@gnome.org Reply-To: veillard@redhat.com Date: Thu, 28 Nov 2002 04:02:06 -0500 http://cvs.gnome.org/bonsai/cvsview2.cgi?command=DIFF&subdir=gnome-xml&file=parser.c&rev1=1.230&rev2=1.231&whitespace_mode=show&diff_mode=context
Yes that's that one :-) Daniel
That should be closed in release 2.5.0, thanks, Daniel