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: Sun, 1 Dec 2013 00:16:52 +0100 Message-ID: <2C9F6FFF-8FAD-42BC-81A5-723D6E4983FD@swipnet.se> References: <5277EA95.4070001@poczta.onet.pl> <529A1A85.6050608@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=windows-1250 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385853494 4934 80.91.229.3 (30 Nov 2013 23:18:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Nov 2013 23:18:14 +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 Sun Dec 01 00:18:19 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 1Vmtnm-0003b4-7s for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2013 00:18:18 +0100 Original-Received: from localhost ([::1]:53538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmtnl-0001vh-A5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Nov 2013 18:18:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmtnc-0001va-Gk for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:18:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmtnW-0004tG-PJ for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:18:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmtnW-0004tC-Lz for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VmtnW-0002FK-8C for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 18:18: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 23:18: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.13858534238565 (code B ref 15801); Sat, 30 Nov 2013 23:18:02 +0000 Original-Received: (at 15801) by debbugs.gnu.org; 30 Nov 2013 23:17:03 +0000 Original-Received: from localhost ([127.0.0.1]:52165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VmtmY-0002E5-Qb for submit@debbugs.gnu.org; Sat, 30 Nov 2013 18:17:03 -0500 Original-Received: from mailfe03.swip.net ([212.247.154.65]:35335 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VmtmV-0002DV-ND for 15801@debbugs.gnu.org; Sat, 30 Nov 2013 18:17:01 -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 mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 289273363; Sun, 01 Dec 2013 00:16:52 +0100 In-Reply-To: <529A1A85.6050608@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:81171 Archived-At: Hello. 30 nov 2013 kl. 18:04 skrev Jarek Czekalski : > Jan, >=20 > Thank you for the attempt. It must be very difficult to work on it, = without being able to reproduce as easily as it happens on my side. >=20 > The attempt failed. The code you inserted is never reached. It is indeed reached. Maybe not when you encountered the freeze. I = traced the signal mask and (un)request_sigio calls, and everytime I got = a freeze, it was because unrequest_sigio had been called but = request_sigio had not been called. You obviously have a different freeze. > Even if I make it reachable (reducing the condition to = "interrupt_input" or make it executed always), still hanging occurs with = the same ease. >=20 > What you fix is probably introduced a very long time ago (before = r31171), with copy and paste programming method. This sentence I can't understand > This could be more readable as part of STOP_POLLING and > RESUME_POLLING macros (or maybe even part of stop_polling?). I = prepared a patch making it so. This has nothing to do with copyright, = the idea is yours, so please don't credit me in this case. Anyway I = posted an assignment 2 weeks ago, maybe it arrived already. This is only = code rearrangement, without any behavior change, so you may skip it as = well. POLLING and SIGIO are two different concepts, it would be very unclear = to put SIGIO operations in a POLLING macro. >=20 > Further discoveries: > 1. Making unrequest_sigio never called does not remove the freeze (in = one attempt it even appeared sooner) > 2. Placing STOP_POLLING (patched, containing unrequest) at the very = beginning of redisplay_internal seems to make no detectable change > Maybe one of these changes would make it reproducable at your box? >=20 > When I was debugging threading issues in Java I used a function = debugDelay(int n) which simulated computations. This could be inserted = in various places to make bugs reproducable by anyone. Of course finding = the right place(s) is truly difficult. Maybe this method could be = applied here. If we don't have such a helper function, I can write it. = It must trick the compiler, so it not optimize the fictional loop. But I = can't help in finding the right place to insert it, because I reproduce = it in a blink of an eye. I guess you have to debug it. Jan D.