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

Bug 49881

Summary: portage crashed with cPickle.UnpicklingError: invalid load key, ''
Product: Portage Development Reporter: TomAmplius <tomamplius>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: major CC: charlesx
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description TomAmplius 2004-05-03 12:11:23 UTC
When i try to emerge many ebuild( "emerge portage", "emerge -up world", emerge pciutils"), i get errors about a key of db. I have tha same problem on 3 computeurs where are install in the same week. I have re-emerge python, and make emerge sync many times.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
#emerge -s portage
Searching...  -Traceback (most recent call last):
  File "/usr/bin/emerge", line 2331, in ?
    searchinstance.execute(mysearch)
  File "/usr/bin/emerge", line 545, in execute
    if not portage.portdb.xmatch("match-visible",package):
  File "/usr/lib/portage/pym/portage.py", line 4701, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4687, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 4782, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/portage/pym/portage.py", line 4535, in aux_get
    if doregen or not
self.eclassdb.is_current(cat,pkg,self.auxdb[cat][pkg]["INHERITED"].split()):
  File "/usr/lib/portage/pym/portage.py", line 4380, in is_current
    self.setup_package(cat, pkg)
  File "/usr/lib/portage/pym/portage.py", line 4357, in setup_package
    self.packages[cat] = self.dbmodule(self.cachedir, cat+"-eclass", [], uid,
portage_gid)
  File "/usr/lib/portage/pym/portage_db_cpickle.py", line 23, in __init__
    self.db = mypickle.load()
cPickle.UnpicklingError: invalid load key, ''.

#emerge pciutils
Calculating dependencies   
!!! Problem in sys-apps/pciutils dependencies.
!!! invalid load key, ''.
Comment 1 TomAmplius 2004-05-03 12:13:48 UTC
emerge --version 
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-05-03 13:01:02 UTC
Data corruption.

rm -Rf /var/cache/edb/dep
emerge sync
Comment 3 TomAmplius 2004-05-05 11:26:26 UTC
Merci
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-06 20:01:13 UTC
*** Bug 169653 has been marked as a duplicate of this bug. ***