Bug 51023

Summary: Building docs fails with libxml2.4.27
Product: [Websites] docs.kde.org Reporter: Lauri Watts <lauri>
Component: ksgmltoolsAssignee: Docbook Team <kde-docbook>
Status: RESOLVED FIXED    
Severity: crash CC: andy, heuving
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Lauri Watts 2002-11-22 01:18:43 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Current released version of libxml2, 2.4.27 cannot build the KDE docs.

Some of them pass, but most fail with a segfault.  top shows xmllint is taking up all the CPU.  xmllint eventually either hangs or coredumps.  

This is the same whether run from make or directly on the command line with the --check option.  Removing --check allows the documents to build.  

If you're testing, some documents that reliably fail for everyone who has tested are kdebase/kdesu and kdebase/kate 

backtrace is several hundred lines of this:
#0  0x280a15fc in xmlSetListDoc () from /usr/local/lib/libxml2.so.5
#1  0x280a15c2 in xmlSetTreeDoc () from /usr/local/lib/libxml2.so.5
#2  0x280a1603 in xmlSetListDoc () from /usr/local/lib/libxml2.so.5
#3  0x280a15a3 in xmlSetTreeDoc () from /usr/local/lib/libxml2.so.5
#4  0x280a1603 in xmlSetListDoc () from /usr/local/lib/libxml2.so.5
#5  0x280a15c2 in xmlSetTreeDoc () from /usr/local/lib/libxml2.so.5

Confirmed on FreeBSD -CURRENT, -STABLE and Gentoo Linux.
Comment 1 Stephan Kulow 2002-11-22 10:28:13 UTC
that's strange. The SuSE RPMs seems to build fine. Need to check if it 
makes a difference when compiled from source. Someone having the 
problem under Linux should try valgrind. 
Comment 2 Lauri Watts 2002-11-23 02:58:16 UTC
I've narrowed it down to something about the entities within entities (specifically, &kappname;)  
Removing this one single entity (&kappname;) appears to make it  start to work. 
 
&kappname; "&kdesu;" 
where kdesu is defined in the (external) general.entities file as 
<application>kdesu</application> 
 
And someone has reported this to libxml2 at: 
http://bugzilla.gnome.org/show_bug.cgi?id=99326 
Comment 3 Lauri Watts 2002-11-26 19:52:59 UTC
Patch to libxml2 is linked from the gnome bug above, and fixes the problem. 
Comment 4 Lauri Watts 2003-01-06 22:13:26 UTC
*** Bug 52677 has been marked as a duplicate of this bug. ***