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: RAJESH DASARI <raajeshdasari at gmail dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: GDB <gdb at sourceware dot org>
- Date: Sat, 25 Mar 2017 18:19:13 +0530
- 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> <CAH=s-PPcmOkY-yPuGsDbE0L=Q=SC9qjw9afTZnHfRE_oMPTzVA@mail.gmail.com>
Thanks for your quick response . Could you please share those patches , I will recompile the gdb with the patches and test the changes.
Regards,
Rajesh.
> On 24-Mar-2017, at 17:02, Yao Qi <qiyaoltc@gmail.com> wrote:
>
>> 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 (齐尧)