From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: process_send_string blocks? Date: Sun, 07 Sep 2014 18:44:51 +0300 Message-ID: <83egvncu4s.fsf@gnu.org> References: <85y4txdvbh.fsf@stephe-leake.org> <83r3zpcctv.fsf@gnu.org> <85ppf8evwu.fsf@stephe-leake.org> <83oausdgka.fsf@gnu.org> <85tx4jn8mz.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1410104723 10835 80.91.229.3 (7 Sep 2014 15:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2014 15:45:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 17:45:14 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XQeeQ-0001Kw-Li for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2014 17:45:14 +0200 Original-Received: from localhost ([::1]:38552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQeeQ-00049G-5f for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2014 11:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQee6-00049A-0w for emacs-devel@gnu.org; Sun, 07 Sep 2014 11:44:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQee0-0003eE-Lw for emacs-devel@gnu.org; Sun, 07 Sep 2014 11:44:53 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:38767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQee0-0003dw-D2 for emacs-devel@gnu.org; Sun, 07 Sep 2014 11:44:48 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NBJ00D00FNOQ500@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 07 Sep 2014 18:44:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NBJ00DO1FQMB9A0@a-mtaout21.012.net.il>; Sun, 07 Sep 2014 18:44:46 +0300 (IDT) In-reply-to: <85tx4jn8mz.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174066 Archived-At: > From: Stephen Leake > Date: Sun, 07 Sep 2014 03:21:24 -0500 > > Eli Zaretskii writes: > > >> From: Stephen Leake > >> > >> I have a reliable reproducer, which I can easily simplify. > > > > Please do simplify it and post it. Having a way of debugging this by > > several people will definitely make the process more efficient, and > > probably produce a higher quality solution. > > Posted bug#18420. Unfortunately, when I simplify the external process > code, the hang goes away; I don't understand why, yet. Too bad it cannot be simplified. > In general, nothing the external process does should hang Emacs, short > of crashing the OS. Not sure what you are saying here. How can a crashing OS hang Emacs? > > Btw, do you see the problem in "emacs -Q"? > > Yes, but only with the full external process code and full Ada mode > code. So you are saying that sending text to the subprocess somehow depends on the major mode? That'd be surprising. > I did manage to attach a debugger to the running processes; that's a > first for me :). It was useful for the Ada code (compiled with debug > info), but not for the Emacs process; it says the stack is corrupted. See my response to the bug report: most probably, you are running an optimized binary, where backtraces blatantly lie.