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

Bug 527486

Summary: sys-apps/portage-2.2.14: IndexError in linux_ro_checker, when device is '-'
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS, REGRESSION
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-30 14:58:05 UTC
Before merge:

Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/portage/dbapi/_MergeProcess.py", line 234, in _spawn
    prev_mtimes=self.prev_mtimes, counter=counter)
  File "/usr/lib/python3.3/site-packages/portage/dbapi/vartree.py", line 4888, in merge
    counter=counter)
  File "/usr/lib/python3.3/site-packages/portage/dbapi/vartree.py", line 3843, in treewalk
    rofilesystems = ro_checker(dirlist)
  File "/usr/lib/python3.3/site-packages/portage/util/writeable_check.py", line 60, in linux_ro_checker
    attr2 = mount[1].split()[2]
IndexError: list index out of range

It's a chroot with freshly updated stage3, after upgrading Portage.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-30 15:02:03 UTC
Ok, it is:

    mount = line.split(' - ')

which happens to catch a second split on device for tmpfs, which is '-' on the system. I guess:

    mount = line.split(' - ', 1)

would fix it.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2014-12-04 06:10:41 UTC
this is fixed in commit:
84c45d5e3e8da1669b196d6a567491e34f9a2ec6

This is in the portage-2.2.15 release.