Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527486 - sys-apps/portage-2.2.14: IndexError in linux_ro_checker, when device is '-'
Summary: sys-apps/portage-2.2.14: IndexError in linux_ro_checker, when device is '-'
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2014-10-30 14:58 UTC by Michał Górny
Modified: 2014-12-04 06:10 UTC (History)
0 users

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 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 gentoo-dev 2014-12-04 06:10:41 UTC
this is fixed in commit:
84c45d5e3e8da1669b196d6a567491e34f9a2ec6

This is in the portage-2.2.15 release.