Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194089 - dev-libs/glib-2.14.1 - gtk-doc segmentation fault
Summary: dev-libs/glib-2.14.1 - gtk-doc segmentation fault
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 218648 219383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-28 13:53 UTC by David Bruha
Modified: 2009-01-20 15:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Bruha 2007-09-28 13:53:49 UTC
When trying to upgrade glib with "doc" useflag following error occurs:

Writing glib.devhelp2 for book(index)
/usr/bin/gtkdoc-mkhtml: line 46: 28106 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.8" $gtkdocdir/gtk-doc.xsl $document
make[4]: *** [html-build.stamp] Error 139
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs/reference/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs/reference'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1'
make: *** [all] Error 2
 *
 * ERROR: dev-libs/glib-2.14.1 failed.
 * Call stack:
 *            ebuild.sh, line 1684:  Called dyn_compile
 *            ebuild.sh, line 1020:  Called qa_call 'src_compile'
 *            ebuild.sh, line   44:  Called src_compile
 *   glib-2.14.1.ebuild, line   67:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed


Reproducible: Always

Steps to Reproduce:
1.emerge -u glib
2.
3.




I have tried to re-emerge jade, openjade, jadetex, libxslt, gtk-doc and (which I have also found at the forums) emerged gnome-doc-utils.

I assume as a workaround I can turn off the "doc" use flag but I would really like to know how to fix this.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-09-28 15:46:52 UTC
works for me. Could you not forget to add your emerge --info please ?
Comment 2 David Bruha 2007-09-29 12:39:56 UTC
My "emerge --info" follows. Wasn't at the computer until now.

Portage 2.1.3.10 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Timestamp of tree: Fri, 28 Sep 2007 09:29:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://pandemonium.tiscali.de/pub/gentoo/"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LINGUAS="en cs"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi acpi4linux alsa apache2 arts artswrappersuid audiofile berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt ctype cups curl cvs cvsgraph dba dbus divx4linux doc dri dvd dvdr dvdread eds emboss encode enscript esd evo exif fam ffmpeg firefox flac font-server fortran ftp gd gdbm gif gnokii gnutls gphoto2 gpm gsm gtk hal iconv idn ieee1394 imagemagick imlib innodb irda isdnlog java jpeg jpeg2k kde kerberos lcms ldap libcaca lm_sensors mad madwifi midi mikmod mmx mng mnogosearch mp3 mpeg mudflap mysql mysqli ncurses nls nogecko-sdk nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pascal pcmcia pcre pdf pear perl perlsuid php png postgres pppd python qt3 qt3support qt4 quicktime rdesktop readline real reflection samba sasl sdl session silvercity simplexml slang slp sms snmp spell spl sql sse sse2 ssl subversion svg svga sysfs tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 vhosts vorbis wifi win32codecs wma wma123 wmf x86 xine xml xorg xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2007-09-29 14:26:37 UTC
CFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"

Try rebuilding gtk-doc and what not (ideally your whole system) with _sane_ use flags. Please reopen once this is done and if you can reproduce the bug.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-09-30 19:46:38 UTC
namely this means try rebuilding without -fprefetch-loop-arrays.
These flags doesn't look really aggressive but gnome herd (and upstream) limits valid bug reports to -02, -march/cpu and -pipe (and of course debugging flags)
Comment 5 David Bruha 2007-10-01 08:39:07 UTC
I have tried to follow Your suggestions and reset the CFLAGS to CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe", gcc copiler set to 4.1.2 and rebuilt the whole system (emerge -e system). After that I have also rebuilt the gtk-doc and gnome-doc-utils.

I'm afraid the problem is still there, it has to be connected to some other package.

The error message (USE="doc" emerge glib):

Writing glib.devhelp2 for book(index)
/usr/bin/gtkdoc-mkhtml: line 46: 26660 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.8" $gtkdocdir/gtk-doc.xsl $document
make[4]: *** [html-build.stamp] Error 139
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs/reference/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs/reference'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1'
make: *** [all] Error 2
*
* ERROR: dev-libs/glib-2.14.1 failed.
* Call stack:
*            ebuild.sh, line 1684:  Called dyn_compile
*            ebuild.sh, line 1020:  Called qa_call 'src_compile'
*            ebuild.sh, line   44:  Called src_compile
*   glib-2.14.1.ebuild, line   67:  Called die
* The specific snippet of code:
*      emake || die "make failed"
*  The die message:
*   make failed

Current emerge --info output:

Portage 2.1.3.11 (default-linux/x86/2007.0/desktop, gcc-4.1.2/vanilla, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Timestamp of tree: Sat, 29 Sep 2007 12:30:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://pandemonium.tiscali.de/pub/gentoo/"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LINGUAS="en cs"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi acpi4linux alsa apache2 arts artswrappersuid audiofile berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt ctype cups curl cvs cvsgraph dba dbus divx4linux doc dri dvd dvdr dvdread eds emboss encode enscript esd evo exif fam ffmpeg firefox flac font-server fortran ftp gd gdbm gif gnokii gnutls gphoto2 gpm gsm gtk hal iconv idn ieee1394 imagemagick imlib innodb irda isdnlog java jpeg jpeg2k kde kerberos lcms ldap libcaca lm_sensors mad madwifi midi mikmod mmx mng mnogosearch mp3 mpeg mudflap mysql mysqli ncurses nls nogecko-sdk nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pascal pcmcia pcre pdf pear perl perlsuid php png postgres pppd python qt3 qt3support qt4 quicktime rdesktop readline real reflection samba sasl sdl session silvercity simplexml slang slp sms snmp spell spl sql sse sse2 ssl subversion svg svga sysfs tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 vhosts vorbis wifi win32codecs wma wma123 wmf x86 xine xml xorg xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2007-10-01 17:59:53 UTC
could you try rebuilding like so :

LANG=C emerge -1 glib

NB, -fomit-frame-pointer is already included by -O2, no need to add it
Comment 7 David Bruha 2007-10-02 12:10:39 UTC
I'm afraid the result is still the same. I have the doc use flag turned off now for glib so I had to issue 'LANG=C USE="doc" emerge -1 glib' but I think that makes no difference.
Comment 8 bagrx 2007-10-13 09:00:51 UTC
I have the same problem...

Writing glib.devhelp2 for book(index)
PBM: doc == NULL !!!
element nbktext: error : Node has no doc
element nbktext: error : Node doc differs from parent's one
element nbktext: error : Node prev->next : back link wrong
element nbktext: error : Node has no next and not last of parent list
/usr/bin/gtkdoc-mkhtml: line 46: 24710 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.8" $gtkdocdir/gtk-doc.xsl $document
make[4]: *** [html-build.stamp] Error 139
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs/reference/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs/reference'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.14.1/work/glib-2.14.1'
make: *** [all] Error 2
 *
 * ERROR: dev-libs/glib-2.14.1 failed.
 * Call stack:
 *            ebuild.sh, line 1687:  Called dyn_compile
 *            ebuild.sh, line 1025:  Called qa_call 'src_compile'
 *            ebuild.sh, line   44:  Called src_compile
 *   glib-2.14.1.ebuild, line   67:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/glib-2.14.1/temp/build.log'.
 *
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-11-10 13:16:19 UTC
btw, which version of gtk-doc are you guys using ?
Comment 10 David Bruha 2007-11-11 18:43:23 UTC
dev-util/gtk-doc-1.8-r2
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-02-28 23:14:02 UTC
is this fixed in newer version of glib ? (2.14.6)
I had no problem with these but who knows...
Comment 12 Andrej Filipcic 2008-04-04 20:00:12 UTC
This problem reappeared for me after long time. I have traced it to be a sandbox problem. The system is up-to-date ~amd64. 

When compiling gconf-2.22.0 in sandbox: 
brenta html # /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname gconf --stringparam gtkdoc.version 1.10 /usr/share/gtk-doc/data/gtk-doc.xsl ../gconf-docs.sgml
Computing chunks...
Writing gconf-GConfClient.html for refentry(gconf-GConfClient)
Writing gconf-gconf-backend.html for refentry(gconf-gconf-backend)
Writing gconf-gconf-engine.html for refentry(gconf-gconf-engine)
Writing gconf-gconf-error.html for refentry(gconf-gconf-error)
Writing gconf-gconf-internals.html for refentry(gconf-gconf-internals)
Writing gconf-gconf-listeners.html for refentry(gconf-gconf-listeners)
Writing gconf-gconf-schema.html for refentry(gconf-gconf-schema)
Writing gconf-gconf-sources.html for refentry(gconf-gconf-sources)
Writing gconf-gconf-value.html for refentry(gconf-gconf-value)
Writing gconf-gconf.html for refentry(gconf-gconf)
Writing gconf-gconf-locale.html for refentry(gconf-gconf-locale)
Writing gconf-gconf-changeset.html for refentry(gconf-gconf-changeset)
Writing ch01.html for chapter
Writing index.html for book(index)
Writing index.sgml for book(index)
Writing gconf.devhelp for book(index)
Writing gconf.devhelp2 for book(index)
Segmentation fault
gdb info:
Program received signal SIGSEGV, Segmentation fault.
0x00002b3a2071dde0 in __xmlRaiseError () from /usr/lib/libxml2.so.2

The same with no sandbox:
brenta html # /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname gconf --stringparam gtkdoc.version 1.10 /usr/share/gtk-doc/data/gtk-doc.xsl ../gconf-docs.sgml
Computing chunks...
Writing gconf-GConfClient.html for refentry(gconf-GConfClient)
Writing gconf-gconf-backend.html for refentry(gconf-gconf-backend)
Writing gconf-gconf-engine.html for refentry(gconf-gconf-engine)
Writing gconf-gconf-error.html for refentry(gconf-gconf-error)
Writing gconf-gconf-internals.html for refentry(gconf-gconf-internals)
Writing gconf-gconf-listeners.html for refentry(gconf-gconf-listeners)
Writing gconf-gconf-schema.html for refentry(gconf-gconf-schema)
Writing gconf-gconf-sources.html for refentry(gconf-gconf-sources)
Writing gconf-gconf-value.html for refentry(gconf-gconf-value)
Writing gconf-gconf.html for refentry(gconf-gconf)
Writing gconf-gconf-locale.html for refentry(gconf-gconf-locale)
Writing gconf-gconf-changeset.html for refentry(gconf-gconf-changeset)
Writing ch01.html for chapter
Writing index.html for book(index)
Writing index.sgml for book(index)
Writing gconf.devhelp for book(index)
Writing gconf.devhelp2 for book(index)
file:///usr/share/sgml/docbook/xsl-stylesheets/html/glossary.xsl:0: error : Unknown node type 25375088
file:///usr/share/sgml/docbook/xsl-stylesheets/html/math.xsl:5: element stylesheet: error : Reference to namespace 'mml' not in scope

Although there are some errors, the package compiles fine without sandbox.

Every gnome-2.22 package segfaults in xsltproc (except glib)
I have tried to remove and reinstall all docbook packages which had no effect.
Is it possible it is due to some orphan (docbook or similar) file? Two years ago I have solved the problem by reinstalling the system from scratch from precompiled binary packages.
Comment 13 Jan Kundrát (RETIRED) gentoo-dev 2008-04-20 21:50:05 UTC
*** Bug 218648 has been marked as a duplicate of this bug. ***
Comment 14 Jan Kundrát (RETIRED) gentoo-dev 2008-04-27 12:21:58 UTC
*** Bug 219383 has been marked as a duplicate of this bug. ***
Comment 15 Marcin Gryszkalis 2008-04-27 12:33:47 UTC
I reported this in bug 219383 (marked duplicate), here's copy of stacktrace (making odcs for liboil)

message:
/usr/bin/gtkdoc-mkhtml: line 53: 30420 Segmentation fault     
/usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module
--stringparam gtkdoc.version "1.10" $gtkdocdir/gtk-doc.xsl $document

stacktrace:
#0  0x40123443 in __xmlRaiseError (schannel=0, channel=0, data=0x0, ctx=0x0,
nod=0x8acbf68, domain=24, code=5011, level=XML_ERR_ERROR, file=0x0, line=0,
str1=0x0, str2=0x0, str3=0x0, int1=0,
    col=0, msg=0x401f95ee "Unknown node type %d\n") at error.c:515
#1  0x40165191 in xmlDebugErr2 (ctxt=<value optimized out>, error=145538920,
msg=0x8acbf68 "�S�\b", extra=0) at debugXML.c:171
#2  0x4016654a in xmlCtxtDumpOneNode (ctxt=0xbff6b9a0, node=0x8acbf68) at
debugXML.c:1010
#3  0x40167604 in xmlCtxtDumpNode (ctxt=0xbff6b9a0, node=0x8acbf68) at
debugXML.c:1067
#4  0x401676d6 in xmlCtxtDumpNodeList (ctxt=0xbff6b9a0, node=0x8acbf68) at
debugXML.c:1088
#5  0x40167626 in xmlCtxtDumpNode (ctxt=0xbff6b9a0, node=0x8acfc20) at
debugXML.c:1071
#6  0x401676d6 in xmlCtxtDumpNodeList (ctxt=0xbff6b9a0, node=0x8acbf68) at
debugXML.c:1088
#7  0x40167626 in xmlCtxtDumpNode (ctxt=0xbff6b9a0, node=0x8abb158) at
debugXML.c:1071
#8  0x401676d6 in xmlCtxtDumpNodeList (ctxt=0xbff6b9a0, node=0x8acbf68) at
debugXML.c:1088
#9  0x4016786b in xmlCtxtDumpDocument (ctxt=0xbff6b9a0, doc=0x8abb0f8) at
debugXML.c:1222
#10 0x401678ec in xmlDebugCheckDocument__internal_alias (output=0x40381560,
doc=0x8abb0f8) at debugXML.c:1580
#11 0x401430ff in xmlFreeDoc__internal_alias (cur=0x8abb0f8) at tree.c:1185
#12 0x400679d3 in xsltFreeStyleDocuments (style=0x80823b8) at documents.c:244
#13 0x40051ddd in xsltFreeStylesheet (style=0x80823b8) at xslt.c:947
#14 0x40051f27 in xsltFreeStylesheet (style=0x8081770) at xslt.c:831
#15 0x40051f27 in xsltFreeStylesheet (style=0x8059890) at xslt.c:831
#16 0x0804a450 in main (argc=11, argv=0xbff6bbd4) at xsltproc.c:867

(gdb) p *doc
$3 = {_private = 0x0, type = XML_DOCUMENT_NODE, name = 0x0, children =
0x8abb158, last = 0x8abb038, parent = 0x0, next = 0x0, prev = 0x0, doc =
0x8abb0f8, compression = -1, standalone = -2,
  intSubset = 0x8abb158, extSubset = 0x0, oldNs = 0x0, version = 0x88b7228
"1.0", encoding = 0x0, ids = 0x0, refs = 0x0,
  URL = 0x8abaf88
"file:///usr/share/sgml/docbook/xsl-stylesheets/html/glossary.xsl", charset =
1, dict = 0x80500e0, psvi = 0x0}
Comment 16 Arun Raghavan (RETIRED) gentoo-dev 2008-06-13 21:18:33 UTC
> Every gnome-2.22 package segfaults in xsltproc (except glib)
> I have tried to remove and reinstall all docbook packages which had no effect.
> Is it possible it is due to some orphan (docbook or similar) file? Two years
> ago I have solved the problem by reinstalling the system from scratch from
> precompiled binary packages.

I assume you've tried rebuilding libxslt?
Comment 17 Andrej Filipcic 2008-06-14 09:26:56 UTC
(In reply to comment #16)
> 
> I assume you've tried rebuilding libxslt?
> 
Yes sure. Actually, I have tried to rebuild the packages with USE=doc today and it turned out that some of them now build successfully. 

Those ones which still do not build with USE=doc:
gnome-base/libbonobo-2.22.0
x11-libs/gtksourceview-2.2.1
gnome-base/gnome-vfs-2.22.0
gnome-base/libgnome-2.22.0
gnome-base/gnome-keyring-2.22.2
gnome-base/libbonoboui-2.22.0
gnome-base/libgnomeui-2.22.1
gnome-base/librsvg-2.22.2
gnome-base/gnome-desktop-2.22.2
gnome-extra/at-spi-1.22.1
media-video/ogmrip-0.11.2-r1
xfce-base/xfdesktop-4.4.2-r2
www-client/epiphany-2.22.2
Comment 18 Marcin Gryszkalis 2008-06-14 09:37:45 UTC
I my case it seems that it resolved itself too. I don't know what was the cure.
Comment 19 Marcin Gryszkalis 2008-06-15 21:31:43 UTC
above statement was too quick, it still fails on some of packages (though it may be different error):
for gnome-base/gnome-vfs I get

Writing gnome-vfs-2.0.devhelp2 for book(index)
error : Node doc differs from parent's one
/usr/bin/gtkdoc-mkhtml: line 53: 16491 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.10" $gtkdocdir/gtk-doc.xsl $document
Comment 20 Rémi Cardona (RETIRED) gentoo-dev 2008-08-25 22:08:02 UTC
Well, the only thing left to do here is to rebuild libxstl (maybe more) with debug symbols (instructions on how to do so are here : http://www.gentoo.org/proj/en/qa/backtraces.xml) and run the failing command manually inside /var/tmp/portage/... using debug tools such as strace and gdb.

Since none of us can reliably reproduce this bug, we're going to need your help if you want us to be able to fix this one.

Please *do* reopen this bug once you have any debug information about this crash.

Thanks
Comment 21 Andrej Filipcic 2008-09-03 10:15:20 UTC
Now it started to happen with sys-apps/hal-0.5.11-r1 build. Running in doc/api/libhal/html the following command:
/opt/libxslt/bin/xsltproc -v --debug --nonet --xinclude --stringparam gtkdoc.bookname libhal --stringparam gtkdoc.version 1.10 /usr/share/gtk-doc/data/gtk-doc.xsl ../libhal-docs.xml
produces the following segfault:
...
Wrote 16323 bytes to libhal.devhelp2
freeing dictionary from stylesheet
call-template returned: name write.chunk
call-template returned: name generate.devhelp2
xsltIf: test $tex.math.in.alt != ''
Lookup variable 'tex.math.in.alt'
found variable 'tex.math.in.alt'
xsltIf: test evaluate to 0
xsltIf: test $generate.manifest != 0
Lookup variable 'generate.manifest'
found variable 'generate.manifest'
xsltIf: test evaluate to 0
Shutting down module : http://icl.com/saxon
freeing transformation dictionary
HTML DOCUMENT
standalone=true
freeing dictionary from stylesheet
Segmentation fault (core dumped)

stacktrace:
gdb) where
#0  0x00007f7505bb25bf in __xmlRaiseError () from /usr/lib/libxml2.so.2
#1  0x00007f7505bfb4d3 in ?? () from /usr/lib/libxml2.so.2
#2  0x00007f7505bfc46e in ?? () from /usr/lib/libxml2.so.2
#3  0x00007f7505bfc513 in ?? () from /usr/lib/libxml2.so.2
#4  0x00007f7505bfc499 in ?? () from /usr/lib/libxml2.so.2
#5  0x00007f7505bfc513 in ?? () from /usr/lib/libxml2.so.2
#6  0x00007f7505bfc499 in ?? () from /usr/lib/libxml2.so.2
#7  0x00007f7505bfc8eb in ?? () from /usr/lib/libxml2.so.2
#8  0x00007f7505bfc9c1 in xmlDebugCheckDocument () from /usr/lib/libxml2.so.2
#9  0x00007f7505bd5698 in xmlFreeDoc () from /usr/lib/libxml2.so.2
#10 0x00007f7506585f67 in xsltFreeStyleDocuments (style=0x65c570)
    at documents.c:239
#11 0x00007f7506565037 in xsltFreeStylesheet (style=0x65c570) at xslt.c:947
#12 0x00007f7506564f71 in xsltFreeStylesheetList (style=0x65c570) at xslt.c:831
#13 0x00007f750656522f in xsltFreeStylesheet (style=0x65c150) at xslt.c:980
#14 0x00007f7506564f71 in xsltFreeStylesheetList (style=0x65c150) at xslt.c:831
#15 0x00007f750656522f in xsltFreeStylesheet (style=0x613670) at xslt.c:980
#16 0x0000000000403b6f in main (argc=11, argv=0x7fff0e9ba6f8) at xsltproc.c:867

I have tried to compile dev-libs/libxslt-1.1.24-r1 with several gcc versions (3.4.6, 4.3.1-r1) resulting in the same crash. The trace above is for libxslt compiled "by hand" with debugging and no optimization (unpatched 1.1.24).

It seems that xsltproc crashes on cleanup/exit.
Comment 22 Marcin Gryszkalis 2008-12-13 16:54:38 UTC
Still having problem with this error here and there, this time I cannot build app-text/docbook-xsl-stylesheet (I removed it to check something else).

Writing /tmp/smoketest-output/jhelpidx.xml
/bin/sh: line 1: 13925 Segmentation fault      (core dumped) xsltproc --stringparam base.dir /tmp/smoketest-output/ --param manifest.in.base.dir 1 $stylesheet tests/refentry.007.ns.xml
/bin/sh: line 1: 13928 Segmentation fault      (core dumped) xsltproc --stringparam base.dir /tmp/smoketest-output/ --param manifest.in.base.dir 1 $stylesheet

backtrace will follow.
Comment 23 Marcin Gryszkalis 2008-12-13 17:10:02 UTC
#0  __xmlRaiseError (schannel=0, channel=0, data=0x0, ctx=0x0, nod=0x9724e18, domain=24, code=5017, level=XML_ERR_ERROR, file=0x0, line=0, str1=0x0, str2=0x0, str3=0x0, int1=0, col=0,
    msg=0x40224ed0 "Node doc differs from parent's one\n") at error.c:555

/usr/src/debug/dev-libs/libxml2-2.7.2-r1/libxml2-2.7.2/error.c
555                     if (prev->type == XML_XINCLUDE_START) {

#1  0x4017fcfc in xmlCtxtGenericNodeCheck (ctxt=0xbfda2768, node=0x9724e18) at debugXML.c:161
#2  0x40181808 in xmlCtxtDumpNode (ctxt=0xbfda2768, node=0x1399) at debugXML.c:1068
#3  0x4018187e in xmlCtxtDumpNodeList (ctxt=0xbfda2768, node=0x9724e18) at debugXML.c:1089
#4  0x4018182a in xmlCtxtDumpNode (ctxt=0xbfda2768, node=0x9729978) at debugXML.c:1072
#5  0x4018187e in xmlCtxtDumpNodeList (ctxt=0xbfda2768, node=0x9729978) at debugXML.c:1089
#6  0x4018182a in xmlCtxtDumpNode (ctxt=0xbfda2768, node=0x9712530) at debugXML.c:1072
#7  0x40181bdd in xmlCtxtDumpDocument (ctxt=0xbfda2768, doc=<value optimized out>) at debugXML.c:1089
#8  0x40181c9d in xmlDebugCheckDocument__internal_alias (output=0x403bb560, doc=0x9712498) at debugXML.c:1581
#9  0x4015b229 in xmlFreeDoc__internal_alias (cur=0x9712498) at tree.c:1192
#10 0x40079090 in xsltFreeStyleDocuments (style=0x8dae640) at documents.c:239
#11 0x40061f32 in xsltFreeStylesheet (style=0x8dae640) at xslt.c:947
#12 0x4006204c in xsltFreeStylesheet (style=0x8dadce0) at xslt.c:831
#13 0x4006204c in xsltFreeStylesheet (style=0x8d78340) at xslt.c:831
#14 0x0804a39c in main (argc=8, argv=0xbfda29d4) at xsltproc.c:867

(gdb) p prev
$1 = (xmlNodePtr) 0x21

Comment 24 Marcin Gryszkalis 2009-01-20 15:21:09 UTC
see bug 240924