Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266577 - sys-fs/e2fsprogs-1.41.4+ has parallel make issues on src_install()
Summary: sys-fs/e2fsprogs-1.41.4+ has parallel make issues on src_install()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 271841 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-17 20:12 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2009-05-30 18:56 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,36.10 KB, text/plain)
2009-04-17 20:13 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
environment (environment,97.61 KB, text/plain)
2009-04-17 20:13 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
files/e2fsprogs-1.41.4-parallel-make-install.patch (e2fsprogs-1.41.4-parallel-make-install.patch,1.57 KB, patch)
2009-05-30 02:13 UTC, MATSUU Takuto (RETIRED)
Details | Diff
build.log (build.log,41.44 KB, text/plain)
2009-05-30 08:10 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
files/e2fsprogs-1.41.5-parallel-make-install.patch (e2fsprogs-1.41.5-parallel-make-install.patch,2.34 KB, patch)
2009-05-30 15:55 UTC, MATSUU Takuto (RETIRED)
Details | Diff
build.log (build.log,33.97 KB, text/plain)
2009-05-30 16:11 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-17 20:12:46 UTC
Hi,

I don't know how hard it is to trigger this bug when you're not on a decent multi-core system. I was never abel to trigger this bug on my dual-core Athlon 64 FX (K8/Windsor core) machine but when I set up my shiny new dual quad-core Opteron 2380 (K10/shanghai cores) system, two out of three emerges trigger this problem.
It seems like some of the commands in src_install() are called twice which can result in race-conditions. The strange thing is, that this doesn't happen on every emerge.
I will attach the build.log file of a failed emerge.



Reproducible: Sometimes

Steps to Reproduce:




> emerge --info
Portage 2.2_rc30 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.27.21 x86_64)
=================================================================
System uname: Linux-2.6.27.21-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2380-with-gentoo-2.0.0
Timestamp of tree: Fri, 17 Apr 2009 18:45:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.1-r1
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/logrotate.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=barcelona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7"
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/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups dri dvd dvdr dvdread emboss encode evo fam ffmpeg firefox flac gdbm gif gnutls gtk iconv idn isdnlog jpeg jpeg2k kde lame libnotify mad midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf png ppds pppd qt3 qt3support quicktime readline reflection sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs theora threads tiff truetype usb vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-17 20:13:20 UTC
Created attachment 188721 [details]
build.log
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-17 20:13:36 UTC
Created attachment 188723 [details]
environment
Comment 3 SpanKY gentoo-dev 2009-04-18 18:00:33 UTC
hrm, looks like e2p is descended into multiple times ... that isnt right
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-05-07 16:26:45 UTC
Yes, same error here with -j5 (4 core ~amd64 system)
Comment 5 Adam Bowers 2009-05-11 18:21:23 UTC
Same problem with -j8 on a dual quad xeon ~amd64
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2009-05-30 02:13:58 UTC
Created attachment 192947 [details, diff]
files/e2fsprogs-1.41.4-parallel-make-install.patch

please test this patch
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-05-30 08:10:11 UTC
Created attachment 192950 [details]
build.log

Still failing with the patch.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-05-30 08:40:05 UTC
e2fsprogs-1.41.5 is affected as well.
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-05-30 09:10:15 UTC
*** Bug 271841 has been marked as a duplicate of this bug. ***
Comment 10 MATSUU Takuto (RETIRED) gentoo-dev 2009-05-30 15:55:38 UTC
Created attachment 192986 [details, diff]
files/e2fsprogs-1.41.5-parallel-make-install.patch

how about this one?
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-05-30 16:11:01 UTC
Created attachment 192989 [details]
build.log

Still failing for me.