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.
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.
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
Patch to libxml2 is linked from the gnome bug above, and fixes the problem.
*** Bug 52677 has been marked as a duplicate of this bug. ***