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

    <tr>
        <th>Summary</th>
        <td>
            Exception 0xC0000005 while loading debugee in eclipse.
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          nikitin-
      </td>
    </tr>
</table>

<pre>
    Hello!

I'm trying to setup a "debug session" for *.exe file in eclipse  (Eclipse Version: 2024-06 (4.32.0)).
I'm using "custom toolchain" for building *.exe in eclipse/cdt. 
This "custom toolchain" involves Microsoft Visual Studio's (2019 / c++17)  "cl.exe / link.exe"

I have installed the "lldb debugger" via https://github.com/mstorsjo/llvm-mingw/releases
this is the version to be installed: 
https://github.com/mstorsjo/llvm-mingw/releases/tag/20240619
in particular:
https://github.com/mstorsjo/llvm-mingw/releases/download/20240619/llvm-mingw-20240619-msvcrt-x86_64.zip

So ... 
When launching the debug session in eclipse for my application (that uses third-party dll's) - I got the follwowing stacktrace: 

```
Exception Code: 0xC0000005
 #0 0x00007ffe5841a48a llvm::pdb::GlobalsStream::findRecordsByName(llvm::StringRef, llvm::pdb::SymbolStream const&) const (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\libLLVM-18.dll+0x1efa48a)
 #1 0x00007ffe5b700e38 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x820e38)
 #2 0x00007ffe5b14360b PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x26360b)
 #3 0x00007ffe5b5903bc PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x6b03bc)
 #4 0x00007ffe5b46a1ea PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x58a1ea)
 #5 0x00007ffe5b46a527 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x58a527)
 #6 0x00007ffe5b1067f9 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x2267f9)
 #7 0x00007ffe5b106e11 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x226e11)
 #8 0x00007ffe5b10f541 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x22f541)
 #9 0x00007ffe5b231236 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x351236)
#10 0x00007ffe5b232023 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x352023)
#11 0x00007ffe5b148c06 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x268c06)
#12 0x00007ffe5b230e15 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x350e15)
#13 0x00007ffe5b2af769 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x3cf769)
#14 0x00007ffe5b3a7ef4 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x4c7ef4)
#15 0x00007ffe5b684696 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x7a4696)
#16 0x00007ffe5b688a39 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x7a8a39)
#17 0x00007ffe5b688382 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x7a8382)
#18 0x00007ffe5b686423 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x7a6423)
#19 0x00007ffe5b68605f PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x7a605f)
#20 0x00007ffe5b688eb4 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x7a8eb4)
#21 0x00007ffe5b73e562 PyInit__lldb (D:\llvm\llvm-mingw-20240619-msvcrt-x86_64in\liblldb.dll+0x85e562)
#22 0x00007ffeb7a1b0ea (C:\Windows\System32\msvcrt.dll+0x3b0ea)
#23 0x00007ffeb7a1b1bc (C:\Windows\System32\msvcrt.dll+0x3b1bc)
#24 0x00007ffeb61b7ac4 (C:\Windows\System32\KERNEL32.DLL+0x17ac4)
#25 0x00007ffeb7e3a4e1 (C:\Windows\SYSTEM32
tdll.dll+0x5a4e1)

```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0mEuP2zgSxz8NfSEsUKX3wYd-eTfYTrCIgwR7CiiqZDOhRUOk7PZ--kFJnbZpZDIYZNRo2LJZ_P9YDxVUls7pbYe4Ytk9yx4XcvA72686_V173S0XtW3Oq3-jMZZBzMQjE3fT6zsGxZ77_qy7LfeWO_TDgUvOABqshy136Jy2HQPgre05g7sIX5C32iDXHUdl9MEh5wzKp9frz9iPW5I7DgLSpchpNY0SiASDikEVXcMHR2wGoAbn7Z57a43aSf3GrAdtmslmgl-4DNaq8RGf9D7ttPszId0drTmi4--16q2zreeftRuk4Rs_NNoyKGhvCSKuOIM1VwzuGdzHBYOKj6pmhNOa0d13-sAAgmDynTzS8ZyXxmDD_Y7swZim5mM4t9jTYY5a8p33B8eSOwZrBuut9ruhjpTdM1jvnbe9-2YZrI057pd73W1PDNY9GpQO3UTz5K12I-Q4hZwyWF8dgFIwGf8ODdZebhmsKZkij6tJUXf8IHuv1WBkT8r_AKexp85Y2VzDrq2XP75d7t1R9X75UuZf8zT6vz5c52FjeRT9KIovO-y4kUOndmON75AHlX1dxVRt-zOXh4PRSnpaZVD6nfR8cEih1n2zJLfPvDGGaoaqY8nf8a31o3Zr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