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#12829: 24.3.50; emacs_abort () called from w32proc.c:1128 Date: Sat, 10 Nov 2012 10:27:10 +0200 Message-ID: <83sj8hyiap.fsf@gnu.org> References: <509D529F.9090106@optusnet.com.au> <83wqxuy3bz.fsf@gnu.org> <509D64A4.9070608@optusnet.com.au> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352536080 6167 80.91.229.3 (10 Nov 2012 08:28:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2012 08:28:00 +0000 (UTC) Cc: 12829@debbugs.gnu.org To: Stephen Powell , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 10 09:28:10 2012 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 1TX6QB-0002QF-No for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Nov 2012 09:28:07 +0100 Original-Received: from localhost ([::1]:44903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX6Q2-00005z-7F for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Nov 2012 03:27:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX6Py-00005j-23 for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2012 03:27:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TX6Pu-0003zI-W9 for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2012 03:27:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX6Pu-0003zD-SV for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2012 03:27:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TX6Q6-0005ic-6I for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2012 03:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Nov 2012 08:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12829 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12829-submit@debbugs.gnu.org id=B12829.135253606021955 (code B ref 12829); Sat, 10 Nov 2012 08:28:02 +0000 Original-Received: (at 12829) by debbugs.gnu.org; 10 Nov 2012 08:27:40 +0000 Original-Received: from localhost ([127.0.0.1]:58792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TX6Pk-0005i3-8p for submit@debbugs.gnu.org; Sat, 10 Nov 2012 03:27:40 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35899) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TX6Ph-0005hs-CN for 12829@debbugs.gnu.org; Sat, 10 Nov 2012 03:27:38 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MD900400JE5YW00@a-mtaout22.012.net.il> for 12829@debbugs.gnu.org; Sat, 10 Nov 2012 10:27:03 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MD9004FYJH2WY90@a-mtaout22.012.net.il>; Sat, 10 Nov 2012 10:27:02 +0200 (IST) In-reply-to: <509D64A4.9070608@optusnet.com.au> X-012-Sender: halo1@inter.net.il X-Spam-Score: 1.5 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 1.5 (+) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66722 Archived-At: > Date: Fri, 09 Nov 2012 20:16:36 +0000 > From: Stephen Powell > CC: 12829@debbugs.gnu.org > > Ok this breakpoint 4 seems to have triggered just before the crash > > (gdb) break process.c:6278 if have != desired > Breakpoint 4 at 0x101f310: file process.c, line 6278. > (gdb) commands > Type commands for breakpoint(s) 4, one per line. > End with a line saying just "end". > >p have > >p desired > >p status > >continue > >end Thanks, that figures. Basically, the modified code that handles demise of child processes is incompatible with the emulated 'wait' function, because it does not support waiting for a process by its PID. I think we will have to rewrite 'sys_wait' to emulate 'waitpid', although I'll try first to come up with a simpler band-aid. Paul, are there other supported platforms that use 'wait' here? If there are, they are in danger of the same problem, because the new record_child_status_change assumes 'waitpid' functionality with the first argument non-negative. > Breakpoint 3, reap_subprocess (cp=0x144aaf0) at w32proc.c:1096 > 1096 cp->procinfo.hProcess = NULL; > #0 reap_subprocess (cp=0x144aaf0) at w32proc.c:1096 > #1 0x01022d26 in sys_wait (status=0x88f264) at w32proc.c:1236 > #2 0x0101f2fb in process_status_retrieved (desired=8032, have=-1, > status=0x88f264) at process.c:6274 > #3 0x0101f3be in record_child_status_change (pid=-1, w=256) at > process.c:6344 > #4 0x0101f65d in handle_child_signal (sig=18) at process.c:6417 > #5 0x010e0f64 in deliver_process_signal (sig=18, handler=0x101f643 > ) at sysdep.c:1580 > $26 = 7176 > > Breakpoint 4, process_status_retrieved (desired=8032, have=7176, > status=0x88f264) at process.c:6278 > 6278 return have == desired; > $27 = 7176 > $28 = 8032 > $29 = (int *) 0x88f264 Just so my understanding of the exact scenario is better, could you please add "bt 10" to the commands of breakpoint 4, the one set in process_status_retrieved, and again post the full transcript of the GDB session leading to the crash? Thanks.