Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32370 - 2.4.22-xfs - any mkdir fails with file exists
Summary: 2.4.22-xfs - any mkdir fails with file exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Bob Johnson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 02:22 UTC by Alexandru N. Barloiu
Modified: 2004-02-13 10:46 UTC (History)
3 users (show)

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


Attachments
my kernel config-file (.config,23.97 KB, text/plain)
2003-11-08 07:54 UTC, Alexandru N. Barloiu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru N. Barloiu 2003-10-31 02:22:05 UTC
Using the same .config, make mrproper, menuconfig, dep, bzImage, modules with 
kernel 2.4.22-xfs I noticed that if i try to create a directory from anywhere 
( like bash/perl/phyton/whatever ) fails with file exists ... althou it created 
the directory. The old 2.4.20-xfs-r3 doesn't do that. Also tar xf with pipes 
loads 99% of cpu and can't create directorys. ( emerge like unarch ) 

Reproducible: Always
Steps to Reproduce:
1.Emerge xfs-sources-2.4.22-xfs 
Actual Results:  
1. mkdir fails 

Expected Results:  
1. should not fail 

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-xfs) 
================================================================= 
System uname: 2.4.22-xfs i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.3.11 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=pentium3 -march=pentium3 -mmmx -msse -funroll-loops 
-fprefetch-loop-arrays -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/
config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-mcpu=pentium3 -march=pentium3 -mmmx -msse -funroll-loops 
-fprefetch-loop-arrays -O2 -pipe" 
DISTDIR="/home/ftp/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="ftp://light.kappa.ro http://gentoo.oregonstate.edu http://
www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://micro.dale.ro/gentoo-portage" 
USE="arts foomaticdb libg++ mad mikmod qt aalib acl acpi alsa apache2 apm avi 
berkdb crypt cups curl dga directfb encode esd fbcon flash gb gd gdbm gif gnome 
gnome2 gpm gtk gtk2 imap imlib java jpeg libgda libwww maildir mbox mcal mmx 
motif mozilla mpeg mpi mysql ncurses nls oggvorbis opengl oss pam pdflib perl 
png python quicktime readline samba sasl sdl slang socks5 spell sse ssl svga 
tcltk tcpd tiff truetype usb wmf X xface xinerama xml xml2 xmms xv zlib x86 cdr 
-kde javascript"
Comment 1 Rumi Szabolcs 2003-11-05 23:18:58 UTC
I have also hit the very same problem. "File exists" errors everywhere,
directories exist when they should not be and this breaks all Makefiles,
emerges, everything. There is also a severe slowdown when doing an
'emerge sync' for example. When doing xfs_check against a filesystem
previously hit by this, it does not show any corruption.

I have tested the following kernels:

gentoo xfs-sources-2.4.22                affected
gentoo xfs-sources-2.4.20-r3             not affected
vanilla 2.4.21 + xfs release 1.3.1       not affected
sgi xfs-cvs from 2003.11.04 (2.4.22)     not affected

I hope this helps to narrow it down.
<rumi_at_rtfm_dot_hu>
Comment 2 Bob Johnson (RETIRED) gentoo-dev 2003-11-07 17:00:42 UTC
Do you ahve grsecurity enable, and could you forward 
your .config to livewire@gentoo.org
Comment 3 Alexandru N. Barloiu 2003-11-08 07:54:28 UTC
Created attachment 20431 [details]
my kernel config-file
Comment 4 Andrea Luzzardi 2004-01-07 10:26:19 UTC
Fixed on xfs-sources-2.4.23-r1
Comment 5 Paul Slinski 2004-02-13 10:46:31 UTC
This appears to be an issue with xfs-2.4.24-r1 now.

Linux pigeon.ben.int 2.4.24-xfs-r1 #1 Fri Feb 13 11:56:20 EST 2004 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

pigeon root # emerge -u linux-headers
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/linux-headers-2.4.22 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2599, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1551, in merge
    retval=portage.doebuild(y,"clean",myroot,self.pkgsettings,edebug,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 2157, in doebuild
    os.makedirs(mysettings["T"])
  File "/usr/lib/python2.3/os.py", line 154, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/var/tmp/portage/linux-headers-2.4.22/temp'