Ubuntu

Unreasonable CPU usage after receiving signal

Reported by Jean-Paul Calderone on 2011-01-27
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Undecided
Unassigned

Bug Description

run this program:

    import signal
    import gtk

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

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.

+1
Fixing this bug would solve lots of other bugs being reported:
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/664920
"100% CPU usage when calling a child process from a python script"
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/707313
"[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