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

Bug 427748

Summary: sys-apps/portage-2.2.0_alpha120 crashing when compile fails
Product: Gentoo Linux Reporter: Szpadel <piotrekrogowski>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Szpadel 2012-07-23 13:11:43 UTC
After fail compile, after print messages from packages


Reproducible: Sometimes

Steps to Reproduce:
1. emerge -e world whith package that not compile
2. wait
3. try again?
Actual Results:  
crashed

Expected Results:  
working

Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 2071, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 456, in action_build
    retval = mergetask.merge()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1009, in merge
    rval = self._merge()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1359, in _merge
    self._main_loop()
  File "/usr/lib64/portage/pym/_emerge/PollScheduler.py", line 160, in _main_loop
    self.sched_iface.iteration()
  File "/usr/lib64/portage/pym/portage/util/_eventloop/EventLoop.py", line 174, in iteration
    if not x.callback(f, event, *x.args):
  File "/usr/lib64/portage/pym/_emerge/SpawnProcess.py", line 215, in _output_handler
    self._unregister_if_appropriate(event)
  File "/usr/lib64/portage/pym/_emerge/AbstractPollTask.py", line 129, in _unregister_if_appropriate
    self.wait()
  File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 54, in wait
    self._wait()
  File "/usr/lib64/portage/pym/_emerge/SubProcess.py", line 90, in _wait
    self._waitpid_loop()
  File "/usr/lib64/portage/pym/_emerge/SubProcess.py", line 96, in _waitpid_loop
    self.pid, self._waitpid_cb)
  File "/usr/lib64/portage/pym/portage/util/_eventloop/EventLoop.py", line 227, in child_watch_add
    self._poll_child_processes()
  File "/usr/lib64/portage/pym/portage/util/_eventloop/EventLoop.py", line 270, in _poll_child_processes
    self.source_remove(x.source_id)
TypeError: 'int' object is not callable
Comment 1 Szpadel 2012-07-23 14:38:30 UTC
i'm using pypy 1.9
Comment 2 Zac Medico gentoo-dev 2012-07-23 18:57:51 UTC
This looks like a bug in PyPy, because self.source_remove(x.source_id) should succeed there. It's a method, never an int.