Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126692 - emerge --metadata crashes
Summary: emerge --metadata crashes
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-03-18 10:19 UTC by Andrey Kalikin
Modified: 2006-05-05 15:44 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 Andrey Kalikin 2006-03-18 10:19:49 UTC
it crashes with message every time after emerge --sync:
cache.cache_errors.CacheCorruption: app-doc/chmlib-0.37.4 is corrupt: dictionary update sequence element #0 has length 1; 2 is required

my emerge --info (i think it's unneeded here, but...):

Portage 2.1_pre6-r3 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r1, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 VIA Samuel 2
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O3 -march=c3 -pipe"
CHOST="i586-pc-linux-gnu"
CXXFLAGS="-O3 -march=c3 -pipe"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
<skip>
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, MAKEOPTS
Comment 1 Zac Medico gentoo-dev 2006-03-18 10:45:30 UTC
Please attach the contents of /var/cache/edb/dep/${PORTDIR}/app-doc/chmlib-0.37.4 and ${PORTDIR}/metadata/cache/app-doc/chmlib-0.37.4 for troubleshooting.  If python gave you a traceback with program line numbers, that would also be helpful.

(In reply to comment #0)
> my emerge --info (i think it's unneeded here, but...):

The `emerge --info` output is often essential for portage bugs.
Comment 2 Krzemin 2006-03-19 00:49:23 UTC
I have the same error:

>>> Updating Portage cache:   34%Traceback (most recent call last):
  File "/usr/bin/emerge", line 2828, in ?
    cache.util.mirror_cache(source, cm, pdb.auxdb[porttree_root], eclass_cache=ec, verbose_instance=noise_maker)
  File "/usr/lib/portage/pym/cache/util.py", line 44, in mirror_cache
    if entry.get("INHERITED",""):
  File "/usr/lib/python2.4/UserDict.py", line 158, in get
    return self[key]
  File "/usr/lib/portage/pym/cache/mappings.py", line 32, in __getitem__
    return self.orig[key]
  File "/usr/lib/portage/pym/cache/mappings.py", line 77, in __getitem__
    self.d.update(self.pull())
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 29, in callit
    return args[0](*args[1:]+args2)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 47, in _pull
    raise cache_errors.CacheCorruption(cpv, e)
cache.cache_errors.CacheCorruption: dev-php5/ZendFramework-0.1.2 is corrupt: dictionary update sequence element #2 has length 1; 2 is required

Contents of /var/cache/edb/dep/usr/portage/dev-php5/ZendFramework-0.1.2:

_eclasses_=depend.php   /usr/portage/eclass     1137845143      multilib        /usr/portage/eclass  1141922163       eutils  /usr/portage/eclass     1142033769      portability     /usr/portage/eclass  1141850196       php-lib-r1      /usr/portage/eclass     1132450539
LICENSE=ZendFramework
PROVIDE=
RESTRICT=nostrip
PDEPEND=
SRC_URI=http://framework.zend.com/releases/ZendFramework-0.1.2.tar.gz
KEYWORDS=~x86
RDEPEND==dev-lang/php-5* dev-lang/php
SLOT=0
EAPI=
DEPEND==dev-lang/php-5* !bootstrap? ( sys-devel/patch ) dev-lang/php
DESCRIPTION=Zend Framework is a high quality and open source framework for developing Web Applications and Web Services with PHP 5.
IUSE=
CDEPEND=
HOMEPAGE=http://framework.zend.com/

Contents of  /usr/portage/metadata/cache/dev-php5/ZendFramework-0.1.2:

=dev-lang/php-5* dev-lang/php >=dev-php/PEAR-PEAR-1.3.6 !bootstrap? ( sys-devel/patch )
>=dev-php/PEAR-Benchmark-1.2.2-r1 >=dev-php/PEAR-Log-1.8.7-r1 dev-php5/xdebug =dev-lang/php-5* dev-lang/php >=dev-php/PEAR-PEAR-1.3.6
0
http://pear.php.net/get/PHPUnit2-2.3.5.tgz

http://www.phpunit.de/
BSD
Unit Testing framework for PHP 5.
~amd64 ~sparc ~x86
php-pear-r1 multilib portability eutils depe


My emerge --info:

Portage 2.1_pre6-r3 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -pipe -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse2 -mmmx -pipe -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo http://src.gentoo.pl http://gentoo.prz.rzeszow.pl"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl en"
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"
...
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS
Comment 3 Andrey Kalikin 2006-03-20 06:41:19 UTC
My /usr/portage/metadata/cache/app-doc/chmlib-0.37.4 was empty, even after --sync'ing. When I cleaned /usr/portage and synced, emerge --metadata stopped crashing.
Comment 4 Zac Medico gentoo-dev 2006-03-20 12:40:56 UTC
I need to clean up the cache error handling.  Until this is fixed, the recommend workaround is to `rm -rf /var/cache/edb/dep && emerge --metadata`.  If that doesn't help, please comment.
Comment 5 MATSUI Tetsushi 2006-04-10 04:19:15 UTC
(In reply to comment #4)
> I need to clean up the cache error handling.  Until this is fixed, the
> recommend workaround is to `rm -rf /var/cache/edb/dep && emerge --metadata`. 
> If that doesn't help, please comment.

I have the same error at dev-python/twisted-mail-0.2.0.
And your workaround doesn't help, regretfully.
After removing the cache directory,
`emerge --metadata` failed with twisted-mail again.
What should I do next.


my `emerge --info`:
Portage 2.1_pre7-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo i586)
=================================================================
System uname: 2.6.16-gentoo i586 AMD-K6(tm) 3D+ Processor
Gentoo Base System version 1.6.14
dev-lang/python:     2.2.3-r6, 2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-3 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k6-3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/ http://distfiles.gentoo.org/"
LANG="ja_JP.eucJP"
LINGUAS="ja en it de fr es nl zh ko nb sv ru"
MAKEOPTS="-j2 -l2.5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /opt/portagejp"
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage/"
USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts bzip2 cjk crypt cups doc dri eds emacs emboss encode foomaticdb fortran freewnn gcl gdbm gif gnome gpm gstreamer gtk gtk2 imlib isdnlog jpeg leim libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png pppd python qt quicktime readline sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_ja linguas_en linguas_it linguas_de linguas_fr linguas_es linguas_nl linguas_zh linguas_ko linguas_nb linguas_sv linguas_ru userland_GNU video_cards_ati video_cards_vesa video_cards_fbdev"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS


/var/cache/edb/dep/${PORTDIR}/dev-python/ has no directory twisted-mail.


`cat /usr/portage/metadata/cache/dev-python/twisted-mail-0.2.0`:
>=dev-python/twisted-2.1 >=dev-python/twisted-names-0.2.0 !bootstrap? ( sys-devel/patch ) virtual/python !bootstrap? ( sys-devel/patch )
>=dev-python/twisted-2.1 >=dev-python/twisted-names-0.2.0
0
http://tmrc.mit.edu/mirror/twisted/Mail/0.2/TwistedMail-0.2.0.tar.bz2

http://www.twistedmatrix.com/
MIT
A Twisted Mail library, server and client.
~alpha ~ia64 ~sparc ~x86
alternatives python multilib portability eutils distutils versionator twisted
Comment 6 MATSUI Tetsushi 2006-04-29 10:00:38 UTC
(In reply to comment #5)
> I have the same error at dev-python/twisted-mail-0.2.0.
> And your workaround doesn't help, regretfully.
> After removing the cache directory,
> `emerge --metadata` failed with twisted-mail again.
> What should I do next.

The problem disappeared a few days after, an emerge --sync successfully ended
without any efforts.
I couldn't and can't know the reason, but anyway it's working now.
Comment 7 Zac Medico gentoo-dev 2006-05-03 12:08:38 UTC
In svn r3313 I've added some error handling to catch the CacheCorruption error so that the corruption will be reported but a traceback will no longer occur.
Comment 8 Zac Medico gentoo-dev 2006-05-05 15:44:35 UTC
This has been released in 2.1_pre10-r3.