Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678410 - sys-apps/portage: emerge --regen --jobs randomly aborts with signal.signal(signal.SIGCHLD, signal.SIG_DFL) TypeError: 'int' object is not callable
Summary: sys-apps/portage: emerge --regen --jobs randomly aborts with signal.signal(si...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL: https://bugs.python.org/issue23395
Whiteboard:
Keywords:
Depends on:
Blocks: 658182
  Show dependency tree
 
Reported: 2019-02-20 06:29 UTC by Patrick Lauer
Modified: 2020-04-01 23:54 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 Patrick Lauer gentoo-dev 2019-02-20 06:29:48 UTC
# emerge --regen --jobs=8
[...]
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 53, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1289, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3211, in run_action
    emerge_config.opts.get("--load-average"))
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 2003, in action_regen
    signum = run_main_scheduler(regen)
  File "/usr/lib64/python2.7/site-packages/portage/util/_async/run_main_scheduler.py", line 27, in run_main_scheduler
    scheduler.wait()
  File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 83, in wait
    self.scheduler.run_until_complete(self.async_wait())
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 831, in run_until_complete
    self.iteration()
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 285, in iteration
    return self._iteration(*args)
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 350, in _iteration
    if self._run_timeouts():
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 601, in _run_timeouts
    if self._run_idle_callbacks():
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 560, in _run_idle_callbacks
    if x._callback(*x._args):
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 101, in __call__
    self._callback(*self._args)
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 500, in _poll_child_processes
    self.source_remove(x.source_id)
  File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 772, in source_remove
    signal.signal(signal.SIGCHLD, signal.SIG_DFL)
TypeError: 'int' object is not callable
Sandboxed process killed by signal: Broken pipe
Sandboxed process killed by signal: Broken pipe
Sandboxed process killed by signal: Broken pipe
Sandboxed process killed by signal: Broken pipe
Sandboxed process killed by signal: Broken pipe
Comment 1 Zac Medico gentoo-dev 2019-02-20 06:44:40 UTC
I've heard that this "TypeError: 'int' object is not callable" with the signal function issue does not affect python3, can you confirm?
Comment 2 Zac Medico gentoo-dev 2020-04-01 23:54:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a2c520e735f285a11e2486cb7b4fe1c8e4d0dac

commit 0a2c520e735f285a11e2486cb7b4fe1c8e4d0dac
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-03-19 09:52:09 +0100
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-03-19 10:41:00 +0100

    sys-apps/portage: Drop py2
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>