From: Michael Snyder <msnyder@vmware.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: GDB hangs on kill or quit (after following a fork child, not detaching from the parent)
Date: Thu, 18 Dec 2008 21:47:00 -0000 [thread overview]
Message-ID: <494AC3A5.1010301@vmware.com> (raw)
In-Reply-To: <200812182103.42148.pedro@codesourcery.com>
Pedro Alves wrote:
> On Thursday 18 December 2008 19:20:57, Michael Snyder wrote:
>
>>> When there are forks involved, linux_nat_kill calls into linux_fork_killall
>>> to do the killing. But, when following a fork child, and not
>>> detaching from the parent, we defer adding the child fork to the
>>> list of forks (which is confusing IMHO, see below),
>> Do you have any intuition as to why we did that?
>> I don't remember. Could it have been related to the
>> checkpoint case?
>>
>> Otherwise it could simply have been an oversight...
>
> Yeah, I should have mentioned it before: At first I also
> thought it was checkpoints related, then I noticed that
> when 'set follow-fork-mode' is child, checkpoints are broken
> for other reasons. It may well be that it always was (broken):
That would not be at all surprising. Since checkpoints use
forks as underlying implementation, I would not expect that
checkpoint and follow-child would play well together.
> I think that when checkpointing, we should always "follow"
> the parent anyway; and that the checkpoints support should be
> better insulated from the multi forks support, so that the
> multi-forks support can grow into full multi-process support.
Agreed. For starters, we might just document that checkpoints
are not defined to work for forking processes (or for multi-
threaded ones, for that matter).
>
>> I like your results, and your code changes look fine.
>> Can you confirm that it doesn't adversely affect the
>> checkpoint testsuites?
>
> Yep, had done that. No regressions in the checkpoints tests, or in
> the rest of the testsuite.
>
> I'll go check it in then.
OK.
next prev parent reply other threads:[~2008-12-18 21:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-12 21:14 Pedro Alves
2008-12-18 19:26 ` Michael Snyder
2008-12-18 21:04 ` Pedro Alves
2008-12-18 21:26 ` Pedro Alves
2008-12-18 21:47 ` Michael Snyder [this message]
2008-12-19 5:17 ` teawater
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=494AC3A5.1010301@vmware.com \
--to=msnyder@vmware.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox