From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#18420: 24.3; interaction with external process hangs emacs Date: Mon, 08 Sep 2014 12:00:42 -0500 Message-ID: <85egvmyrlx.fsf@stephe-leake.org> References: <85y4tvn9ek.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410195749 28200 80.91.229.3 (8 Sep 2014 17:02:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2014 17:02:29 +0000 (UTC) To: 18420@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 19:02:21 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 1XR2Kb-0006AO-C8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2014 19:02:21 +0200 Original-Received: from localhost ([::1]:44807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR2Ka-0002XH-Qu for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2014 13:02:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR2KQ-0002WC-SK for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2014 13:02:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XR2KI-0007JD-V2 for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2014 13:02:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR2KI-0007J2-SR for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2014 13:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XR2KI-0002lE-HA for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2014 13:02:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <85y4tvn9ek.fsf@stephe-leake.org> Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Sep 2014 17:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18420 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18420-submit@debbugs.gnu.org id=B18420.141019566310545 (code B ref 18420); Mon, 08 Sep 2014 17:02:02 +0000 Original-Received: (at 18420) by debbugs.gnu.org; 8 Sep 2014 17:01:03 +0000 Original-Received: from localhost ([127.0.0.1]:34038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XR2JJ-0002jl-4k for submit@debbugs.gnu.org; Mon, 08 Sep 2014 13:01:02 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.232]:63071 helo=dnvrco-oedge-vip.email.rr.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XR2JE-0002jO-7j for 18420@debbugs.gnu.org; Mon, 08 Sep 2014 13:00:59 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:49976] helo=TAKVER) by dnvrco-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id E6/F7-06155-6C0ED045; Mon, 08 Sep 2014 17:00:55 +0000 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-RR-Connecting-IP: 107.14.64.142:25 X-Authority-Analysis: v=2.1 cv=FMWVxoYs c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=9XSUBuVRJI8A:10 a=Bi9pSSD5RJcA:10 a=08t0Cx2oaSgA:10 a=o_R75loqY_IA:10 a=9i_RQKNPAAAA:8 a=qTqS6GVTenFKoZhib3EA:9 X-Cloudmark-Score: 0 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:93161 Archived-At: A few more data points: - The hang occurs with emacs -Q - The hang does not occur with Cygwin Emacs 23.4 (so I can debug the external process, at least :) - I've built Emacs 23.3.93 pretest from source, with debugging information. The hang occurs there, and an attached debugger shows a full stack trace when it hangs: (gdb) thread 1 [Switching to thread 1 (Thread 5552.0x864)] #0 0x7709f93d in ntdll!ZwWriteFile () from C:\Windows\SysWOW64\ntdll.dll (gdb) where #0 0x7709f93d in ntdll!ZwWriteFile () from C:\Windows\SysWOW64\ntdll.dll #1 0x755912cc in WriteFile () from C:\Windows\syswow64\kernel32.dll #2 0x74b94035 in msvcrt!fprintf () from C:\Windows\syswow64\msvcrt.dll #3 0x74b940eb in write () from C:\Windows\syswow64\msvcrt.dll #4 0x01184f8f in sys_write (fd=, fd@entry=8, buffer=, buffer@entry=0xff1b00c, count=8969928, count@entry=7273) at w32.c:8337 #5 0x010b12a8 in emacs_full_write (fildes=8, buf=buf@entry=0xff1b00c "-- Abstract :\n--\n-- Emacs background process for Ada mode; parse buffer text, return wisi Actions.\n--\n-- Copyright (C) 2014 All Rights Reserved.\n--\n-- This program is free software; you can redis"..., nbyte=nbyte@entry=7273, process_signals=true) at sysdep.c:2297 #6 0x010b23f9 in emacs_write_sig (fildes=, buf=buf@entry=0xff1b00c, nbyte=nbyte@entry=7273) at sysdep.c:2334 #7 0x01141f75 in send_process (proc=267455925, buf=, len=, object=, object@entry=266841793) at process.c:5528 #8 0x01142325 in Fprocess_send_string (process=267455925, string=266841793) at process.c:5645 #9 0x01105430 in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x88e8d4) at eval.c:2818 #10 0x0113890f in exec_byte_code (bytestr=, vector=260525805, maxdepth=16, args_template=81815586, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:916 #11 0x01104ed5 in funcall_lambda (fun=260521925, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x88ea38) at eval.c:3049 #12 0x0110521b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x88ea34) at eval.c:2876 #13 0x0113890f in exec_byte_code (bytestr=, vector=260529781, maxdepth=20, args_template=81815586, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:916 #14 0x01104ed5 in funcall_lambda (fun=260526045, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x88eb98) at eval.c:3049 #15 0x0110521b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x88eb94) at eval.c:2876 #16 0x0113890f in exec_byte_code (bytestr=, vector=255630965, maxdepth=16, args_template=81815586, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:916 #17 0x01104ed5 in funcall_lambda (fun=255565773, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x88ecf8) at eval.c:3049 #18 0x0110521b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x88ecf4) at eval.c:2876 #19 0x0113890f in exec_byte_code (bytestr=, bytestr@entry=266875825, vector=vector@entry=255565797, maxdepth=maxdepth@entry=8, args_template=81815586, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:916 #20 0x0113b418 in Fbyte_code (bytestr=266875825, vector=255565797, maxdepth=8) at bytecode.c:482 #21 0x011048a7 in eval_sub (form=264366286) at eval.c:2191 #22 0x01107b66 in internal_lisp_condition_case (var=83517026, bodyform=, handlers=) at eval.c:1323 #23 0x01139983 in exec_byte_code (bytestr=, vector=255631045, maxdepth=24, args_template=81815586, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:1162 #24 0x01104ed5 in funcall_lambda (fun=255631149, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x88f028) at eval.c:3049 #25 0x0110521b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x88f024) at eval.c:2876 #26 0x0113890f in exec_byte_code (bytestr=, vector=255917973, maxdepth=8, args_template=81815586, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:916 #27 0x01104ed5 in funcall_lambda (fun=255917989, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x88f194) at eval.c:3049 #28 0x0110521b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x88f190) at eval.c:2876 #29 0x01106837 in apply1 (fn=fn@entry=263136994, arg=arg@entry=81815586) at eval.c:2581 #30 0x0110140f in Fcall_interactively (function=263136994, record_flag=84547650, keys=81836917) at callint.c:378 #31 0x01105419 in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x88f2ac) at eval.c:2822 #32 0x0113890f in exec_byte_code (bytestr=, vector=19070677, maxdepth=52, args_template=args_template@entry=4100, nargs=nargs@entry=2, args=, args@entry=0x88f428) at bytecode.c:916 #33 0x01104f62 in funcall_lambda (fun=19070637, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x88f428) at eval.c:2983 #34 0x0110521b in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x88f424) at eval.c:2876 #35 0x0113890f in exec_byte_code (bytestr=, vector=19070349, maxdepth=60, args_template=args_template@entry=2052, nargs=nargs@entry=2, args=, args@entry=0x88f594) at bytecode.c:916 #36 0x01104f62 in funcall_lambda (fun=19070301, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x88f594) at eval.c:2983 #37 0x0110521b in Ffuncall (nargs=3, args=args@entry=0x88f590) at eval.c:2876 #38 0x01106613 in Fapply (nargs=nargs@entry=2, args=args@entry=0x88f5f8) at eval.c:2354 #39 0x0110681f in apply1 (fn=fn@entry=82018402, arg=arg@entry=263985686) at eval.c:2588 #40 0x0110140f in Fcall_interactively (function=82018402, record_flag=81815586, keys=81836917) at callint.c:378 #41 0x01105419 in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x88f72c) at eval.c:2822 #42 0x0113890f in exec_byte_code (bytestr=, vector=19070677, maxdepth=52, args_template=args_template@entry=4100, nargs=nargs@entry=1, args=, args@entry=0x88f89c) at bytecode.c:916 #43 0x01104f62 in funcall_lambda (fun=19070637, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x88f89c) at eval.c:2983 #44 0x0110521b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x88f898) at eval.c:2876 #45 0x01105587 in call1 (fn=81861730, arg1=82018402) at eval.c:2614 #46 0x010a73e7 in command_loop_1 () at keyboard.c:1559 #47 0x01103963 in internal_condition_case ( bfun=bfun@entry=0x10a70c0 , handlers=81867042, hfun=hfun@entry=0x109ed50 ) at eval.c:1354 #48 0x0109a610 in command_loop_2 (ignore=81815586) at keyboard.c:1177 #49 0x0110386d in internal_catch (tag=81862402, func=func@entry=0x109a5f0 , arg=81815586) at eval.c:1118 #50 0x0109e9ba in command_loop () at keyboard.c:1156 #51 recursive_edit_1 () at keyboard.c:777 #52 0x0109ec8e in Frecursive_edit () at keyboard.c:848 #53 0x011b7dd8 in main (argc=, argv=0xd31b40) at emacs.c:1646 Is there any way to get lisp names from the Ffuncall entries? That would be nice. -- -- Stephe