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 99326 - xmllint version 2.4.27 hangs
xmllint version 2.4.27 hangs
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.4.25
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-11-23 00:30 UTC by schepler
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
KSysguard index.docbook file (18.05 KB, text/x-xml)
2002-11-23 00:31 UTC, schepler
Details

Description schepler 2002-11-23 00:30:24 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
Comment 1 schepler 2002-11-23 00:31:54 UTC
Created attachment 12493 [details]
KSysguard index.docbook file
Comment 2 Lauri Watts 2002-11-23 02:01:48 UTC
More information at http://bugs.kde.org/show_bug.cgi?id=51023 
 
Upgraded to version 2.4.28, but no change, unfortunately. 
 
Comment 3 Daniel Veillard 2002-11-23 10:57:33 UTC
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
Comment 5 Karl Eichwalder 2002-12-02 12:51:10 UTC
The URL above shows many a lot CVS checkings (I tried with mozilla).
I cannot test the patch.
Comment 6 Daniel Veillard 2002-12-02 13:52:08 UTC
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
Comment 7 Karl Eichwalder 2002-12-02 14:57:08 UTC
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
Comment 8 Daniel Veillard 2002-12-02 15:02:25 UTC
Yes that's that one :-)

Daniel
Comment 9 Daniel Veillard 2003-01-06 14:13:46 UTC
That should be closed in release 2.5.0,

  thanks,

Daniel