[lldb-dev] [Bug 47826] New: Cannot attach to a process with exited leader thread (TID==PID)
via lldb-dev
lldb-dev at lists.llvm.org
Tue Oct 13 09:08:17 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47826
Bug ID: 47826
Summary: Cannot attach to a process with exited leader thread
(TID==PID)
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: jan.kratochvil at redhat.com
CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org
There does not need to exist a thread with TID equal to the process PID. That
TID could already exit while other TIDs of that PID may be still running.
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=432b4d03ad0f23970315e9f9dec080ab4a9ab94b
simplified and deGPLed as: https://people.redhat.com/jkratoch/leader-exit2.C
Currently LLDB server cannot attach to such TID as:
lldb-server g --attach >TID< :1234
ptrace(PTRACE_ATTACH, >PID<) = -1 EPERM (Operation not permitted)
write(2, "error: failed to attach to pid >TID<: Operation not permitted\n",
64) = 64
02295e6d1a1559f0689aeca09d98f468e3f29d9a = 2020-10-12
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20201013/7b2580d7/attachment.html>
More information about the lldb-dev
mailing list