[Bug corefiles/21395] thread.c:1010 internal-error: int is_executing(ptid_t): Assertion `tp' failed.

raajeshdasari at gmail dot com sourceware-bugzilla@sourceware.org
Thu Apr 20 11:01:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21395

raajeshdasari at gmail dot com <raajeshdasari at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1

--- Comment #2 from raajeshdasari at gmail dot com <raajeshdasari at gmail dot com> ---
I have added few log messages in mips_linux_new_thread function in
mips-linux-nat.c file .

Added log message inside this "if" block.
if (ptrace (PTRACE_SET_WATCH_REGS, tid, &watch_mirror, NULL) == -1)
     perror_with_name (_("Couldn't write debug register"));

I see that ptrace call() for one thread is failed and hence "Couldn't write
debug register: No such process" error is seen while trying to attach a multi
threaded application.

I also checked the ERROR code in the failure scenario, error code is ESRCH.

Could someone please look into this and provide some inputs.

Regards,
Rajesh.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list