Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168823 - crash when auto-cleaning packages in portage-2.1.2-r12
Summary: crash when auto-cleaning packages in portage-2.1.2-r12
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: 167107
  Show dependency tree
 
Reported: 2007-03-01 03:07 UTC by Ivan Vasin
Modified: 2007-03-02 08:27 UTC (History)
0 users

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


Attachments
fix broken except statement syntax (except_syntax.patch,469 bytes, text/plain)
2007-03-01 03:43 UTC, Zac Medico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Vasin 2007-03-01 03:07:11 UTC
Every time Portage tries to auto-clean packages, the system reports an error.

Reproducible: Always

Steps to Reproduce:
Not sure. Happens every time I portage auto-cleans.
Actual Results:  
>>> Auto-cleaning packages...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5373, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5368, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4845, in action_build
    ldpath_mtimes, autoclean=1)
  File "/usr/bin/emerge", line 3410, in unmerge
    slotmap[myslot][localtree.dbapi.cpv_counter(mypkg)]=mypkg
  File "/usr/lib/portage/pym/portage.py", line 4984, in cpv_counter
    return long(self.aux_get(mycpv, ["COUNTER"])[0])
ValueError: invalid literal for long():

Expected Results:  
Should have auto-cleaned "cleanly".

I recently upgraded to portage-2.1.2-r12. Also, I recently had a number of filesystem corruptions, but these were apparently fixed with fsck (I wound up with "Filesystem is consistent").

Here's my emerge --info:
Portage 2.1.2-r12 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-mm2 i686)
=================================================================
System uname: 2.6.20-mm2 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 01 Mar 2007 01:01:02 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r2, 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -fomit-frame-pointer -pipe -fno-delayed-branch -fcaller-saves -freorder-blocks -falign-jumps -finline-functions -frename-registers -fno-trapping-math"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -fomit-frame-pointer -pipe -fno-delayed-branch -fcaller-saves -freorder-blocks -falign-jumps -finline-functions -frename-registers -fno-trapping-math -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.wpi.edu/gentoo http://mirrors.acm.cs.rpi.edu/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib acpi adns aiglx aim alsa amarok amazon amr animgif ao aoss apache apache2 ares arj artworkextra aserve asf async athena audiofile autoipd automount avahi background bash-completion bcmath bdf beagle berkdb bidi binary-drivers bitmap-fonts bittorrent blas bonjour bookmarks bzip2 cairo caps cardbus ccache cdda cddb cdinstall cdparanoia cdr cdrom chardet chm chroot clamav clamd cli colordiff console contentcache corba cpudetection cracklib crypt css cups curl curlwrappers cvs cvsgraph daap dbus dbx depth32 divx djvu dnd dri dts dvd dvdr dvdread dynagraph ecc eds effects emacs enca encode exif expat exscalibar fam fame fastbuild fat fbcon fbsplash ffmpeg fftw finger firefox flac flash fltk fluidsynth fortran fping ftp gaim galago gd gdbm gif gimp gimpprint glgd glib glibc-omitfp glitz glut gmedia gmp gnutls gopher gpm graphicsmagick graphviz gs gsm gstreamer gtk gtk2 gtkhtml hal hash howl howl-compat hpn httpd iconv icq idea idn ieee1394 imagemagick imap imlib inkjar insecure-savers ipod ipv6 isdnlog iso14755 ithreads jabber jack jack-tmpfs java java5 javascript jbig john jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdepim kdexdeltas kerberos kqemu lame lapack lash lcms ldap ldapsam lesstif lha libcaca libclamav libg++ libnotify libsamplerate libvisual lids live lm_sensors logitech-mouse lzo lzw mad math matroska matrox mcal md5sum mdnsresponder-compat mem-cache memcache menubar metalink mhash midi mikmod mime ming mjpeg mmap mmx mmxext mng mnogosearch mod modperl modplug mono motif mouse mozbranding mozcalendar mozdom mozsvg mp3 mp3rtp mp4 mp4live mpeg mpeg2 mpi mplayer msn mule multislot musepack music musicbrainz mysql mysqli ncurses neXt netjack network new-login njb nls no-helper nocd nomalloccheck nptl nptlonly nsplugin ntfs ntlm numarray numeric nvidia oav offensive ogg ole on-the-fly-crypt onaccess openal openexr opengl openssl opensslcrypt osc oscar oss pam panel-plugin pango pccts pch pcmcia pcre pdf perl php pic player plotutils plugin png portaudio posix pppd prelude print profile psyco python qt3 qt3support qt4 quicktime rar rdesktop readline real realmedia reflection reiser4 reiserfs remix resolvconf rle rtc rtsp samba sasl scanner scenarios sdl sensord server session sharedext shorten shout simplexml skins slang slp smartcard sndfile sound sounds spell spl sql sqlite sqlite3 sse sse-filters sse2 ssl startup-notification stream subtitles subversion svg svga svgz swat syslog szip tagwriting tcl tcpd tetex textures tga theora threads thumbnail tiff timidity tk tokenizer tomsfastmath toolbar tordns transcode trayicon truetype truetype-fonts tta type1 ucs2 unicode upnp urandom usb userlocales utempter vcd videos vidix vim vim-pager vim-syntax vim-with-x visualization vlm vnc vncviewer voice vorbis widescreen wifi win32codecs winbind wlan wma wmf wmp wordexp wxwindows x11vnc x264 x86 xanim xcb xcomposite xemacs xface xforms xgetdefault xine xinerama xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsl xslt xv xvid xvmc xvnc yahoo zeroconf zip zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2007-03-01 03:43:16 UTC
Created attachment 111645 [details]
fix broken except statement syntax

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

patch /usr/lib/portage/pym/portage.py < /tmp/except_syntax.patch

This bug is triggered by corruption in one of the /var/db/pkg/*/*/COUNTER files, so you might encounter additional issues depending on how bad the corruption is.
Comment 2 Zac Medico gentoo-dev 2007-03-02 08:26:19 UTC
This has been released in 2.1.2-r13.