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

Bug 12127

Summary: IOError: [Errno 22] Invalid argument
Product: Portage Development Reporter: Matthew Kennedy (RETIRED) <mkennedy>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matthew Kennedy (RETIRED) gentoo-dev 2002-12-13 18:40:31 UTC
I seem to get this every now and then. Started happening after the last portage
upgrade:

sys-apps/portage-2.0.45-r4

Its not much to go on. Let me know if I can provide more information.

In this example, I had just re-emerged ExtUtils-MakeMaker

>>> Regenerating /etc/ld.so.cache...
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1672, in ?
    unmerge("clean", ["world"])
  File "/usr/bin/emerge", line 1195, in unmerge
    slotmap[myslot][localtree.dbapi.cpv_counter(mypkg)]=mypkg
  File "/usr/lib/python2.2/site-packages/portage.py", line 2554, in cpv_counter
    counter=long(cfile.readline())
IOError: [Errno 22] Invalid argument
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-12-14 00:08:22 UTC
never mind... the cause was just a run-of-the-mill ext3 filesystem corruption :(