From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15801: 24.3.50; bar scrolling freezes gtk emacs Date: Sat, 30 Nov 2013 12:41:27 +0100 Message-ID: <2F3FE7B0-9C9E-4B6D-B72C-C32C81646028@swipnet.se> References: <5277EA95.4070001@poczta.onet.pl> <527A9D0D.6040207@poczta.onet.pl> <7A380DDA-E95E-4F8A-BEB9-2AB97C1319BB@swipnet.se> <528DB55B.4080401@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385811735 10904 80.91.229.3 (30 Nov 2013 11:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Nov 2013 11:42:15 +0000 (UTC) Cc: 15801@debbugs.gnu.org To: Jarek Czekalski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 30 12:42:21 2013 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 1VmiwG-0002Pg-Ph for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Nov 2013 12:42:20 +0100 Original-Received: from localhost ([::1]:51671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmiwG-0001DR-Fb for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Nov 2013 06:42:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmiw5-0001CP-U4 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 06:42:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmivy-0008Vf-Tw for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 06:42:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmivy-0008Vb-QQ for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 06:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vmivy-0008R8-8T for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 06:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2013 11:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15801-submit@debbugs.gnu.org id=B15801.138581170732405 (code B ref 15801); Sat, 30 Nov 2013 11:42:02 +0000 Original-Received: (at 15801) by debbugs.gnu.org; 30 Nov 2013 11:41:47 +0000 Original-Received: from localhost ([127.0.0.1]:51218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmivi-0008Qa-E0 for submit@debbugs.gnu.org; Sat, 30 Nov 2013 06:41:46 -0500 Original-Received: from mailfe09.tele2.se ([212.247.155.1]:58187 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmiva-0008QG-Mj for 15801@debbugs.gnu.org; Sat, 30 Nov 2013 06:41:40 -0500 X-T2-Spam-Status: No, hits=0.0 required=5.0 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 283225949; Sat, 30 Nov 2013 12:41:29 +0100 Original-Received: from anon-59-131.vpn.ipredator.se (unknown [46.246.59.131]) (Authenticated sender: jhd) by hosdjarv.se (Postfix) with ESMTPSA id D05A31A01A3; Sat, 30 Nov 2013 11:41:28 +0000 (UTC) In-Reply-To: <528DB55B.4080401@poczta.onet.pl> X-Mailer: Apple Mail (2.1822) 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:81137 Archived-At: Hello. 21 nov 2013 kl. 08:25 skrev Jarek Czekalski : > W dniu 2013-11-21 07:00, Jan Dj=E4rv pisze: >> It seems like Emacs stops receiving SIGIO. If it is blocked or if = Gtk+ stole the signal handler I don't know yet. >=20 > Sounds interesting, waiting for more info. I will be glad to learn = more about signals. This is what I read on = http://unixhelp.ed.ac.uk/CGI/man-cgi?signal+7, maybe it will be = relevant: >=20 > If more than one of the > threads has the signal unblocked, then the kernel chooses an = arbitrary > thread to which to deliver the signal. >=20 > There are several threads in action (some belonging to gtk), so this = tells me Emacs cannot be sure to receive any kernel signal. Gtk uses the = term signal for a different thing, it makes googling difficult. Actually the signal handling is sane. It is somthing else. In xdisp.c, redisplay_internal there is a path that turns off SIGIO and = never turn it on again. I.e.: enter redisplay_internal unrequest_sigio() /* Two paths to do this in the code */ goto retry /* Many places */ goto end_of_redisplay /* One place */ When this path in the code is taken, SIGIO is off (blocked) and never = turned on again, and Emacs freezes. Cc:ing Eli. The obvious fix would be to request_sigio before exit. Is = there any side effects to this? This is very hard to reproduce. I have to scroll like mad on a slow = computer to see it. On a faster computer I can't reproduce it. I guess = it has to do something with the time redisplay takes. Jan D.