From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: process_send_string blocks? Date: Sun, 07 Sep 2014 03:21:24 -0500 Message-ID: <85tx4jn8mz.fsf@stephe-leake.org> References: <85y4txdvbh.fsf@stephe-leake.org> <83r3zpcctv.fsf@gnu.org> <85ppf8evwu.fsf@stephe-leake.org> <83oausdgka.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410078129 26947 80.91.229.3 (7 Sep 2014 08:22:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2014 08:22:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 10:22:02 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 1XQXjW-0004yW-1Q for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2014 10:22:02 +0200 Original-Received: from localhost ([::1]:37508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQXjV-0005em-EW for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2014 04:22:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQXjF-0005ef-4v for emacs-devel@gnu.org; Sun, 07 Sep 2014 04:21:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQXj9-0002nh-Q7 for emacs-devel@gnu.org; Sun, 07 Sep 2014 04:21:45 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.227]:61013 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQXj9-0002nP-L4 for emacs-devel@gnu.org; Sun, 07 Sep 2014 04:21:39 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:49904] helo=TAKVER) by dnvrco-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id AF/29-08080-0951C045; Sun, 07 Sep 2014 08:21:36 +0000 In-Reply-To: <83oausdgka.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Sep 2014 16:28:05 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-RR-Connecting-IP: 107.14.64.130:25 X-Authority-Analysis: v=2.1 cv=d5x7yHTE c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=9XSUBuVRJI8A:10 a=s72kT6VaQ4sA:10 a=fvGhXoG7zBsA:10 a=o_R75loqY_IA:10 a=9i_RQKNPAAAA:8 a=mDV3o1hIAAAA:8 a=ORSlvgLFZjmU_6EUKl8A:9 a=ii61gXl28gQA:10 a=FMD1XRJ_Ct4A:10 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-Received-From: 107.14.73.227 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:174064 Archived-At: 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. I'm sure there are bugs in the external code, but I'm having a hard time reproducing the bugs with purely external testing. So I need Emacs to stop hanging, so I can find the bugs that cause it to hang :). In general, nothing the external process does should hang Emacs, short of crashing the OS. > Btw, do you see the problem in "emacs -Q"? Yes, but only with the full external process code and full Ada mode code. I'm working on getting the Emacs source compiled and connected to a debugger. 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. This is gdb 7.7 from AdaCore, distributed with GNAT GPL 2014, which I used to build the external process. -- -- Stephe