This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #1 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]