Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217600 - meinproc segfaults during emerge of several packages
Summary: meinproc segfaults during emerge of several packages
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 217608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-14 08:58 UTC by Gen2
Modified: 2008-05-16 08:48 UTC (History)
0 users

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 Gen2 2008-04-14 08:58:42 UTC
Since a few weeks ago every program that uses meinproc during emerge-phase failes to build. Examples for affected programs would be k3b or kile. After asking around in Gentoo Forums and KDE-Bugzilla didn't provide any solution (one KDE-dev more or less told me that i'm f***ed because we use gentoo here) i thought it's time to file a bug here. 

E.g this is what i get when i try to emerge kile:

emerge kile

...
Making all in doc
make[2]: Entering directory `/var/tmp/portage/app-editors/kile-2.0/work/kile-2.0
/doc'
/usr/kde/3.5/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
/bin/sh: line 1: 18841 Segmentation fault      /usr/kde/3.5/bin/meinproc --check
 --cache index.cache.bz2 ./index.docbook
make[2]: *** [index.cache.bz2] Error 139
make[2]: Leaving directory `/var/tmp/portage/app-editors/kile-2.0/work/kile-2.0/
doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-editors/kile-2.0/work/kile-2.0'
make: *** [all] Error 2
...

So i enabled debugging symbols and reemerged kdelibs, libxml, libz and glibc such that i get useful output from gdb. If i run gdb using the command '/usr/kde/3.5/bin/meinproc --check --cache index.cache.bz2 ./index.docbook' i get this (ouput including backtrace):

(gdb) run --check --cache index.cache.bz2 ./index.docbook
Starting program: /usr/kde/3.5/bin/meinproc --check --cache index.cache.bz2 ./in
dex.docbook
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread 0xb663a6f0 (LWP 18918)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb663a6f0 (LWP 18918)]
0xb66963d7 in _IO_seekoff_unlocked (fp=0x80ab688, offset=0, dir=0, mode=3)
    at ioseekoff.c:71
71      ioseekoff.c: No such file or directory.
        in ioseekoff.c
(gdb) bt
#0  0xb66963d7 in _IO_seekoff_unlocked (fp=0x80ab688, offset=0, dir=0, mode=3)
    at ioseekoff.c:71
#1  0xb669c063 in *__GI_fseek (fp=0x80ab688, offset=0, whence=0) at fseek.c:41
#2  0xb6883246 in gzrewind (file=0x80ab610) at gzio.c:873
#3  0xb69065e1 in __xmlParserInputBufferCreateFilename ()
   from /usr/lib/libxml2.so.2
#4  0x00000000 in ?? ()

As it was suggested to reemerge libxml, libxml2, libxslt and kdelibs i did that and this are the versions that are installed:

[ebuild   R   ] dev-libs/libxml2-2.6.30-r1  USE="ipv6 python readline -bootstrap -build -debug -doc -test" 0 kB 
[ebuild   R   ] dev-libs/libxml-1.8.17-r2  USE="-doc" 0 kB 
[ebuild   R   ] dev-libs/libxslt-1.1.22  USE="crypt python -debug -examples" 0 kB 
[ebuild   R   ] kde-base/kdelibs-3.5.9  USE="acl cups debug -alsa -arts -avahi -bindist -branding -doc -fam -jpeg2k -kdeenablefinal -kdehiddenvisibility -kerberos -legacyssl -lua -openexr -spell -tiff -utempter -xinerama" 0 kB 

I tried newer versions of libxml2 but that didn't help

As i'm kinda out of ideas what could be wrong i'm open for any input i could get...

Emerge --info

 emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.19-gen
too-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Wed, 09 Apr 2008 10:32:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
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.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-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -funroll-loops -g -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon
f /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -funroll-loops -g -ggdb
"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sfperms strict unmer
ge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gento
o/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/li
nux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LINGUAS="de"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/gup
 /usr/local/portage"
SYNC="rsync://hermes/gentoo-portage"
USE="X acl avi berkdb cli cracklib crypt cups dri dvd f77 font-server foomatic f
ortran gdbm gif gimpprint gpm gtk iconv ipv6 isdnlog jpeg kde kerberos ldap libc
aca maildir midi mmx mozilla mpi mudflap ncurses network nls nptl nptlonly openg
l openmp pam pcre perl ppds pppd python readline real reflection sasl scanner se
ssion smp spl sse sse2 ssl svg tcpd threads truetype unicode usb userlocales win
32codecs x86 xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem
 bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-in
tel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hoo
ks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route sha
re shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
 authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile auth
z_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir di
sk_cache env expires ext_filter file_cache filter headers include info log_confi
g logio mem_cache mime mime_magic negotiation rewrite setenvif speling status un
ique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mou
se" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm00
1 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia ati ra
deon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFL
AGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always

Steps to Reproduce:
1. emerge something that uses meinproc durinc compile phase
2.
3.

Actual Results:  
meinproc segfaults and emerge dies

Expected Results:  
program should get installed without any problems
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2008-04-14 09:45:15 UTC
*** Bug 217608 has been marked as a duplicate of this bug. ***
Comment 2 Ingmar Vanhassel (RETIRED) gentoo-dev 2008-05-16 08:48:12 UTC
Local problem ( http://bugs.kde.org/160154 ).

-funroll-loops shouldn't be in your global CFLAGS,CXXFLAGS at all
-fomit-frame-pointer makes backtraces useless on x86.