Unreasonable CPU usage after receiving signal

Bug #708847 reported by Jean-Paul Calderone on 2011-01-27
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)

Bug Description

run this program:

    import signal
    import gtk

    signal.signal(signal.SIGCHLD, lambda *args: None)

Send it SIGCHLD. CPU usage will go to 100% as it goes into an infinite loop failing to read from a pipe.

Upstream bug report is https://bugzilla.gnome.org/show_bug.cgi?id=640738 with a patch to fix the issue.

This shows up on Maverick, at least.

Fixing this bug would solve lots of other bugs being reported:
"100% CPU usage when calling a child process from a python script"
"[natty] virt-manager use 100% CPU"

Otherwise, they will just keep on coming (against various pygtk programs). This is the root cause.
Both Maverick and Natty are affected (maybe others).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers