<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56346>56346</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb-server crashes on Windows when debugger disconnects
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jamal
      </td>
    </tr>
</table>

<pre>
    lldb-server appears to crash on Windows as the remote debugger disconnects, causing me to have to restart it each time I run debug.

```
PS C:\Users\WDKRemoteUser> .\lldb-server.exe platform --listen "*:1234" --server
Connection established.
error: lost connection
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.      Program arguments: C:\\Users\\WDKRemoteUser\\lldb-server.exe platform --listen *:1234 --server
1.      Program arguments: C:\\Users\\WDKRemoteUser\\lldb-server.exe platform --listen *:1234 --server
0x00007FF6415C1100 (0x000001B6A5F5BDA0 0x000000A4AF38FD28 0x0000000000000000 0x00007FFA66AF131E)
0x00007FF6415C71D3 (0x00007FF642638080 0x000000A4AF38FE40 0x000000A4AF38FE40 0x00007FFA71C912B0)
0x00007FF6415C8F84 (0x0000000000000000 0x00007FF64245EBED 0x0000000000000000 0x0000000000000000)
0x00007FF64245EB74 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFA737154E0 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x10 bytes(s)
0x00007FFA7468485B (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x2B bytes(s)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVMluo0AQ_Rq4tIx6YT1wABukaOYQxRnl3EAFSFis7ibL30-BHccZO9HMIZoWolWvuuu9KsErxuo17rqqWGlQT6CI3O1AKk3MSEoldUPGgdy1QzU-ayIRboAo6EcDpIJiqmu8UrW6HIcBSqMtvialnHQ71KSHuUgjn5ZdgTZSGdIaArJsiGkxf0XUNOwLORbdWDQ5vH16eJbwekvWlkgsb_0LVWrc7zY_bhYVM2CJjDgInrThwAuQXSfN_ah6slp1rTYwEItziydYinHhYoCZ_fk9z3rfRYstz2oLvNVAdVAGSo1IlZBu1IaUx6MHiT-zZJsRPRU9digJdoQt70bseB6CMTs9d8BzfDCnna576p1R1RgTOVSkHcpuqmAZ8H7whSwfjZIlHARsDQKkmvrdXGmBqEOWda3GWsmeSFVPPQxm5nob2cnUzga3QH8ztreZ_TEw9p_56QvFFeS57zJvzRileDbco5SlfuLlXrpJKDlANHGTXIT5hodH6H2RY7nE95OcCZZZPLrEFLCNeGdaUO6LkIZnTJn7BTQzBWwdMZ7ST5jCPHRPerqoFsldL0uzzec9na5LTEuB4Gumf4fOmZJABMxzM_oNTGg9qdRw2yiQ1dXQmttmGh6RB5NIl-I1RknxagBtKtSXxLl-6IZe-j3ibkw3f_R7fdvZDD9ow9e5tqMR2lUsqkhE0jat6eCDZS92AfrUqZ8bGC4atD2pLv5oR3VrmqlwyrHHYLalw7baqfEB72DYaj3NynLPF65vN7FfVYIKWYiykDQIuYhcvwgYrXyBrBXYnSyg07HlpWizAzyTpcTsv97GbmNOOacBxV-acZc7fum6PguiMmT3JUSR5VLoZdsdXdJW8SJptk5Mzr7wbqG21LqtB4CFDuvLyTSjih9kLzt7IY4X4b8BpvrxSg">