Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70298 - emerge fails when untarring a package
Summary: emerge fails when untarring a package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-06 13:17 UTC by Steve Herber
Modified: 2005-03-01 18:07 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 Steve Herber 2004-11-06 13:17:04 UTC
After a "successful" recent upgrade, portage/emerge does not play well with tar.

emerge -aD world fails when tar bails out.  Tar tzvf on the same package is ok.

Same failure with: emerge -aD lsof

My system has been stable up to this point.


Reproducible: Always
Steps to Reproduce:
emerge -aD world
Actual Results:  
emerge -aD world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] net-www/apache-2.0.52-r1 [2.0.52] 
[ebuild     U ] sys-devel/libtool-1.5.2-r6 [1.5.2-r5] 
[ebuild     U ] net-www/mozilla-firefox-1.0_rc2 [1.0_pre-r2] 
[ebuild     U ] sys-devel/gettext-0.14.1 [0.12.1-r2] 
[ebuild     U ] mail-client/mozilla-thunderbird-0.9 [0.8] 
[ebuild     U ] sys-apps/lsof-4.73 [4.71] 
[ebuild  NS   ] sys-kernel/gentoo-dev-sources-2.6.9-r3  

Do you want me to merge these packages? [Yes/No] y
>>> emerge (1 of 7) net-www/apache-2.0.52-r1 to /
>>> md5 src_uri ;-) httpd-2.0.52.tar.gz
>>> md5 src_uri ;-) apache-patches-2.0.52-r1.tar.bz2
>>> md5 src_uri ;-) apache2-conf.tar.bz2
>>> Unpacking source...
>>> Unpacking httpd-2.0.52.tar.gz to /var/tmp/portage/apache-2.0.52-r1/work
/usr/lib/portage/bin/ebuild.sh: line 358:  9196 Segmentation fault      tar xzf
"${DISTDIR}/${x}" ${tarvars}

!!! ERROR: net-www/apache-2.0.52-r1 failed.
!!! Function unpack, Line 373, Exitcode 139
!!! failure unpacking httpd-2.0.52.tar.gz
!!! If you need support, post the topmost build error, NOT this status message.

root@lurch /home/herber 505 $ 
gzip: stdout: Broken pipe



Expected Results:  
Tar should work and ebuild should build the package.

emerge --version
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2,
glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r5 x86_64)

emerge --info   
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2,
glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -fomit-frame-pointer -funit-at-a-time -ftracer -fweb
-frename-registers -fprefetch-loop-arrays -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -fomit-frame-pointer -funit-at-a-time -ftracer -fweb
-frename-registers -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo
ftp://ftp.mirrors.ussg.iu.edu/pub/linux/gentoo/  
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 arts audiofile berkdb bitmap-fonts calendar cdr
crypt cups curl dga divx4linux dvd dvdr esd exif f77 fam flac foomaticdb gd gdbm
gif gphoto2 gpm gps gtk imagemagick imlib ipv6 jabber jack java jp2 jpeg kde
libwww lzw lzw-tiff mad mikmod motif mozilla multilib mysql ncurses nls nptl
oggvorbis opengl oss pam pdflib perl php png qt readline sdl slang sqlite ssl
tcpd tiff truetype usb userlocales xinerama xml xml2 xmms xpm xrandr xv xvidinfo
zlib"
Comment 1 Steve Herber 2004-11-06 17:30:04 UTC
Just noticed these entries in syslog:

Nov  7 00:34:07 lurch kernel: ebuild.sh[15544]: segfault at 0000000000000000 rip
 0000002a957e5430 rsp 0000007fbfffdbb8 error 4
Nov  7 00:34:08 lurch kernel: ebuild.sh[15572]: segfault at 0000000000000000 rip
 0000002a957e5430 rsp 0000007fbfffdaf8 error 4
Nov  7 00:34:09 lurch kernel: ebuild.sh[15600]: segfault at 0000000000000000 rip
 0000002a9590c430 rsp 0000007fbfffd7a8 error 4
Nov  7 00:34:10 lurch kernel: tar[15605]: segfault at 0000000000000000 rip 00000
02a95912430 rsp 0000007fbfffda68 error 4
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2004-11-07 01:49:39 UTC
can you do a manual tar xzf on /usr/portage/distfiles/httpd-2.0.52.tar.gz? looks like your tar is broken
Comment 3 Steve Herber 2004-11-07 02:49:25 UTC
I had mentioned that a manual tar worked.

I have had a problem like this before, that of a signal problem between bash and the then latest glibc, and I tried the same solution again.

I booted from a 2004-01 minimal install CD
mounted the original system
chrooted into the /mnt/gentoo area
took out ACCEPT_KEYWORDS=~amd64 from /etc/make.conf
rebuilt bash back to version [2.05b-r11]
(rebooted after this but the problem remained)
rebuilt glibc back to [2.3.4.20041021].

After rebooting, all seems well, except firefox now says "no windows found",
but hopefully that is not directly related.

I suspect these recent packages:

ACCEPT_KEYWORDS=~amd64 emerge -aD bash glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] app-shells/bash-3.0-r7 [2.05b-r11] 
[ebuild     U ] sys-libs/glibc-2.3.4.20041102 [2.3.4.20041021] 

Do you want me to merge these packages? [Yes/No] 

At this point, my system seems to operate as before.
Comment 4 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-03-01 18:07:18 UTC
As there has been no recent activity on this bug I am closing it. If problems persist then please reopen this bug.