xcb_io.c assertion error following forkpty and raw_input in PyGTK

Bug #518269 reported by Robert Schroll
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxcb (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am writing a PyGTK application which involves a vte Terminal. I use a forkpty() call to launch a child process in the terminal. When the child process runs a raw_input(), it dies with the message:

python: ../../src/xcb_io.c:242: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.

(Actually, the child process seems to survive until there is either a keystroke or mouse movement over the terminal.) The parent process survives. This behavior is on an up-to-date Karmic install. On Jaunty, this error does not occur. The attached file provides a test-case program.

This is the same error message reported in bug #419501. I've reported separately, as it is triggered in quite different circumstances. But if it is the same, please mark this as a duplicate.

[Aside - the submission page asked me to submit this using `ubuntu-bug -p libxcb`. But that failed in two ways: First, it warns that -p is deprecated. Second, it tells me "Package libxcb does not exist", and quits.]

Revision history for this message
Robert Schroll (rschroll) wrote :
Revision history for this message
Luke Faraone (lfaraone) wrote :

This seems to be the same issue we're encountering in bug 419501 in GASP, as we do a similar thing to handle interactive interpreter sessions. Please repost your testcase at that bug, and thank you for taking the time to report this!

In reply to your aside, you might want to mention this on #launchpad on freenode or file a bug against malone, the bug tracker.

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

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.