From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Crowe Newsgroups: gmane.emacs.bugs Subject: bug#16737: Emacs bug #16737: Possible patch Date: Wed, 15 Jul 2015 19:36:38 +0100 Message-ID: <20150715183638.GA25075@mcrowe.com> References: <20150708205413.GB18890@mcrowe.com> <20150709124415.GA10564@mcrowe.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1436985448 4163 80.91.229.3 (15 Jul 2015 18:37:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2015 18:37:28 +0000 (UTC) Cc: Tom Tromey , Nicolas Richard , Tassilo Horn , Oleh Krehel , Vincent Bernat , "Alan D. Salewski" , Sujith Manoharan , Jan =?UTF-8?Q?Dj=C3=A4rv?= , Alex =?UTF-8?Q?Benn=C3=A9e?= To: 16737@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 20:37:16 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 1ZFRYS-0002t2-8e for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 20:37:16 +0200 Original-Received: from localhost ([::1]:37048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFRYR-00057R-9O for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 14:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFRYK-00057A-Ge for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 14:37:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFRYE-0002ZK-HL for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 14:37:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFRYE-0002ZF-Dn for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 14:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZFRYE-0003T2-1l for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 14:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Crowe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jul 2015 18:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16737 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16737-submit@debbugs.gnu.org id=B16737.143698541513315 (code B ref 16737); Wed, 15 Jul 2015 18:37:01 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 15 Jul 2015 18:36:55 +0000 Original-Received: from localhost ([127.0.0.1]:50349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFRY6-0003Sg-Sw for submit@debbugs.gnu.org; Wed, 15 Jul 2015 14:36:55 -0400 Original-Received: from smtpout.karoo.kcom.com ([212.50.160.34]:64274) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFRY4-0003SQ-6Q for 16737@debbugs.gnu.org; Wed, 15 Jul 2015 14:36:53 -0400 X-IronPort-AV: E=Sophos;i="5.15,481,1432594800"; d="scan'208";a="127598829" Original-Received: from deneb.mcrowe.com (HELO deneb) ([82.152.148.4]) by smtpout.karoo.kcom.com with ESMTP; 15 Jul 2015 19:36:39 +0100 Original-Received: from mac by deneb with local (Exim 4.84) (envelope-from ) id 1ZFRXq-0006bd-Vw; Wed, 15 Jul 2015 19:36:38 +0100 Content-Disposition: inline In-Reply-To: <20150709124415.GA10564@mcrowe.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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:104979 Archived-At: On Thursday 09 July 2015 at 13:44:15 +0100, Mike Crowe wrote: > On Wednesday 08 July 2015 at 21:54:13 +0100, Mike Crowe wrote: > > Thanks to Alan's reproduction recipe in message #158 I've been able to > > do a bit of digging. > > > > From what I can determine pselect is continuously being woken up due > > to activity on the X file descriptor (this can be seen in message #70) > > yet pending_signals never gets set so unblock_input_to never calls > > process_pending_signals so xgselect just goes round and round until > > the timeout time is reached. :( > > > > I suspected that SIGIO was left being incorrectly blocked but I > > haven't been able to find any evidence for that yet. > > I think that suspicion is correct. > > The massive paste in the terminal causes > keyboard.c:kbd_buffer_store_buffered_event to call ignore_sigio() but the only > place I could find that sets the handler for SIGIO is init_keyboard so > noone ever re-enables the SIGIO signal handler. :( > > It appears that keyboard.c:kbd_buffer_get_event used to re-enable the > signal handler but that was removed in > 4d7e6e51dd4acecff466a28d958c50f34fc130b8. > > I tried reinstating enabling the signal handler with this patch > against master and I can no longer reproduce the problem when > following with Alan's recipe. I've sent this patch to the emacs-devel list[1] but it didn't yield any response. I've been running with it for a week now. The problem has not recurred and I haven't seen any downsides. (For those I've CC'd on this here's a handy link to the entire discussion: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16737 ) Mike. [1] https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00106.html