Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42228 - Parallel emerges can conflict during merge phase
Summary: Parallel emerges can conflict during merge phase
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 68212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-20 01:07 UTC by Robin Johnson
Modified: 2005-08-09 22:38 UTC (History)
1 user (show)

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-02-20 01:07:52 UTC
As per summary, if you have two simulataneous emerge processes, their merge phases can conflict over the file /tmp/portage-prelink.tmp causing one emerge to fail out and possibly some corruption of content.

The filename should have some emerge instance specific identifier in it, such as a process ID.


Reproducible: Sometimes
Steps to Reproduce:
Reproduction is hard as it's all timing to cause it, and resource contention bugs like that are a pain to reproduce.
Actual Results:  
Example error from the one emerge
!!! Unable to copy file '/usr/lib/perl5/vendor_perl/5.8.2/i686-
linux/Tk/pTk/tkUnixPort.h'.
!!! [Errno 2] No such file or directory: '/tmp/portage-prelink.tmp'



Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 
2.4.25-pre6-pac1)
=================================================================
System uname: 2.4.25-pre6-pac1 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -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/s
hare/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/
dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/c
onfig/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var
/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/gentoo-distfiles"
FEATURES="autoaddcvs buildpkg ccache cvs digest distcc sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.seren.com/gentoo"
MAKEOPTS="-j12"
PKGDIR="/usr/gentoo-packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi alsa amd apache2 apm arts avi berkdb cdr 
clearpasswd crypt cups curl dvd encode esd ethereal expat flash gd gdbm gif gpm 
imap imlib innodb ipalias ipv6 jack java jikes jpeg junit ldap libg++ libwww 
mad maildir mcal md5sum mikmod mmx motif mozilla mpeg mysql ncurses nls oav 
odbc offensive oggvorbis pam pcap pda pdflib perl pic plotutils png pnp ppds 
python readline samba scanner sdl slang slp snmp socks5 spell sse ssl tcpd 
tetex threads tiff truetype type1 ungif usb wxwindows x86 xml xml2 xv zlib"
Comment 1 Jamie Lokier 2004-10-13 14:14:00 UTC
See also #67464
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-02-28 00:02:11 UTC
prelink tmpfiles are protected via lockfiles for .51
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-08-09 22:38:57 UTC
*** Bug 68212 has been marked as a duplicate of this bug. ***