Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28970 - Building gnome-libs-1.4.2 fails with Segmentation Fault
Summary: Building gnome-libs-1.4.2 fails with Segmentation Fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 04:41 UTC by Mark E. Drummond
Modified: 2003-11-05 17:41 UTC (History)
0 users

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


Attachments
emerge gnome-libs (gnome-libs-1.4.2.txt,187.75 KB, text/plain)
2003-09-17 04:42 UTC, Mark E. Drummond
Details
strace -f ./work/gnome-libs-1.4.2/libgnome/gnome-gen-mimedb (strace.out,77.41 KB, text/plain)
2003-10-18 16:45 UTC, Mark E. Drummond
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark E. Drummond 2003-09-17 04:41:18 UTC
Forever trying to update my laptop to little avail. Now gnome-libs-1.4.2 fails
to build with segfault. I did an emerge sync this morning anf tried again. Same
results. See the attachment.

Mark

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Celeron (Coppermine)
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs distcc"
GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/
ftp://cs.ubishops.ca/pub/gentoo http://adelie.polymtl.ca/
http://www.ibiblio.org/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 oss cups encode gif jpeg gnome mad nls xmms xv directfb alsa berkdb
slang readline arts tetex aalib nas svga ggi tcltk java mysql postgres X sdl
tcpd pam ssl perl esd oggvorbis gtk kde motif opengl gphoto2 ldap cdr scanner
bonobo dga dvdr fbcon innodb maildir mbox pda samba sasl -apm -avi -crypt
-foomaticdb -libg++ -mikmod -mmx -mpeg -ncurses -pdflib -png -quicktime -spell
-truetype -xml2 -zlib -gdbm -guile -ruby -gpm -libwww -python -imlib -qt"
Comment 1 Mark E. Drummond 2003-09-17 04:42:06 UTC
Created attachment 17876 [details]
emerge gnome-libs
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-09-17 16:22:03 UTC
i can't see anything particularly wrong except that maybe something with sys-libs/db. try maybe emerge db-1 again? otherwise, the build seems be fine. the segfault seems to be when it tries to run gnome-gen-mimedb, which it just compiled during the merge.

 emerge \=sys-libs/db-1.8.5-r1

Comment 3 Mark E. Drummond 2003-09-18 04:01:46 UTC
I re-emerged db1. No joy, it still fails the same way. :-(

Mark
Comment 4 foser (RETIRED) gentoo-dev 2003-10-05 03:33:11 UTC
if you run gnome-gen-mimedb yourself does it segfault ? if so, can you backtrace
it ?
Comment 5 Mark E. Drummond 2003-10-08 18:55:10 UTC
Should that have done something? When I run gnome-gen-mimedb I just get my
command line back:

tess root # gnome-gen-mimedb
tess root #

Certainly does not appear to crap out.

Mark
Comment 6 Mike Gardiner (RETIRED) gentoo-dev 2003-10-08 20:24:18 UTC
a long shot, i know, but does building without distcc/ccache work ?
Comment 7 foser (RETIRED) gentoo-dev 2003-10-09 05:51:01 UTC
You need to run the gnome-gen-mimedb build by gnome libs (so in /var/tmp/portage).
 I'm assuming you used a version already on your system, cause it is supplied
by gnome-libs itsself.
Comment 8 Mark E. Drummond 2003-10-17 20:43:28 UTC
yen root # cd /var/tmp/portage/gnome-libs-1.4.2/
yen gnome-libs-1.4.2 # ./work/gnome-libs-1.4.2/libgnome/gnome-gen-mimedb
Segmentation fault
yen gnome-libs-1.4.2 #

I'll run it under strace and attach the output.

Mark
Comment 9 Mark E. Drummond 2003-10-18 16:45:31 UTC
Created attachment 19436 [details]
strace -f ./work/gnome-libs-1.4.2/libgnome/gnome-gen-mimedb
Comment 10 foser (RETIRED) gentoo-dev 2003-10-21 07:45:20 UTC
can you attach a backtrace with debugging info ? i can't make much of the
trace.
Comment 11 Mark E. Drummond 2003-10-21 15:38:48 UTC
Sure! But I'm afraid you will have to provide me some direction on doing
that ... strace is about the limit of my skills.

Mark
Comment 12 foser (RETIRED) gentoo-dev 2003-10-26 12:05:13 UTC
add 'inherit debug' to the top of the ebuild, rebuild and when it breaks
run 'gdb <appname>' .. then type run to start it, after it segfaults type
'bt' . 
Comment 13 Mark E. Drummond 2003-10-31 19:31:59 UTC
All I get after

(gdb) run

is

error while loading shared libraries: libgnome.so.32: cannot open shared
object file: No such file or directory.

If I try to "locate libgnome.so.32" I get nothing back.

Mark
Comment 14 Mark E. Drummond 2003-11-05 17:41:17 UTC
Problem solved. I re-emerged all the packages listed as RDEPENDS and DEPENDS
int the gnome-libs-1.4.2 ebuild. Then I emerged gnome-libs-1.4.2 successfully.

qed