[all-commits] [llvm/llvm-project] 97b579: [debugserver] Add one additional sleep before atta...

Alex via All-commits all-commits at lists.llvm.org
Thu Feb 23 11:22:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97b579d3140476cd32d94a6e052f0908e2c21228
      https://github.com/llvm/llvm-project/commit/97b579d3140476cd32d94a6e052f0908e2c21228
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M lldb/tools/debugserver/source/DNB.cpp

  Log Message:
  -----------
  [debugserver] Add one additional sleep before attaching after waiting

It's possible for debugserver to attach to a process during the handoff
between /usr/lib/dyld and the dyld in the shared cache. When that
happens, we may end up in a state where there is no dyld in the process
and our debugging session is doomed. To make that scenario a lot less
likely, we can insert a sleep right before attaching after waiting to
find the right pid.

rdar://105513180

Differential Revision: https://reviews.llvm.org/D144311




More information about the All-commits mailing list