This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Reg : gdb crash is seen while attaching a process to gdb.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: RAJESH DASARI <raajeshdasari at gmail dot com>
- Cc: GDB <gdb at sourceware dot org>
- Date: Fri, 24 Mar 2017 11:32:30 +0000
- Subject: Re: Reg : gdb crash is seen while attaching a process to gdb.
- Authentication-results: sourceware.org; auth=none
- References: <CAPXMrf8TH66vZtp+9riDpDR4fBizip5-LQtZ9+1nSfVaywTLxg@mail.gmail.com>
On Fri, Mar 24, 2017 at 6:27 AM, RAJESH DASARI <raajeshdasari@gmail.com> wrote:
>
> Quit anyway? (y or n) y
> gdb-7.12.1/gdb/thread.c:1010: internal-error: int
> is_executing(ptid_t): Assertion `tp' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Quit this debugging session? (y or n) y
>
> This is a bug, please report it. For instructions, see:
> <http://www.gnu.org/software/gdb/bugs/>.
>
> gdb-7.12.1/gdb/thread.c:1010: internal-error: int
> is_executing(ptid_t): Assertion `tp' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Create a core file of GDB? (y or n) y
> Aborted (core dumped)
>
>
> I notice this problem only for some processes, there are few more
> multi-threaded processes which are not showing this problem. Could you
> please share some pointers on what could be causing this gdb crash.
>
>
I suspect it is related to the improper management of thread_info's
refcount. I've already had some patches in my local tree, but don't
have time posting them. Let me find them, and polish them.
--
Yao (齐尧)