Uzbl

Tasklist

FS#247 - 100% CPU load after closing a tab in uzbl-tabbed

Attached to Project: Uzbl
Opened by Hendrik Hoeth (hoeth) - 2010-11-17 12:35:56 PM
Last edited by Brendan Taylor (bct) - 2010-11-26 07:42:11 PM
Task Type Bug Report
Category uzbl-tabbed
Status Closed
Assigned To No-one
Operating System Linux
Severity High
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When I close a tab uzbl-tabbed starts using 100% CPU (about 80% sys and 20% user). This has also been noted by Noel Maersk in a comment to bug #245.
This task depends upon

Closed by  Brendan Taylor (bct)
2010-11-26 07:42:11 PM
Reason for closing:  Fixed
Additional comments about closing:  fixed on the master and experimental branches
Comment by Brendan Taylor (bct) - 2010-11-20 06:45:40 PM
I've fixed this on my branch[1]. If python registers any SIGCHLD handler then on receiving SIGCHLD Python or PyGTK starts polling one end of a pipe and then not reading it. (The relevant part of the strace is in the description of bug #245 (which I suspect is a duplicate of this bug))

This was a known problem with pygtk 2.16.0[2], this is possibly a regression?

[1]: https://github.com/bct/uzbl/commit/bf26eec507fed8524368e523eadc5b798a40e870
[2]: http://stackoverflow.com/questions/3617772/how-to-spawn-a-browser/3657270#3657270
Comment by Hendrik Hoeth (hoeth) - 2010-11-20 07:43:46 PM
Thanks for the patch, that fixes it for me!

I'm running pygtk-2.22.0 and pygobject-2.26.0, so it might well be a regression.

Loading...