Re: Reg : gdb crash is seen while attaching a process to gdb.
Yao Qi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAH=s-PPcmOkY-yPuGsDbE0L=Q=SC9qjw9afTZnHfRE_oMPTzVA@mail.gmail.com> |
On Fri, Mar 24, 2017 at 6:27 AM, RAJESH DASARI <[email protected]> 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 (齐尧)