From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Powell <stephen_powell@optusnet.com.au>,
Paul Eggert <eggert@cs.ucla.edu>
Cc: 12829@debbugs.gnu.org
Subject: bug#12829: 24.3.50; emacs_abort () called from w32proc.c:1128
Date: Sat, 10 Nov 2012 10:27:10 +0200 [thread overview]
Message-ID: <83sj8hyiap.fsf@gnu.org> (raw)
In-Reply-To: <509D64A4.9070608@optusnet.com.au>
> Date: Fri, 09 Nov 2012 20:16:36 +0000
> From: Stephen Powell <stephen_powell@optusnet.com.au>
> 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
> <handle_child_signal>) 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.
next prev parent reply other threads:[~2012-11-10 8:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 23:47 bug#12829: 24.3.50; emacs_abort () called from w32proc.c:1128 Stephen Powell
2012-11-08 3:46 ` Eli Zaretskii
2012-11-08 15:48 ` Stephen Powell
2012-11-09 9:41 ` Eli Zaretskii
2012-11-09 18:59 ` Stephen Powell
2012-11-09 19:38 ` Eli Zaretskii
2012-11-09 20:16 ` Stephen Powell
2012-11-10 8:27 ` Eli Zaretskii [this message]
2012-11-10 14:56 ` Eli Zaretskii
2012-11-10 21:44 ` Paul Eggert
2012-11-11 3:50 ` Eli Zaretskii
2012-11-10 15:45 ` Stephen Powell
2012-11-10 16:09 ` Eli Zaretskii
2012-11-10 18:03 ` Stephen Powell
2012-11-10 18:34 ` Eli Zaretskii
2012-11-17 7:09 ` Eli Zaretskii
2012-11-17 15:35 ` Paul Eggert
2012-11-17 15:40 ` Eli Zaretskii
2012-11-17 16:50 ` Eli Zaretskii
2012-11-17 15:32 ` Stephen Powell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83sj8hyiap.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=12829@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=stephen_powell@optusnet.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).