Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50591 - ebuild.sh segfault segmentation fault xorg-x11 ebuild
Summary: ebuild.sh segfault segmentation fault xorg-x11 ebuild
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-09 18:24 UTC by Aaron Peterson
Modified: 2004-08-04 13:47 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 Aaron Peterson 2004-05-09 18:24:47 UTC
This error occured when the binary package was installing, it was something to do with fonts.
I tried to get the line before and after, but I didn't have time to redo the command correctly (grep Segmentation instead of segfault)

/usr/sbin/ebuild.sh: line 1427:  8412 Segmentation fault      (core dumped) LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/usr/X11R6/lib" ${ROOT}/usr/X11R6/bin/mkfontdir -e ${ROOT}/usr/share/fonts/encodings -e ${ROOT}/usr/share/fonts/encodings/large -- ${x}

Reproducible: Always
Steps to Reproduce:
1.emerge xorg-x11 -B0
2. logout of xwindows
2./etc/init.d/xdm stop
3. emerge xorg-x11 -k
4. see bug whiz by 
5. check /var/log/emerge.log  --no find last couple of emerges there!
6. realize that I am out of diskspace
7. everything installed ok, I think..
8. tried to startxdm /etc/init.d/xdm start
9. realized that I forgot to do etc-update
10. etc-update made me manually do the 270 config files that were updated!!
11. it  worked
12. rememerged the binary package to see if it happened again, even after clearing diskspace
13. sure enough, it happened. (my command was wrong, but it redirected nothing to crashes.txt...   but luckily errors went to standard error
14. here is what it said:



Actual Results:  
Here is the 
084145424:  *** terminating.
dsl-cda-411 tmp # emerge xorg-x11 -k | grep segfault -A2 -B2 > crashes.txt
>>> Regenerating /etc/ld.so.cache...
/usr/sbin/ebuild.sh: line 1427:  8412 Segmentation fault      (core dumped)
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/usr/X11R6/lib"
${ROOT}/usr/X11R6/bin/mkfontdir -e ${ROOT}/usr/share/fonts/encodings -e
${ROOT}/usr/share/fonts/encodings/large -- ${x}
>>> Regenerating /etc/ld.so.cache...
dsl-cda-411 tmp #  cat crashes.txt


Expected Results:  
well it still worked as expected...  but it bugs me that there was a segfault

note: I had a mistyped cflag as well... it was -03 instead of -O3 like it is now


bash-2.05b# emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.4.11
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/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 -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm
arts artswrappersuid audiofile avi berkdb bidi bonobo canna cdr cjk cjkcrypt
crypt cscope cups dga directfb divx4linux doc dv dvb dvd encode esd evms2 faad
fam fbcon ffmpeg flac flash foomaticdb freetype freewnn fs gdbm ggi gif gnome
gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jack java javascript
joystick jpeg kde kerberos krb4 ldap libcss libdvdread libg++ libwww mad maildir
md5sum mdb mikmod mmx motif mozilla mpeg mpeg4 mule mysql nas ncurses net nls
nptl nvidia oggvorbis opengl oss pam pdflib perl pic png postgres python qt
quicktime readline samba sasl scanner sdl slang spell sse ssl svg svga tcltk
tcpd tetex theora threads tiff transcode truetype unicode usb v4l vhosts
virus-scan x86 xine xinerama xml2 xmms xv xvid zeo zlib"
Comment 1 Aaron Peterson 2004-05-09 21:11:50 UTC
Ok, I rememerged xorg-x11 with -03 replace with -O3

same error... but here it is (I was in a GUI this time)
********

!targe sym /usr/X11R6/bin/inb
--- !targe sym /usr/X11R6/bin/X
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
 *  Service 'sysklogd' already provide 'logger'!;
 *  Not adding service 'metalog'...
 * Generating encodings.dir......                                                       [ ok ]
 * Creating fonts.scale files......                                                     [ ok ]
 * Generating fonts.dir files......
/usr/sbin/ebuild.sh: line 1427: 16209 Segmentation fault      (core dumped) LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/usr/X11R6/lib" ${ROOT}/usr/X11R6/bin/mkfontdir -e ${ROOT}/usr/share/fonts/encodings -e ${ROOT}/usr/share/fonts/encodings/large -- ${x}                      [ ok ]
 * Generating Xft cache......                                                           [ ok ]
 * Fixing permissions......                                                             [ ok ]
 * Creating FC font cache......

Comment 2 SpanKY gentoo-dev 2004-05-10 22:53:57 UTC
try lower CFLAGS
Comment 3 Aaron Peterson 2004-05-10 23:01:57 UTC
I think it's working anyway...

I do have a bit of corrupted animated cursors... but those went away...

without the -O3
or without the -march?
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-13 18:37:32 UTC
Check out bug #47100, specifically comment #4.
Comment 5 Aaron Peterson 2004-08-04 13:47:35 UTC
haven't had this problem for a while.. And I'm sick of how many bugs are opened on bugzilla, so lets fix em, and nuke the ones that are fixed.