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

    <tr>
        <th>Summary</th>
        <td>
            [`lldb-dap`] Exception Code: 0x80000003 on windows (build by vs2022)
        </td>
    </tr>

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

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

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

<pre>
    * Error message

```text
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Exception Code: 0x80000003
 #0 0x00007ff64d68801c HandleAbort C:\Users\valor\Desktop\Code\nativepkgs\deps\llvm\llvm\lib\Support\Windows\Signals.inc:424:0
 #1 0x00007ff64d818d7d raise minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547:0
 #2 0x00007ff64d809878 abort minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71:0
 #3 0x00007ff64d5e8cab std::terminate(void) C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include\exception:182:0
 #4 0x00007ff64d5d9090 std::thread::~thread(void) C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include\thread:98:0
 #5 0x00007ff64d629b6b lldb_dap::DAP::~DAP(void) C:\Users\valor\Desktop\Code\nativepkgs\deps\llvm\lldb\tools\lldb-dap\DAP.cpp:66:0
 #6 0x00007ff64d8455f2 lldb_dap::`dynamic atexit destructor for 'g_dap'' (C:\Users\valor\Desktop\Code\nativepkgs\out\llvm\win-msvc\amd64\bin\lldb-dap.exe+0x2955f2)
 #7 0x00007ff64d820a93 __crt_fast_decode_pointer vccrt\vcruntime\inc\internal_shared.h:506:0
 #8 0x00007ff64d820a93 <lambda_f03950bc5685219e0bcd2087efbe011e>::operator() minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp:206:0
 #9 0x00007ff64d8206e9 __crt_seh_guarded_call<int>::operator()<<lambda_7777bce6b2f8c936911f934f8298dc43>,<lambda_f03950bc5685219e0bcd2087efbe011e> &,<lambda_3883c3dff614d5e0c5f61bb1ac94921c> > vccrt\vcruntime\inc\internal_shared.h:204:0
#10 0x00007ff64d820b99 _execute_onexit_table minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp:231:0
#11 0x00007ff64d809503 <lambda_6e4b09c48022b2350581041d5f6b0c4c>::operator() minkernel\crts\ucrt\src\appcrt\startup\exit.cpp:232:0
#12 0x00007ff64d8093c5 __crt_seh_guarded_call<void>::operator()<<lambda_d80eeec6fff315bfe5c115232f3240e3>,<lambda_6e4b09c48022b2350581041d5f6b0c4c> &,<lambda_2358e3775559c9db80273638284d5e45> > vccrt\vcruntime\inc\internal_shared.h:224:0
#13 0x00007ff64d809657 common_exit minkernel\crts\ucrt\src\appcrt\startup\exit.cpp:278:0
#14 0x00007ff64d7deffb __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:295:0
#15 0x00007ffae6a7257d (C:\WINDOWS\System32\KERNEL32.DLL+0x1257d)
#16 0x00007ffae836af28 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x5af28)
```

* Build steps (PowerShell)

```powershell
PS ...path...> git clone -b add-llvm --depth=1 https://github.com/valord577/nativepkgs.git
PS ...path...> cd .\nativepkgs
PS ...path...> ${env:LIB_RELEASE} = "0"  # build debug output

# auto enter vs env (2019/2022) and print cmake command line
PS ...path...> .\build_win-msvc_amd64.ps1 llvm

...

# output to nativepkgs\out\
```

* How the errmsg show (vscode extensions - `llvm-vs-code-extensions.lldb-dap`)

<img width="1520" alt="Screenshot 2024-07-04 at 11 16 57" src="https://github.com/llvm/llvm-project/assets/30427460/8ba133f7-942e-4b78-a5e4-9dc819526491">


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMV1Fv2zgS_jXMC2GBIkWJevCDK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