[lldb-dev] [Bug 23612] New: LLDB fails to detect attaching twice to the same process

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 21 04:40:37 PDT 2015


            Bug ID: 23612
           Summary: LLDB fails to detect attaching twice to the same
           Product: lldb
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: ravithejawork at gmail.com
    Classification: Unclassified

While debugging with LLDB, if we try to attach to a process that is already
attached to the debugger, it does not detect that the user is trying to attach
twice to the same process. While this situation is detected in GDB which issues
a warning but LLDB kills the running process and when tries to reattach, it
fails since the process being requested is the same that it killed.

Steps to reproduce
1) Start debugging session with LLDB
2) Put breakpoint anywhere in the beggining
3) Run command "process attach <pid>" where pid is the launched process
4) There is a running process, kill it and attach?: [Y/n] Y
Process 21193 exited with status = 9 (0x00000009) 
error: Invalid arguments for 'process attach'.
Usage: process attach <cmd-options>

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/20150521/b4eb15d0/attachment.html>

More information about the lldb-dev mailing list