This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] ftrace: Fix gdbserver crash when doing tstatus after detach or process exit
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Fri, 29 Apr 2016 13:46:23 +0100
- Subject: Re: [PATCH] ftrace: Fix gdbserver crash when doing tstatus after detach or process exit
- Authentication-results: sourceware.org; auth=none
- References: <1459344024-2260-1-git-send-email-simon dot marchi at ericsson dot 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