Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] ftrace: Fix gdbserver crash when doing tstatus after detach or process exit
Date: Fri, 29 Apr 2016 12:46:00 -0000	[thread overview]
Message-ID: <0c7c5447-633e-496a-bd1a-0bd9a231fcfd@redhat.com> (raw)
In-Reply-To: <1459344024-2260-1-git-send-email-simon.marchi@ericsson.com>

On 03/30/2016 02:20 PM, Simon Marchi wrote:

> Instead, the solution I chose is to clear the
> all_agent_symbols_looked_up flag whenever we have no more current thread
> (process exit or detach).  I am not 100% sure it's correct, as there
> might be valid situations I don't know about where the agent is loaded
> but current_thread == NULL, so please correct me if I'm wrong.

There definitely are.  current_thread ends up set to NULL if the
current _thread_ exits, but the process is still around, with other
threads.

See:

 https://sourceware.org/ml/gdb-patches/2015-08/msg00152.html

Thanks,
Pedro Alves


      parent reply	other threads:[~2016-04-29 12:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 13:20 Simon Marchi
2016-04-28 17:04 ` Simon Marchi
2016-04-28 17:28   ` Simon Marchi
2016-04-29 12:10 ` Yao Qi
2016-04-29 12:46 ` Pedro Alves [this message]

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=0c7c5447-633e-496a-bd1a-0bd9a231fcfd@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@ericsson.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