Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38629 - emerging perl-5.8.0-rc12 has caused filesystem corruption
Summary: emerging perl-5.8.0-rc12 has caused filesystem corruption
Status: RESOLVED DUPLICATE of bug 24991
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-18 11:55 UTC by Mark Knecht
Modified: 2005-07-17 13:06 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 Mark Knecht 2004-01-18 11:55:13 UTC
I started a simple emerge -Uv world this morning. In the process of building perl-5.8.0-rc12 I was given the following message:

!!! ERROR: There appears to be FILE SYSTEM CORRUPTION. A file that islisted as existing is not capable of being stat'd. If you are using anexperimental kernel, please boot into a stable one, force an fsck,and ensure your filesystem is in a sane state. 'shutdown -Fr now'File:/var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/Hash::Util.tmpError: [Errno 2] No such file or directory:'/var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/Hash::Util.tmp'Wizard root # 

My kernel is 2.4.22-rc2. The file system is ext3. I did the requested shutdown and fsck. There was one problem found and fixed automatically. I then tried to kick off the same process again and got the same error again. I fsck'ed again and came up running. 

At this point I looked at the directory and found that indeed the Hash stuff did seem corrupted again, so I erased all of /var/tmp/portage thinking that maybe this was a specific hard drive problem at a specific area on the disk. This erased about 1GB of stuff, but after fsck'ing again and trying it for a 3rd time I still got the same problem.

Wizard root # ls -al/var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/H*ls:/var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/Hash::Util.tmp:No such file or directory-rw-r--r--    1 root     root         2699 Jan 18 08:26/var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/Hash::Util.3pm.gzWizard root # 

At this point I had a strange message from emerge about an INCOMPLETE EMERGE 

Wizard root # emerge -Up world>>> --upgradeonly implies --update... adding --update to options.These are the packages that I would merge, in order:Calculating world dependencies ...done!INCOMPLETE MERGE: /var/db/pkg/dev-lang/-MERGING-perl-5.8.0-r12[ebuild  N    ] dev-lang/perl-5.8.0-r12  [ebuild     U ] sys-libs/glibc-2.3.2-r9 [2.3.2-r8] [ebuild     U ] sys-devel/binutils-2.14.90.0.7-r4 [2.14.90.0.7] 

so I took the somewhat scary step of removing the -MERGING lock-file and the directories since they had very different time stamps. 

At this point I could do anothe emerge as things looks sort of normal. The system needs perl I suppose, so I need to move forward:

Wizard dev-lang # emerge -Up world
>>> --upgradeonly implies --update... adding --update to options.

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

Calculating world dependencies ...done!
[ebuild  N    ] dev-lang/perl-5.8.0-r12  
[ebuild     U ] sys-libs/glibc-2.3.2-r9 [2.3.2-r8] 
[ebuild     U ] sys-devel/binutils-2.14.90.0.7-r4 [2.14.90.0.7] 

Wizard dev-lang # 

Most likely I'll get the same file correuption message again? I don't know, and I'm not a programmer so I'm pretty worried I'm going to mess something up without some help.

Reproducible: Always
Steps to Reproduce:
1. emerge -U world


Actual Results:  
As shown above

Expected Results:  
Should just build

Wizard dev-lang # emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(TM) XP 2600+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
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/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
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.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups dvd dvdr encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib jack jack-caps
jack-tmpfs java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls
oggvorbis opengl oss pam pdflib png python qt quicktime readline sdl slang spell
ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib video_cards_radeon"

Wizard dev-lang #
Comment 1 Mark Knecht 2004-01-18 12:21:03 UTC
I tried it again after removing the lockfile and the problem continues. 

>>> /usr/share/man/man3/locale.3pm.gz
>>> /usr/share/man/man3/Config.3.gz
>>> /usr/share/man/man3/Encode::JP::JIS7.3.gz
>>> /usr/share/man/man3/Opcode.3pm.gz
>>> /usr/share/man/man3/ExtUtils::MY.3.gz
>>> /usr/share/man/man3/Encode::Byte.3pm.gz

!!! ERROR: There appears to be FILE SYSTEM CORRUPTION. A file that is listed
!!!        as existing is not capable of being stat'd. If you are using an
!!!        experimental kernel, please boot into a stable one, force an fsck,
!!!        and ensure your filesystem is in a sane state. 'shutdown -Fr now'
!!!        File:  /var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/Hash::Util.tmp
!!!        Error: [Errno 2] No such file or directory: '/var/tmp/portage/perl-5.8.0-r12/image/usr/share/man/man3/Hash::Util.tmp'
Wizard root # 

<sound of drowning person> help....
Comment 2 Robert Coie (RETIRED) gentoo-dev 2004-01-18 22:05:29 UTC

*** This bug has been marked as a duplicate of 24991 ***