Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 233165

Summary: sys-app/portage-2.2_rc4: Assertion Error tight loop when running emerge --fetchonly --pretend
Product: Portage Development Reporter: Dmitry Karasik <dkarasik>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: lamusic.gentoo
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077    
Attachments: emerge --info
fix to avoid tight loop

Description Dmitry Karasik 2008-07-28 14:40:11 UTC
emerge -fpe world > std.out
Traceback (most recent call last):
  File "/usr/bin/emerge", line 18, in <module>
    retval = _emerge.emerge_main()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 13444, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 12687, in action_build
    retval = mergetask.merge()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 9314, in merge
    rval = self._merge()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 9523, in _merge
    self._main_loop()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 9625, in _main_loop
    self._poll_loop()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 8324, in _poll_loop
    raise AssertionError("tight loop")
AssertionError: tight loop


The last few lines of std.out are:

!!! dev-java/sun-jce-bin-1.6.0 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Please download jce_policy-6.zip from:
 * https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jce_policy-6-oth-JPR@CDS-CDS_Developer
 * (JCE Unlimited Strength Jurisdiction Policy Files 6)
 * and move it to /usr/portage/distfiles
Comment 1 Dmitry Karasik 2008-07-28 14:41:31 UTC
Created attachment 161523 [details]
emerge --info
Comment 2 Zac Medico gentoo-dev 2008-07-28 20:12:19 UTC
*** Bug 233189 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2008-07-28 21:35:13 UTC
Created attachment 161590 [details, diff]
fix to avoid tight loop

If this is saved as /tmp/fetch_pretend.patch then it can be applied as follows:

patch /usr/lib/portage/pym/_emerge/__init__.py /tmp/fetch_pretend.patch
Comment 4 Alexander Huemer 2008-07-28 22:48:45 UTC
just stumbled upon the same bug.
emerge -p works, emerge -f works too, emerge -pf fails.

# emerge --info
Portage 2.2_rc4 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-blackbit x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-blackbit-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Mon, 28 Jul 2008 20:03:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /e
tc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=18
0 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa amd64 amrnb amrwb bash-completion berkdb bl bzip2 cairo cddb cdio cli cracklib crypt cscope cups dbu
s dga directfb dri dts dv dvb dvd dvi enca encode fbcon ffmpeg flac fortran ftp fuse gcj gdbm ggi gif gnome gnutls gpm gs gstreame
r gtk guile hal hdri iconv isdnlog java jbig jpeg jpeg2k lapack lcms libcaca live lzo mad md5sum midi mmx mmxext mozdevelop mp2 mp
3 mpeg mudflap multilib musepack nautilus ncurses nemesi networking nls nptl nptlonly nsplugin objc objc++ objc-gc ogg openal open
ct openexr opengl openmp pam pcre perl png pnm pppd python qt4 quicktime radio rar readline reflection rtc session spl sse sse2 ss
l ssse3 svg tcpd theora tiff truetype type1 unicode v4l v4l2 vim-syntax vorbis wma wmf x264 xcb xml xorg xulrunner xv xvid xvmc zl
ib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm80
1 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmi
x dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softv
ol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default au
thz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter 
file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status uniq
ue_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayr
ad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="xgi vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYN
C_EXTRA_OPTS

#
Comment 5 Dmitry Karasik 2008-07-30 13:51:59 UTC
portage 2.2_rc5 fixes the issue for me.
Comment 6 Zac Medico gentoo-dev 2008-07-30 20:35:48 UTC
Thanks for reporting.