From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?UTF-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.bugs Subject: bug#20283: bug#16737: Timed out waiting for reply from selection owner Date: Fri, 05 Jun 2015 10:26:49 +0100 Message-ID: <876172bj52.fsf@linaro.org> References: <877frkvn0b.fsf@gnu.org> <87iob4byae.fsf@linaro.org> <87r3psvm0x.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433496454 6298 80.91.229.3 (5 Jun 2015 09:27:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 09:27:34 +0000 (UTC) Cc: Nicolas Richard , Tassilo Horn , 20283@debbugs.gnu.org, Tom Tromey , 16737@debbugs.gnu.org, Jan =?UTF-8?Q?Dj=C3=A4rv?= To: Oleh Krehel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 11:27:25 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0nuC-0001Sm-6I for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 11:27:12 +0200 Original-Received: from localhost ([::1]:46120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0nuB-0000Mg-IS for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 05:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0nu6-0000L9-IN for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 05:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0nu3-0002eT-S0 for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 05:27:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0nu3-0002eO-PG for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 05:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0nu3-0004WE-Eb for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 05:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex =?UTF-8?Q?Benn=C3=A9e?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jun 2015 09:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20283 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 20283-submit@debbugs.gnu.org id=B20283.143349640317339 (code B ref 20283); Fri, 05 Jun 2015 09:27:03 +0000 Original-Received: (at 20283) by debbugs.gnu.org; 5 Jun 2015 09:26:43 +0000 Original-Received: from localhost ([127.0.0.1]:41123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0nti-0004VX-Ug for submit@debbugs.gnu.org; Fri, 05 Jun 2015 05:26:43 -0400 Original-Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:35373 helo=socrates.bennee.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0nte-0004V9-7t; Fri, 05 Jun 2015 05:26:41 -0400 Original-Received: from localhost ([127.0.0.1] helo=zen.linaro.local) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1Z0pFU-0000R7-LY; Fri, 05 Jun 2015 12:53:16 +0200 In-reply-to: <87r3psvm0x.fsf@gmail.com> X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103601 Archived-At: Oleh Krehel writes: > Alex Bennée writes: > >> Tassilo Horn writes: >> >>> Alex Bennée writes: >>> >>>> I still see it and I've been tracking the emacs-24 branch. It seems to be a >>>> consequence of a long lived Emacs daemon session >>> >>> I'm using the current master branch but I also use the server (which >>> should be kind of the same to starting emacs as a doemon, no?). Kill >>> and yank for hours, and then out of sudden the timeouts appear. >> >> I haven't hit the problem for ages then suddenly this week as I was >> pasting a URL it triggered again. Trouble is being able to get useful >> diagnostics out when the problem hits. > > I tend to get this problem a lot more since I've switched from 24.5 to > master. > > This code makes Emacs report the error immediately instead of freezing: > > (setq x-selection-timeout 10) > > When the bug occurs, a fix that typically works is to: > > 1. kill some text while in Emacs. > 2. copy the text from outside > 3. wait for 3-4 seconds before attempting to paste into Emacs I can't seem to unwedge without restarting Emacs. Anyway I attached gdb and I'm confused by the failure. Sticking a breakpoints in: * x_get_foreign_selection:1242 (the error line) * x_handle_selection_notify It seems we always see the timeout before the x_handle_selection_notify is called. It seems to me it has got into a state where it's not consuming events from X while waiting. I've seen some cases where the timeout will be hit 4-5 times in a row and then I'll see the same number of notify events. > > Step 3 could be important, since if I paste quickly, the bug seems to > re-occur more often. > > Oleh -- Alex Bennée