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#18396: 24.3.1; On windows, process-send-string can freeze Emacs Date: Tue, 09 Sep 2014 21:45:23 +0300 Message-ID: <83mwa8ab0c.fsf@gnu.org> References: <87k35kod3w.fsf@loki.jorgenschaefer.de> <831trsinu3.fsf@gnu.org> <20140903204307.0bcf515c@forcix> <83zjegh6kh.fsf@gnu.org> <20140903212833.14562b90@forcix> <83y4u0gkse.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1410288386 4785 80.91.229.3 (9 Sep 2014 18:46:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 18:46:26 +0000 (UTC) Cc: 18396@debbugs.gnu.org To: forcer@forcix.cx Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 20:46:19 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 1XRQQl-0000Vo-8D for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 20:46:19 +0200 Original-Received: from localhost ([::1]:51403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRQQk-0002wa-Oo for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 14:46:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRQQc-0002v0-B1 for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 14:46:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRQQV-0008Ik-DN for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 14:46:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRQQV-0008Ie-AM for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 14:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XRQQU-0003aZ-Du for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 14:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Sep 2014 18:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18396 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18396-submit@debbugs.gnu.org id=B18396.141028832513741 (code B ref 18396); Tue, 09 Sep 2014 18:46:02 +0000 Original-Received: (at 18396) by debbugs.gnu.org; 9 Sep 2014 18:45:25 +0000 Original-Received: from localhost ([127.0.0.1]:35656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRQPs-0003ZX-4X for submit@debbugs.gnu.org; Tue, 09 Sep 2014 14:45:24 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:39153) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRQPo-0003ZF-3x for 18396@debbugs.gnu.org; Tue, 09 Sep 2014 14:45:21 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NBN00900DA1G200@mtaout26.012.net.il> for 18396@debbugs.gnu.org; Tue, 09 Sep 2014 21:43:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NBN003FHDBVU350@mtaout26.012.net.il>; Tue, 09 Sep 2014 21:43:08 +0300 (IDT) In-reply-to: <83y4u0gkse.fsf@gnu.org> 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:93207 Archived-At: > Date: Thu, 04 Sep 2014 05:51:45 +0300 > From: Eli Zaretskii > Cc: 18396@debbugs.gnu.org > > > > > Does Emacs have a chance to check for a pipe to be writable before > > > > doing so? The whole process blocking like this feels a bit weird. > > > > > > I don't know how to do such a check with pipes on Windows. More > > > importantly, how would that help? The pipe will fill up anyway, and > > > the communications with Python will stop. Being able to interrupt > > > with C-g vs killing the subprocess is not such a big win, IMO. > > > > Well, if the deadlock hypothesis is correct, Emacs would check if the > > pipe is writable, notice that it isn't and keep checking, to notice > > that the pipe is readable, read data, and thus break the deadlock. > > See above: there's no interconnection between reading and writing, so > that's not the problem. I've just posted a tentative patch for the deadlock problem in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18420#20. If some of your users can build their own Emacs, please ask them to apply the patch and see if it resolves the problem. Thanks.