From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Bormann Newsgroups: gmane.emacs.bugs Subject: bug#5515: 23.1.92; OSX: Emacs gets stuck while wanting to display a dialog box Date: Sat, 10 Apr 2010 11:36:22 +0200 Message-ID: References: <05F4997F-3D28-4D17-8207-BAEDC5E3C050@gmail.com> <5521A25A-8663-4D07-98D2-7655556495FC@tzi.org> <635E47E2-AB4C-4990-85B4-51CEE279B501@gmail.com> <595242C7-4459-464C-837F-5084D2495715@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270893537 28730 80.91.229.12 (10 Apr 2010 09:58:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Apr 2010 09:58:57 +0000 (UTC) Cc: 5515@debbugs.gnu.org To: Adrian Robert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 10 11:58:55 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O0XSo-0003Lc-Mw for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Apr 2010 11:58:55 +0200 Original-Received: from localhost ([127.0.0.1]:55508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0XSo-0004Ya-67 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Apr 2010 05:58:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0XSh-0004YI-BS for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2010 05:58:47 -0400 Original-Received: from [140.186.70.92] (port=53852 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0XSd-0004XM-TT for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2010 05:58:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0XSc-0004zS-0F for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2010 05:58:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32825) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0XSb-0004zL-T9 for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2010 05:58:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O0X7e-0006xE-AZ; Sat, 10 Apr 2010 05:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carsten Bormann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Apr 2010 09:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5515 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 5515-submit@debbugs.gnu.org id=B5515.127089220226725 (code B ref 5515); Sat, 10 Apr 2010 09:37:02 +0000 Original-Received: (at 5515) by debbugs.gnu.org; 10 Apr 2010 09:36:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0X7J-0006x0-Pz for submit@debbugs.gnu.org; Sat, 10 Apr 2010 05:36:42 -0400 Original-Received: from mailhost.informatik.uni-bremen.de ([134.102.201.18] helo=informatik.uni-bremen.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0X7G-0006wv-IY for 5515@debbugs.gnu.org; Sat, 10 Apr 2010 05:36:39 -0400 X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Original-Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.3/8.14.3) with ESMTP id o3A9aPI7023097; Sat, 10 Apr 2010 11:36:25 +0200 (CEST) Original-Received: from [192.168.217.101] (p5489CF74.dip.t-dialin.net [84.137.207.116]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTP id D81ECECB0; Sat, 10 Apr 2010 11:36:24 +0200 (CEST) In-Reply-To: <595242C7-4459-464C-837F-5084D2495715@gmail.com> X-Mailer: Apple Mail (2.1078) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 10 Apr 2010 05:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36147 Archived-At: On Apr 10, 2010, at 08:26, Adrian Robert wrote: >=20 > On Apr 3, 2010, at 6:18 PM, Adrian Robert wrote: >=20 >>=20 >> On Apr 3, 2010, at 12:57 PM, Carsten Bormann wrote: >>=20 >>> I have distilled the test case to the attached file. >>> Sorry, I don't know how to reduce this further. >>> At least it's fully reproduceable with various Emacs versions around = 23.1/24.0. >>> I only tried it on 10.6, though. >>=20 >> >=20 > Hello Carsten, >=20 > Thank you for this test case. I tried the procedure outlined, but = could not reproduce the issue on a somewhat older (23.1.90) version of = emacs, running 64-bit on 10.6.2. =20 I just tried rebuilding Emacs 24.0. from scratch, from the git version = 218181d7f636089824e9f876a5d662bf2e350229. Using the parameters you told me: setenv CFLAGS '-g' ./configure --with-ns make -j3 make install Running this on 10.6.3 (but I previously reproduced this on 10.6.2). Now it takes three attempts (not two as previously) to open a Ruby file = to reproduce the bug. (This appears to point to some randomness influencing the occurrence of = the bug.) > I guess we have a regression here. However, I fixed a related dialog = problem (bug#5811) with the attached patch. Would you be able to test = it and see if it does anything for the issue in your case? I then applied the patch, rebuilt (make -j3; make install), and retried. (I cannot reproduce 5811 with the patched version, but I didn't try = before patching; I *can* reproduce 5811 with an earlier 24.0.50 from = http://emacsformacosx.com/builds -- the one built 2010-03-30; so this = bug now seems to be fixed.) Unfortunately, the patch makes no difference in the behavior wrt 5515. BTW, if I evoke the print dialog once (CMD-P), click No, and then try = the C-x C-f, I need only two attempts to trigger the bug. If I evoke = the print dialog twice, click No, and then try the C-x C-f, I trigger = the bug immediately. So it looks like the third dialog gets hit, but: I can evoke the print dialog as much as I want without triggering the = bug. So, it looks like: -- the bug only happens if dialogs have been active before (used to be = once, now twice). -- the bug only happens if the dialog is evoked in some rather specific = circumstances (such as here: from an error handler in the creation of a = process that is started from a timer handler). Looks like this needs more work to properly isolate. Gruesse, Carsten