Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311437 - dev-lang/python: Race condition in distutils.dir_util.mkpath()
Summary: dev-lang/python: Race condition in distutils.dir_util.mkpath()
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue9281
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 13:06 UTC by Martin von Gagern
Modified: 2010-10-27 12:22 UTC (History)
2 users (show)

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


Attachments
build log (dev-lang:python-3.1.2-r1:20100326-125509.log,490.79 KB, text/plain)
2010-03-26 13:07 UTC, Martin von Gagern
Details
python-3.1-distutils-dir_util.patch (python-3.1-distutils-dir_util.patch,895 bytes, text/plain)
2010-07-15 15:20 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2010-03-26 13:06:44 UTC
/usr/bin/install -c -m 644 pyconfig.h /var/tmp/portage/dev-lang/python-3.1.2-r1/image//usr/include/python3.1/pyconfig.h
running build_scripts
Creating directory /usr/lib64/python3.1
running build_scripts
Creating directory /usr/lib64/python3.1
running install_lib
creating //var/tmp/portage/dev-lang/python-3.1.2-r1/image/usr/lib64/python3.1
error: could not create '//var/tmp/portage/dev-lang/python-3.1.2-r1/image/usr/lib64/python3.1': File exists
Creating directory /usr/lib64/python3.1/config
Creating directory /usr/lib64/pkgconfig
Creating directory /usr/lib64/python3.1/tkinter
Creating directory /usr/lib64/python3.1/tkinter/test
/usr/bin/install -c -m 644 Modules/config.c /var/tmp/portage/dev-lang/python-3.1.2-r1/image//usr/lib64/python3.1/config/config.c
Creating directory /usr/lib64/python3.1/tkinter/test/test_tkinter
/usr/bin/install -c -m 644 Modules/python.o /var/tmp/portage/dev-lang/python-3.1.2-r1/image//usr/lib64/python3.1/config/python.o
Creating directory /usr/lib64/python3.1/tkinter/test/test_ttk
/usr/bin/install -c -m 644 ./Modules/config.c.in /var/tmp/portage/dev-lang/python-3.1.2-r1/image//usr/lib64/python3.1/config/config.c.in
Creating directory /usr/lib64/python3.1/site-packages
/usr/bin/install -c -m 644 Makefile /var/tmp/portage/dev-lang/python-3.1.2-r1/image//usr/lib64/python3.1/config/Makefile
Creating directory /usr/lib64/python3.1/test
make: *** [sharedinstall] Error 1
make: *** Waiting for unfinished jobs....
...
 * ERROR: dev-lang/python-3.1.2-r1 failed:
 *   emake altinstall failed
 * 
 * Call stack:
 *     ebuild.sh, line  48:  Called src_install
 *   environment, line 5166:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" altinstall || die "emake altinstall failed";

# emerge --info =dev-lang/python-3.1.2-r1
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
 System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.0.1
Timestamp of tree: Fri, 26 Mar 2010 10:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash: 4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.5-r1, 3.1.2
dev-python/pycrypto: 2.1.0
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.4_p6-r1, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1
sys-devel/gcc: 3.3.6-r1, 3.4.6-r2, 4.1.2, 4.2.4-r1, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.netcologne.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en de en_US en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/generated /usr/portage/local/mvg /usr/portage/local/mvg-java /usr/portage/local/sunrise-enabled /usr/portage/local/bugfix /usr/portage/local/bump /usr/portage/local/kde-sunset"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 audiofile avahi bash-completion bcmath berkdb branding bzip2 c++ cairo cdda cdparanoia cdr chroot cli cracklib crypt css cups curl cxx dba dbus dhcp dri dts dv dvd dvdr eds emacs emboss encode escreen evo exif fam fastcgi ffmpeg fftw flac flatfile fortran ftp gcc-libffi gd gdbm gif gimp gnutls gphoto2 gpm graphviz gs gstreamer gtk hal hbci iconv idn imagemagick ipv6 iso14755 ithreads jabber jack java jpeg jpeg2k kde kerberos kpathsea kvm ladspa latex lcms ldap leim libnotify lirc lm_sensors logrotate lzo mad maildir mhash mikmod mime mjpeg mmx mng modules mozxmlterm mp3 mp4 mpeg mpeg2 mplayer mudflap multilib mysql ncurses network nls nptl nptlonly nsplugin objc odbc ofx ogg openexr opengl openmp pam pango pcre pdf perl php plotutils png povray ppds pppd procmail python qt3support qt4 quicktime rdesktop readline recode reflection sasl scanner sdl session smime sndfile snmp sockets socks5 sox speex spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd threads thunar thunderbird tiff tokenizer transcode translator truetype type1 unicode usb userlocales v4l v4l2 vhosts vorbis wmf x264 xanim xcb xcomposite xine xinerama xinetd xml xorg xprint xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="bt87x emu10k1x hda-intel usb-audio via82xx via82xx-modem" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="evdev joystick keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de en_US en_GB" LIRC_DEVICES="hauppauge" MISDN_CARDS="avmfritz" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nvidia intel fbdev v4l vesa vga" 
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin von Gagern 2010-03-26 13:07:36 UTC
Created attachment 225323 [details]
build log
Comment 2 Martin von Gagern 2010-03-28 11:18:32 UTC
MAKEOPTS=-j1 works.
Comment 3 Christian B. 2010-05-27 16:07:46 UTC
I can confirm this here:
MAKEOPTS="-j3" -> fails
MAKEOPTS="-j1" -> works
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-15 15:20:27 UTC
Created attachment 238899 [details]
python-3.1-distutils-dir_util.patch

Please test this patch.
Comment 5 Dirkjan Ochtman gentoo-dev 2010-10-27 12:22:53 UTC
This should be rare and should be fixed upstream, so closing as UPSTREAM.