Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38293 - Unable to emerge grep-2.5.1-r1
Summary: Unable to emerge grep-2.5.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 08:16 UTC by Matthias Spiller
Modified: 2004-01-16 03:17 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 Matthias Spiller 2004-01-15 08:16:29 UTC
When trying to emerge grep, the process dies with "Error 139"

Reproducible: Always
Steps to Reproduce:
1. emerge grep

Actual Results:  
emerge grep
[...]
file=./`echo it | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file it.po
file=./`echo ja | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ja.po
file=./`echo ko | sed 's,.*/,,'`.gmo \
  && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ko.po
make[2]: *** [ja.gmo] Error 139
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/grep-2.5.1-r1/work/grep-2.5.1/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/grep-2.5.1-r1/work/grep-2.5.1'
make: *** [all] Error 2

!!! ERROR: sys-apps/grep-2.5.1-r1 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! emake failed


Expected Results:  
complete the emerge

orlando root # emerge info
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 mobile AMD Athlon (tm) 2500+    
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math
-fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow S3TC X X509 aalib acpi acpi4linux altivec amd apache2 async auctex
autofs avi berkdb caps cdr clamav clanJavaScript clanVoice crypt cups dedicated
dga directfb distribution dnd dvd dvdr emacs emacs-w3 encode esd ethereal evo
exiscan-acl fam fastcgi fbcon foomaticdb gd gdbm gif gphoto2 gps gstreamer gtk
gtk2 idea imagemagick imap imlib ipv6 java jikes joystick jpeg jython kerberos
krb4 lcms ldap leim libdsk libgda libwww lufsusermount mad mikmod mldonkeypango
mmx mng motif moznocompose moznoirc moznomail mpeg mpeg4 msn mule music ncurses
net nls nowin oggvorbis opengl openssh oscar pam parse-clocks pcmcia pdflib perl
plotutils png pnp ppds python quicktime radeon readline samba scanner sdl slang
speex spell sse ssl stroke svga tcltk tcpd tetex tiff transcode truetype unicode
usagi usb v4l videos wmf x86 xinerama xml xml2 xmms xosd xv xvid zlib
video_cards_radeon"
Comment 1 SpanKY gentoo-dev 2004-01-15 09:21:18 UTC
the bit of the log you posted doesnt have the error in it

try emerging with MAKEOPTS=-j1 and then post the error log again
Comment 2 David M. Andersen 2004-01-15 18:40:15 UTC
"Error 139" = (128 + 11) = SIG11 = Seg fault.  Could be in make, sed, or msgfmt.

Could be a bug in msgfmt (which is in sys-devel/gettext).

You could try re-merging gettext first.  It seems to compile fine here.

Comment 3 Matthias Spiller 2004-01-16 01:48:32 UTC
re-emerging gettext does not solve the problem. The same error occurs.

When I execute the line that yields the error with strace I get the following results:

orlando po # PATH=../src:$PATH strace /usr/bin/msgfmt -v -o ja.gmo ja.po
execve("/usr/bin/msgfmt", ["/usr/bin/msgfmt", "-v", "-o", "ja.gmo", "ja.po"], [/* 40 vars */]) = 0
uname({sys="Linux", node="orlando", ...}) = 0
brk(0)                                  = 0x8089000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=58733, ...}) = 0
mmap2(NULL, 58733, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200]\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1511037, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
mmap2(NULL, 1271428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40025000
mmap2(0x40156000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x131) = 0x40156000
mmap2(0x40159000, 9860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40159000
close(3)                                = 0
munmap(0x40015000, 58733)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\21\4\4N\242\271\246\32\345\243\324\210\246cK\2253\337"..., 32) = 32
close(3)                                = 0
brk(0)                                  = 0x8089000
brk(0x80aa000)                          = 0x80aa000
brk(0)                                  = 0x80aa000
open("ja.po", O_RDONLY)                 = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=14933, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
read(3, "# Japanese messages for GNU grep"..., 4096) = 4096
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=21436, ...}) = 0
mmap2(NULL, 21436, PROT_READ, MAP_SHARED, 4, 0) = 0x40016000
close(4)                                = 0
open("/usr/lib/gconv/EUC-JP.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\10"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=14157, ...}) = 0
mmap2(NULL, 14996, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001c000
mmap2(0x4001f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x2) = 0x4001f000
close(4)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Comment 4 Matthias Spiller 2004-01-16 03:17:35 UTC
After re-emerging glibc it works.