Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62986 - gtkdoc-mkhtml segfault while calling xsltproc, cannot update my apps (especially gtk+-2.4.9)
Summary: gtkdoc-mkhtml segfault while calling xsltproc, cannot update my apps (especia...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-06 02:06 UTC by GarG
Modified: 2008-03-27 11:57 UTC (History)
4 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 GarG 2004-09-06 02:06:38 UTC
When I try to update my apps, currently GTK+-2.4.9 (but I experienced the same error with other apps), I get the following error :


/usr/bin/gtkdoc-mkhtml: line 45: 22458 Erreur de segmentation  /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.2" $gtkdocdir/gtk-doc.xsl $document


Here is a bigger chunck of the messages displayed :
===================================================


Making all in gdk-pixbuf
make[4]: Entering directory `/var/tmp/portage/gtk+-2.4.9/work/gtk+-2.4.9/docs/re
ference/gdk-pixbuf'
*** Scanning header files ***
if grep -l '^..*$' ./gdk-pixbuf.types > /dev/null ; then \
    CC="/bin/sh ../../../libtool --mode=compile gcc -I../../.. -I../../.. -I../.
./../gdk -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/gli
b-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freet
ype2 -I/usr/include/atk-1.0    -I/usr/X11R6/include      -march=athlon-xp -O2 -p
ipe -Wall" LD="/bin/sh ../../../libtool --mode=link gcc  -march=athlon-xp -O2 -p
ipe -Wall " CFLAGS="" LDFLAGS="../../../gdk-pixbuf/libgdk_pixbuf-2.0.la ../../..
/gdk/libgdk-x11-2.0.la ../../../gtk/libgtk-x11-2.0.la -L/usr/X11R6/lib -lX11  -l
pangoxft-1.0 -lpangox-1.0 -lpango-1.0 -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
 -lglib-2.0 -lm" gtkdoc-scangobj  --module=gdk-pixbuf --output-dir=. ; \
else \
    cd . ; \
    for i in gdk-pixbuf.args gdk-pixbuf.hierarchy gdk-pixbuf.interfaces gdk-pixb
uf.prerequisites gdk-pixbuf.signals ; do \
               test -f $i || touch $i ; \
    done \
fi
mkdir .libs
 gcc -I../../.. -I../../.. -I../../../gdk -DG_DISABLE_CAST_CHECKS -pthread -I/us
r/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X
11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/X11R6/includ
e -march=athlon-xp -O2 -pipe -Wall -c gdk-pixbuf-scan.c  -fPIC -DPIC -o .libs/gd
k-pixbuf-scan.o
gcc -march=athlon-xp -O2 -pipe -Wall -o .libs/gdk-pixbuf-scan .libs/gdk-pixbuf-s
can.o  ../../../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../../../gdk/.libs/libgdk-
x11-2.0.so -L/usr/X11R6/lib ../../../gtk/.libs/libgtk-x11-2.0.so /var/tmp/portag
e/gtk+-2.4.9/work/gtk+-2.4.9/gdk/.libs/libgdk-x11-2.0.so -lXrandr -lXi -lXineram
a -lXext -lXft -lXrender /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /
usr/lib/libexpat.so -lXcursor /var/tmp/portage/gtk+-2.4.9/work/gtk+-2.4.9/gdk-pi
xbuf/.libs/libgdk_pixbuf-2.0.so -lX11 /usr/lib/libpangoxft-1.0.so /usr/lib/libpa
ngox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libatk-1.0.so /usr/lib/libgobject-
2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lm
creating gdk-pixbuf-scan
cd . && \
  gtkdoc-scan --module=gdk-pixbuf --source-dir=../../../gdk-pixbuf --ignore-head
ers="pixops gdk-pixbuf-marshal.h gdk-pixbuf-xlib-private.h gdk-pixbuf-i18n.h gdk
-pixbuf-private.h io-gif-animation.h io-ani-animation.h test-images.h" --source-
dir=../../../contrib/gdk-pixbuf-xlib --deprecated-guards="GDK_PIXBUF_ENABLE_BROK
EN|GDK_PIXBUF_DISABLE_DEPRECATED" 
touch scan-build.stamp
*** Rebuilding template files ***
cd . && gtkdoc-mktmpl --module=gdk-pixbuf
=============================================================================
WARNING: 1 unused declarations.
  These can be found in gdk-pixbuf-unused.txt.
  They should be added to gdk-pixbuf-sections.txt in the appropriate place.
=============================================================================
touch tmpl-build.stamp
*** Building XML ***
cd . && \
gtkdoc-mkdb --module=gdk-pixbuf --source-dir=../../../gdk-pixbuf --output-format
=xml --main-sgml-file=gdk-pixbuf.sgml --sgml-mode --source-dir=../../../contrib/
gdk-pixbuf-xlib --output-format=xml
100% symbol docs coverage (142 symbols documented, 0 not documented)
See gdk-pixbuf-undocumented.txt for a list of missing docs.
The doc coverage percentage doesn't include intro sections.
touch sgml-build.stamp
*** Building HTML ***
rm -rf ./html 
mkdir ./html
cd ./html && gtkdoc-mkhtml gdk-pixbuf ../gdk-pixbuf.sgml
Computing chunks...
/usr/bin/gtkdoc-mkhtml: line 45: 22458 Erreur de segmentation  /usr/bin/xsltproc
 --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.v
ersion "1.2" $gtkdocdir/gtk-doc.xsl $document
make[4]: *** [html-build.stamp] Erreur 139
make[4]: Leaving directory `/var/tmp/portage/gtk+-2.4.9/work/gtk+-2.4.9/docs/ref
erence/gdk-pixbuf'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/var/tmp/portage/gtk+-2.4.9/work/gtk+-2.4.9/docs/ref
erence'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/gtk+-2.4.9/work/gtk+-2.4.9/docs'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-2.4.9/work/gtk+-2.4.9'
make: *** [all] Erreur 2

!!! ERROR: x11-libs/gtk+-2.4.9 failed.
!!! Function src_compile, Line 73, Exitcode 2
!!! (no error message)


I try to find any help on the web, but didn't find anything ! I cannot explain this segfault ! Please help


Reproducible: Always
Steps to Reproduce:
1. in a terminal : `emerge -uU gtk+`
2. 
3.

Actual Results:  
I get the following error :


/usr/bin/gtkdoc-mkhtml: line 45: 22458 Erreur de segmentation  /usr/bin/xsltproc
--nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam
gtkdoc.version "1.2" $gtkdocdir/gtk-doc.xsl $document


And the gtk+-2.4.9 compilation and installation process crashed in a segfault
and the portage process stop.


Expected Results:  
Correct compilation and installation of gtk+-2.4.9


Here is a list of main apps versions on my computer :

sys-apps/portage-2.0.50-r10
sys-devel/gcc-3.3.4-r1
sys-libs/glibc-2.3.4.20040808
x11-libs/gtk+-2.4.7
sys-apps/coreutils-5.2.1-r2
Comment 1 André Terpstra 2004-09-06 09:47:24 UTC
I can confirm this error.
Comment 2 foser (RETIRED) gentoo-dev 2004-09-07 05:48:46 UTC
always provide 'emerge info' in bugreports please... & what version of libxslt/libxml2 are u guys using ?

& well, if it's a reproducable crash, then get a backtrace from xsltproc .. 
Comment 3 Benjamin Collins 2004-09-07 18:52:08 UTC
I get the same error.

Here's my info:
yoda ~ # emerge info
Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) MP 2400+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype video_cards_radeon x86 xml2 xmms xv zlib"

yoda ~ # qpkg libxslt -i -I -v
dev-libs/libxslt-1.1.8-r1 *
        XSLT libraries and tools [ http://www.xmlsoft.org/ ]
Compiled with USE Flags: python


yoda ~ # qpkg libxml2 -i -I -v
dev-libs/libxml2-2.6.12 *
        Version 2 of the library to manipulate XML files [ http://www.xmlsoft.org/ ]
Compiled with USE Flags: python readline -ipv6 -debug
Comment 4 GarG 2004-09-07 23:39:35 UTC
version of libxslt/libxml2 :
---------------------------

dev-libs/libxslt-1.1.6
dev-libs/libxml2-2.6.12



`emerge info` :
--------------

 Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.4.26-gentoo-r3)
=================================================================
System uname: 2.4.26-gentoo-r3 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.gtlib.cc.gatech.edu/pub/gentoo/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib acpi aim apache2 apm avi cdr crypt cups dedicated dga directfb divx4linux doc dvb dvd emacs encode esd ethereal fastcgi fbcon fdftk fftw flac flash foomaticdb gb gd ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick imap imlib java joystick jpeg kde lcms leim libwww mad mcal mmx mozilla mpeg msn mule mysql ncurses nls nocd offensive oggvorbis opengl pam pdflib perl plotutils png ppds python qt quicktime readline ruby sasl scanner sdl slang snmp speex spell sse ssl svga tcltk tetex theora tiff truetype unicode usb videos wmf wxwindows x86 xface xml xml2 xmms xosd xv xvid yaz zlib"
Comment 5 GarG 2004-09-08 00:16:23 UTC
The update of dev-libs/libxslt from 1.1.6 to 1.1.9 seems to fixed the problem, at least for the update of gtk+ to version 2.4.9.

First I suspected 'gtkdoc-mkhtml' but it was a mistake, 'cause it is a shell script. So the segfault should have come from the binary invoked : 'xsltproc' and I think it was up-to-date, but it wasn't.

Sorry for all this mess !
 
Comment 6 foser (RETIRED) gentoo-dev 2004-09-08 04:19:44 UTC
it still shouldn't segv
Comment 7 GarG 2004-09-08 08:04:49 UTC
Yes ! Everything works fine, and my Gentoo is now fully updated !!!

Again, all my apologies for all this mess !

And thx for your help !
Comment 8 André Terpstra 2004-09-16 11:06:09 UTC
OK by accident I discovered that this bug had been solved, I had forgotten to put myself on the cc-list.

Anyway, although upgrading libxslt (in my case from 1.1.8-r1 to 1.1.9-r1) makes the emerge possible, I feel that a real solution would involve an effort on the Gentoo side, like a modification to the ebuild. Am I right in this?
Comment 9 Henrik Brix Andersen 2004-11-02 03:37:26 UTC
I can confirm the problem with dev-libs/libxslt-1.1.8. Upgrading to dev-libs/libxslt-1.1.9-r1 fixes it - haven't had time to investigate further.
Comment 10 Peter Simons 2004-11-05 09:41:10 UTC
dev-libs/libxslt-1.1.8 segfaults every time I call it, actually, and that only began happening after I emerged the recent libxml2 update. Upgrading libxslt to the latest unstable ~x86 version fixed the problem, but it definitely _does_ exist. I tried to compile with -O0 and all that, didn't make a difference. Now I run 1.1.9-r1.
Comment 11 Mike Gardiner (RETIRED) gentoo-dev 2004-11-05 18:22:09 UTC
Marked 1.1.9-r1 x86, which I had been meaning do to anyway. Thanks for the reports guys.
Comment 12 Darko Veberic 2008-03-14 10:22:43 UTC
xsltproc still crashes occasionally even for version 1.1.22
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-14 10:28:39 UTC
(In reply to comment #12)
> xsltproc still crashes occasionally even for version 1.1.22
> 

please provide your emerge --info when you have a problem and didn't paste it previously. If you're using -O3 like others in this bug report, then just lower your CFLAGS, gnome herd (and upstream) doesn't support optimization level above -O2
Comment 14 Darko Veberic 2008-03-14 14:27:22 UTC
for instance xsltproc version 1.1.22 fails while building doc for
dev-libs/glib-2.16.1
Comment 15 Darko Veberic 2008-03-14 14:31:03 UTC
# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.22-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Thu, 13 Mar 2008 11:47:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo http://ftp.heanet.ie/pub/gentoo ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/gentoo/overlay/portage.f9 /gentoo/overlay/portage.ung"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib accessibility accounting acl acpi admin afs aiglx aio alsa amarok amd64 amr amrnb amrwb ansi ao apache2 applet arts asf athena atlas avahi bash-completion beagle berkdb bidi binfilter bl blas bluetooth bonjour bonobo branding bzip2 cairo calendar canvas caps cddb cdio cdparanoia cdr cern chm cjk clamav cli colordiff console cpudetection cracklib crciprec crypt css ctype cups curl cyrus daap dba dbm dbox2 dbus dedicated deprecated designer-plugin device-mapper dga dia directfb diskio divx4linux djvu dlloader doc dri dssi dts dv dvb dvd dvdr dvi dxr3 edl eds elf elisp emacs emacs-w3 enblend enca encode esd exif exiv2 expat extensible fame fastcgi fat fbcon festival ffmpeg fftw filepicker firefox fits flac float font-server foomaticdb fortran fping freebox freetts ftp fuse gadu galago gcj gcl gd gdbm gif gimp gimpprint glitz gmp gnokii gnome gnuplot gnutls gphoto2 gpm gps graphviz groupwise gsf gstreamer gtk gtk2 gtkhtml guile hal hdhomerun hfs howl hpn htmlhandbook hyperestraier ical iconv idn ieee1394 ifp imagemagick imap imlib inkjar innodb inotify iodbc ipod ipv6 irda isdnlog ithreads ivtv jack java java5 javascript jfs jingle joystick jpeg jpeg2k junit kde kerberos keyring kig-scripting krb4 ktts ladspa lapack laptop latex lcd lcms ldap ldapsam libcaca libclamav libnotify libsamplerate lirc live lm_sensors logrotate lyx lzo mad maps math matroska mbox md5sum mdnsresponder-compat meanwhile messenger mfd-rewrites mhash midi mikmod mime mjpeg mmx mmxext mng modplug mono mozbranding mozdevelop mozilla mozsvg mp2 mp3 mp4 mpeg mpi mplayer msn mtp mudflap mule musepack musicbrainz mysql mysqli nagios-dns nagios-ntp nagios-ping nas nautilus ncurses nemesi network networking networkmanager newxkb njb nls nptl nptlonly nsplugin ntfs nvidia nxclient objc odbc odk ogg ole openal openexr opengl openmp oscar oss overlays pam pcmcia pcre pda pdf pear perl perlsuid php pic png pnm portaudio posix postfix postgres postgresql postscript povray ppds pppd prediction pulseaudio pvr python qq qt qt-static qt3 qt3support qt4 quicktime quotas radio rar rdesktop reaa readline reflection regex reiser4 reiserfs rpc rtc samba sasl sbcl scanner sdl seamonkey sendmail server session sift silc silvercity skey slang slp smime sms smux sndfile snmp soap solver sound sox speex spell spl sqlite srt sse sse2 ssl ssse3 startup-notification subtitles subversion svg sysvipc t1lib tcltk tcpd teletext tetex tga theora threads thunderbird tiff tk tokenizer transcode truetype truetype-fonts type1-fonts unicode upnp usb utempter utf8 v4l v4l2 vcd vhosts visualization vorbis wavpack webdav wifi wmf wxwindows x264 xanim xattr xcomposite xface xfs xim xine xinerama xml xml2 xmlreader xmlrpc xmlwriter xmp xorg xpm xscreensaver xv xvid xvmc zephyr zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy auth_digest authn_dbd asis cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http version" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 16 Darko Veberic 2008-03-14 14:45:53 UTC
i tried to reemerge xlstproc with -O1 but still the same segfault while building glib:

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: 15811 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.16.1/work/glib-2.16.1/docs/reference/glib'
Comment 17 A Sotirov 2008-03-27 11:57:19 UTC
(In reply to comment #16)
i had the same issue and i started to investigate it, the when i add an echo line in /usr/bin/gtkdoc-mkhtml (to replicate the seg fault) this fixed the seg fault. 

if $is_xml; then

  echo " module=>${module}< gtkdocdir=>${gtkdocdir}< doc=>${document}<" >> /root/xsltproc_debug
  /usr/bin/xsltproc --nonet --xinclude \
      --stringparam gtkdoc.bookname $module \
      --stringparam gtkdoc.version "1.8" \
      $gtkdocdir/gtk-doc.xsl $document || exit $?

else
  /usr/bin/openjade -t sgml-raw -w no-idref -d $gtkdocdir/gtk-doc.dsl \
      -V "gtkdoc-bookname=$module" -V "gtkdoc-version=1.8" \
      $gtkdocdir/gtk-doc.dcl $document || exit $?
fi

it is not a proper fix for xsltproc but apparently works with USE="doc" for all packages on my system.