From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#15025: emacs --daemon stuck in infinite loop Date: Thu, 08 Aug 2013 21:23:23 -0400 Message-ID: References: <4jpptql6gy.fsf@fencepost.gnu.org> <5201AD43.4040105@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1376011453 23756 80.91.229.3 (9 Aug 2013 01:24:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 01:24:13 +0000 (UTC) Cc: 15025@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 03:24:14 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 1V7bR7-0002AR-GZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 03:24:13 +0200 Original-Received: from localhost ([::1]:45219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7bR7-0006q6-3s for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 21:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7bR0-0006oq-Be for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 21:24:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7bQx-0005oq-Ak for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 21:24:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7bQx-0005om-6b for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 21:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7bQw-0002JF-Ef for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 21:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Aug 2013 01:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15025-submit@debbugs.gnu.org id=B15025.13760114088803 (code B ref 15025); Fri, 09 Aug 2013 01:24:02 +0000 Original-Received: (at 15025) by debbugs.gnu.org; 9 Aug 2013 01:23:28 +0000 Original-Received: from localhost ([127.0.0.1]:48331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7bQM-0002Hs-Vr for submit@debbugs.gnu.org; Thu, 08 Aug 2013 21:23:27 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:43593 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7bQK-0002Hj-2e for 15025@debbugs.gnu.org; Thu, 08 Aug 2013 21:23:24 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V7bQJ-00074E-Jx; Thu, 08 Aug 2013 21:23:23 -0400 In-Reply-To: <5201AD43.4040105@yandex.ru> (Dmitry Antipov's message of "Wed, 07 Aug 2013 06:13:23 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) 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:77116 Archived-At: Dmitry Antipov writes: > On 08/07/2013 03:55 AM, Glenn Morris wrote: > >> Dan Nicolaescu wrote: >> >>> This seems to be reproducible. >>> >>> emacs compiled with Lucid toolkit >>> >>> The recipe here uses Xnest because it easy to kill/restart, probably the same >>> happens if the X session is killed. >>> >>> Xnest :1& >>> xterm -display :1& >>> >>> Now type in the xterm above: >>> emacs --daemon >>> >>> In a different xterm type: >>> emacsclient -t Makefile >>> (or any file that exists). >>> C-z > > Should I run "different xterm" connected to base (:0) server or nested (:1)? one connected to base. > Anyway, I can't reproduce it now. Could you please try to run Emacs daemon with -Q? I rebuilt my emacs, and I can reproduce it anymore. I do see the problem from time to time on my work machine, but I cannot reproduce it reliably. What should I look for when that happens? next_frame has that loop "while (passed < 2)" where emacs gets stuck, but prev_frame does not. Any idea what can it make it get stuck there? I run into another problem when trying to reproduce this: Xnest :1& xterm -display :1& Now type in the xterm above: emacs -Q --daemon In a different xterm in the default display (not in Xnest) type: emacsclient -t Makefile (or any file that exists). M-x C-z (suspend while in minibuffer) kill Xnest go to a different xterm and type emacsclient -t FOO where FOO is a file that exists. This will display "Makefile", not "FOO" --dan