From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17510: 24.3.91; Problem with `emacs --daemon' in cygw32 build Date: Sun, 18 May 2014 18:11:34 +0300 Message-ID: <83wqdjceah.fsf@gnu.org> References: <53764FD9.8090600@cornell.edu> <53766FBC.1000601@cornell.edu> <5377F335.2080609@cornell.edu> <831tvremfz.fsf@gnu.org> <5378C404.8050405@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1400425946 28325 80.91.229.3 (18 May 2014 15:12:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2014 15:12:26 +0000 (UTC) Cc: 17510@debbugs.gnu.org, dmantipov@yandex.ru To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 18 17:12:18 2014 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 1Wm2l5-0001LS-UB for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 May 2014 17:12:16 +0200 Original-Received: from localhost ([::1]:43796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm2l5-0001cN-DG for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 May 2014 11:12:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm2kx-0001cH-EN for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 11:12:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wm2ks-0008Oc-IV for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 11:12:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm2ks-0008OV-Ea for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wm2kr-0002az-Pn for bug-gnu-emacs@gnu.org; Sun, 18 May 2014 11:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 May 2014 15:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17510 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17510-submit@debbugs.gnu.org id=B17510.14004259049947 (code B ref 17510); Sun, 18 May 2014 15:12:01 +0000 Original-Received: (at 17510) by debbugs.gnu.org; 18 May 2014 15:11:44 +0000 Original-Received: from localhost ([127.0.0.1]:52297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wm2kZ-0002aM-8t for submit@debbugs.gnu.org; Sun, 18 May 2014 11:11:43 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:48958) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wm2kU-0002a1-SH for 17510@debbugs.gnu.org; Sun, 18 May 2014 11:11:40 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N5R00K00Z0PJ300@mtaout27.012.net.il> for 17510@debbugs.gnu.org; Sun, 18 May 2014 18:08:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5R00FYXZDRW160@mtaout27.012.net.il>; Sun, 18 May 2014 18:08:15 +0300 (IDT) In-reply-to: <5378C404.8050405@cornell.edu> X-012-Sender: halo1@inter.net.il 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:89210 Archived-At: > Date: Sun, 18 May 2014 10:30:28 -0400 > From: Ken Brown > CC: 17510@debbugs.gnu.org, dmantipov@yandex.ru > > On 5/18/2014 12:32 AM, Eli Zaretskii wrote: > > Thanks, but you need to be more selective: which one of these changes > > is the root cause, and why? > > It's not easy to be selective; these aren't independent changes. There > used to be a `w32_display_name_list', which Dmitry removed. Along with > this change, he removed the code that used to be in x_delete_display (to > delete a display from the list) and replaced it by a FIXME. Perhaps that FIXME is not relevant to Cygwin, and the removed code should be retained in the Cygwin build. > > In general, everything that is related to one_w32_display_info is > > specific to the WINDOWSNT port, so perhaps the problem is that the > > Cygwin-w32 build is incorrectly treated the same. But where exactly? > > Looking at the code, I don't see why this problem is specific to the > Cygwin-w32 build. If the Cygwin-w32 build wants more (or less) than one display_info object, then that part _is_ specific to Cygwin, because the native Windows build has only one such object that is never deleted. > Can you reproduce it in the Windows build? The native Windows build doesn't support --daemon, so no, I can't. > I *think* what must be happening in the recipe that I gave for this bug > is that every time a client frame is closed, x_delete_display is called. > Before Dmitry's change, this would actually delete something from a > list. Now it doesn't, and the server gets messed up and ultimately dies > on the third attempt to create a client frame. See above: try restoring that code for Cygwin only. > Unless there's an obvious fix for this, it seems to me that we're far > enough into the pretest that we should just revert to the old code, at > least for emacs-24. That would revert a useful cleanup, which I'm not sure is a good idea at this point.