Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107865 - portage-2.0.53_rc2 stuck in endless loop on emerge -auDv world
Summary: portage-2.0.53_rc2 stuck in endless loop on emerge -auDv world
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 107894 (view as bug list)
Depends on:
Blocks: 108082
  Show dependency tree
 
Reported: 2005-10-02 04:01 UTC by enkil
Modified: 2005-10-04 08:37 UTC (History)
3 users (show)

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


Attachments
Removes the catching of signals (remove-signal-catcher.patch,1.42 KB, patch)
2005-10-02 05:39 UTC, Jason Stubbs (RETIRED)
Details | Diff
Traceback for "emerge -uDN world -pv" (portage_traceback,881 bytes, text/plain)
2005-10-02 05:47 UTC, Ben Skeggs
Details
Adds some noise about where execution is going (add-noise.patch,2.36 KB, patch)
2005-10-02 07:01 UTC, Jason Stubbs (RETIRED)
Details | Diff
Fixes the problem (fix-endless-loop.patch,560 bytes, patch)
2005-10-02 07:24 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description enkil 2005-10-02 04:01:22 UTC
Latest unstable portage-version, portage-2.0.53_rc2, gets stuck in an endless
loop when I try to "emerge -auDv world". I synced, updated portage (including an
update to python-2.4.2 - I ran python-update after that) and now get this:

emerge -auDv world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!

After calculating the dependencies, it eats up all cpu-time and seems to be
stuck in an endless loop. I can "emerge -auDv individual_packet", or "emerge
-auDv system", but not world. Happens only if I use "-u" or "-U".
Portage-2.0.51.22-r2 has no problems though. Downgrading solves the problem at
the moment.


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge -auDv portage
3. python-update
4. etc-update
5. emerge -auDv world

Actual Results:  
Portage gets stuck in en endless loop

Expected Results:  
Portage displaying the packages it wants to merge

Portage 2.0.53_rc2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo-r2 i686)
=================================================================
System uname: 2.6.13-gentoo-r2 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/glftpd/etc /opt/glftpd/ftp-data
/usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/           
http://gentoo.chem.wisc.edu/gentoo/             http://cudlug.cudenver.edu/gentoo/"
LC_ALL="en_US.iso885915"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac aalib alsa apache2 apm audiofile avi
bash-completion berkdb bitmap-fonts bonobo bzlib cdr cjk crypt cups curl dba dga
directfb dts dvd dvdr dvdread emboss encode esd fam ffmpeg firefox flac
foomaticdb fortran ftp gd gdbm gif gpm gtk gtk2 gtkhtml icq imagemagick imlib
ipv6 java jpeg junit kde libg++ libwww lirc mad mikmod mjpeg mmx motif
mozcalendar mozilla mp3 mpeg mysql nas ncurses nls no-old-linux nptl nptlonly
nvidia ogg oggvorbis opengl oss pam pdflib perl php png postgres ppds python qt
quicktime readline sblive sdl session slang socks5 spell sqlite sse ssl svg svga
tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb
v4l v4l2 vorbis wmf xdeltas xine xml xml2 xmms xv xvid zlib video_cards_nvidia
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-10-02 05:04:14 UTC
Can you try with the --debug parameter please? 
Comment 2 Ben Skeggs 2005-10-02 05:08:42 UTC
I can confirm this here, emerge info:

darktama@disoft-dc ~ $ emerge info
Portage 2.0.53_rc2 (default-linux/amd64/2005.1, gcc-4.0.2,
glibc-2.3.5.20050722-r0, 2.6.13-hardened x86_64)
=================================================================
System uname: 2.6.13-hardened x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks multilib-strict sandbox sfperms
strict"
GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo/
http://mirror.pacific.net.au/linux/Gentoo/"LANG="de_DE"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY="/usr/local/overlays/scratch /usr/local/overlays/modular_xorg"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acl acpi alsa apache2 audiofile avi bash-completion
berkdb bitmap-fonts browserplugin bzlib cairo calendar cdparanoia cdr crypt cups
curl dbus dlloader dri dvd dvdr dvdread eds emboss encode esd exif expat fam
fbcon ffmpeg firefox flac foomaticdb fortran ftp gif glitz glut gnome gpm
gstreamer gtk gtk2 guile hal hardened imagemagick imlib inotify ipv6 ithreads
jack java javascript jikes jpeg kde kerberos krb4 lcms ldap libwww lm_sensors
lzw lzw-tiff mad mmap mng mono motif mp3 mpeg mpi msn ncurses nls nocd nptl
nptlonly nvidia offensive ogg oggvorbis openal opengl pam pdflib perl png
postgres python qt quicktime readline recode samba sasl sdl session speex spell
ssl subversion sysvipc tcltk tcpd theora threads tiff truetype truetype-fonts
type1 type1-fonts unicode usb userlocales vcd videos vorbis xine xinerama xml
xml2 xosd xpm xprint xsl xv xvid xvmc zlib linguas_en linguas_de userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS

"emerge -uDN world -pv --debug" scrolls heaps of stuff while calculating deps,
gets to "...done!" and the outputs nothing else while chewing 100% cpu.  Here's
the last few lines, I can upload an entire log somewhere if needed.

Parent:    ebuild / app-misc/screen-4.0.2-r4 nomerge
Depstring: >=sys-libs/ncurses-5.2 pam? ( virtual/pam ) selinux? (
sec-policy/selinux-screen >=sec-policy/selinux-base-policy-20050821 )
>=sys-devel/autoconf-2.58 !bootstrap? ( sys-devel/patch ) !bootstrap? (
sys-devel/patch ) >= sys-libs/ncurses-5.2 pam? ( virtual/pam ) selinux? (
sec-policy/selinux-screen >=sec-policy/selinux-base-policy-20050821 )
Candidates: ['>=sys-devel/autoconf-2.58', '>=sys-libs/ncurses-5.2',
'sys-libs/pam', 'sys-devel/patch']ebuild: sys-devel/autoconf-2.59-r7
binpkg: None
ebuild: sys-libs/ncurses-5.4.20050319
binpkg: None
ebuild: sys-libs/pam-0.78-r2
binpkg: None
ebuild: sys-devel/patch-2.5.9-r1
binpkg: None
Exiting... ebuild / app-misc/screen-4.0.2-r4 nomerge
Exiting... None
 ...done!
Comment 3 enkil 2005-10-02 05:36:59 UTC
Using --debug produces the same results here as mentioned in comment #2:

[...]
Exiting... ebuild / app-misc/screen-4.0.2-r4 nomerge
Exiting... None
 ...done!

endless loop after that :(
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-10-02 05:39:09 UTC
Created attachment 69713 [details, diff]
Removes the catching of signals

Try again with this patch. When the dep calculation has finished and it gets
into the loop, Ctrl-C and attach the resulting traceback please.
Comment 5 Ben Skeggs 2005-10-02 05:47:15 UTC
Created attachment 69716 [details]
Traceback for "emerge -uDN world -pv"

Here you go.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-10-02 05:51:04 UTC
Do several runs yield essentially the same list? 
Comment 7 Ben Skeggs 2005-10-02 05:56:02 UTC
Basically yes, occasionally it ends with:

  File "/usr/lib/portage/pym/portage_dep.py", line 77, in use_reduce
    if ("*" in uselist):
  File "/usr/lib/portage/pym/portage.py", line 1516, in __getitem__
    def __getitem__(self,mykey):
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-10-02 06:47:58 UTC
*** Bug 107894 has been marked as a duplicate of this bug. ***
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-10-02 07:01:48 UTC
Created attachment 69724 [details, diff]
Adds some noise about where execution is going

Applies to fresh 2.0.53_pre2 (includes the other patch)

If possible, could you join #gentoo-portage on irc.freenode.net please?
Comment 10 Jason Stubbs (RETIRED) gentoo-dev 2005-10-02 07:24:26 UTC
Created attachment 69726 [details, diff]
Fixes the problem

A config object was being passed where a list of USE flags should have been
being passed. This looks like it's been around for a while - not sure why it
hasn't been noticed earlier.
Comment 11 Ben Skeggs 2005-10-02 07:28:17 UTC
WORKSFORME :)

Thanks Jason!
Comment 12 Jason Stubbs (RETIRED) gentoo-dev 2005-10-02 08:17:20 UTC
2.0.53_rc3 added to CVS. Will hit the mirrors in ~45 minutes.