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

Bug 505890

Summary: sys-apps/portage-2.2.{7,8,9} scheduler deadlock
Product: Portage Development Reporter: Rick Farina (Zero_Chaos) <zerochaos>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Rick Farina (Zero_Chaos) gentoo-dev 2014-03-26 16:32:37 UTC
On one system in particular, I find portage gets deadlocked when trying to install certain packages.  Not really sure why, but I am available for troubleshooting.

I can (and have) let emerge try for >5 days and when ^C I get this:

>>> Emerging binary (1 of 1) sys-apps/dbus-1.6.18-r1
^CTraceback (most recent call last):

Exiting on signal 2
  File "/usr/lib64/portage/pym/portage/", line 149, in lockfile
    locking_method(myfd, fcntl.LOCK_EX|fcntl.LOCK_NB)
IOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/portage/bin/", line 29, in <module>
    rval = main(sys.argv[1:])
  File "/usr/lib64/portage/bin/", line 21, in main
    lock_obj = portage.locks.lockfile(args[0], wantnewlockfile=True)
  File "/usr/lib64/portage/pym/portage/", line 175, in lockfile
    locking_method(myfd, fcntl.LOCK_EX)
_LockProcess: failed to acquire lock on '/var/tmp/portage/sys-apps/dbus-1.6.18-r1'
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/", line 1031, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/portage/pym/_emerge/", line 4062, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/portage/pym/_emerge/", line 453, in action_build
    retval = mergetask.merge()
  File "/usr/lib64/portage/pym/_emerge/", line 1019, in merge
    rval = self._merge()
  File "/usr/lib64/portage/pym/_emerge/", line 1408, in _merge
  File "/usr/lib64/portage/pym/_emerge/", line 1375, in _main_loop
  File "/usr/lib64/portage/pym/_emerge/", line 127, in _schedule
  File "/usr/lib64/portage/pym/_emerge/", line 1576, in _schedule_tasks
    if self._schedule_tasks_imp():
  File "/usr/lib64/portage/pym/_emerge/", line 1698, in _schedule_tasks_imp
  File "/usr/lib64/portage/pym/_emerge/", line 23, in add
  File "/usr/lib64/portage/pym/_emerge/", line 45, in schedule
  File "/usr/lib64/portage/pym/_emerge/", line 30, in start
  File "/usr/lib64/portage/pym/_emerge/", line 106, in _start
    self._start_task(binpkg, self._default_final_exit)
  File "/usr/lib64/portage/pym/_emerge/", line 151, in _start_task
  File "/usr/lib64/portage/pym/_emerge/", line 30, in start
  File "/usr/lib64/portage/pym/_emerge/", line 103, in _start
  File "/usr/lib64/portage/pym/_emerge/", line 114, in _prefetch_exit
  File "/usr/lib64/portage/pym/_emerge/", line 60, in lock
  File "/usr/lib64/portage/pym/_emerge/", line 71, in _assert_lock
    % (async_lock.returncode,))
AssertionError: AsynchronousLock failed with returncode 1