<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJztmV1v2zYUhn-NfUNIkKnvC1-ktbMF9dYgyRDsqqDII0srTQoiFSf_foeSEkde16YttuTChq0vki8fHlLyeaFCi4flBanYHZBaGcukBEHMvi4t0YrsayX03pBSS6nxZEtsBWTb1QJccWVtY2bh2Yye43e_3_t9S1-3WzzHlkpqJvrSsDPY3Hu8Zmb0PWFKkAvCpNEDANeqrLddiwSzJDBgyfXtxfnN-ebsl-tZuPKM-ExmNL5efbj6-PEGj4h3Mb2AXXWmxa2sC9wO4_A25Os1HPswUOyWMM51K_qx6qMRlrrtdmYySNtf7pTwjN4BbmRna62Mt69AebbVXSHBVFpbN_wxxO6wF_G08h67pudRFCWpC8yLeuV619S9FPNMvWskeBXgNH1ROYjDCPcvVx9EYi96rpJm0QL3oT8LVrPgbNwmwfjtT9875fj9HwZag_tN3fkr_9dZuB4mo4VGDhVvQeIQwEXZDUVBK1z_5Lqvd4fNMY4k9mOf4iRnI5A79a7Wm_XZ9XpG85Hk5qEBgh1jABpcrC1hxtQYasVhrLFAAoLw7-hwfmYQ0M0UKVmNax4b45E0KEMT_OKO8uFuqBUiDvSSqW3HtkDaTtka4Y3tcBlRF9YSZchqGD3D3wJ_LgJS3u28ptV_Abf9qShcie5aDnhwKbstLgsXqlH8atDGK30oHvdHxT5vGtctrgAgYZINw7rsA0NMV-xqSxgpuq0LuW7tP1czlhnf0Y3T3t-PteKyw7vb3ee8ZaYiBeOfbcueIomRCQMS3Af4ScsyFUEpII1jN0nj5G_qomXtAx6t4A6kbqDF4xutJa_YMNhOfVb4LPCGeTCeGCruQFn_ntvHqq6mcY2L_tgFz4d7wHkM7heuV1wDB6zFAUtELKZcZNEzrNtxJWNAH4yFXUidPG9twQz4QspeNnWtJrL0SFaIZPH9sq7VRDY8ki1TYN8v61pNZKNj2QR-gNa1msjGx7J59iOy2GoimxxkOc_DLBI5J5cPF6q2nz656f5fllVd9CvrETOjDmPCmT7nFGWep2n06pxxFDqOCWh2BAplGb4FUMcxAc2PQHkC2VsAdRxPoO6hEhyBJgWu2jcA6jgmoIvJvRQwiNhbmHqHMeGkU86Cs7x4fc7YYUw4wylnxnj0BiaeOowJZzTlDPMkYK_OiU9QxJhwxkecWUjhDXA6jAlnMvmri0TCA_7df3XUtZrIps9leZrhnRF8S_bD-ur39Sak_mqzGZIe12oim01kSx5lcfFl2T-vb9a_9bLKIuYhBNjiIPn1LP4bxcAr3Vuyg3FDz9W36e3bV2f3UjKLyfvOHLD9Zrx2VBUN3fNaThq94H-n_tPG8iWxPTikfwnhyTKdLNPJMp0s08kynSzTyTKdLNNrc54s08kynSzTyyzT0WuSMaXG9NGljYf3a7XpL-jONp0luiQCGlACFK_BuPPHfI7sq5pXxADsMOFWmmC-XEjYmenLGYo59bt6h0nwLF7hEKf5bIewXl9q_G1tq65wV7hW1q0I9BhYh9I0SRf4fD9fxAHN00WYeymmkaVguRdCzL2opKWXcyZwPRUB1sbMFyEbtX0K0VwsQ5GHOZuzzla6Xcq6E1ptq44taDjvWrmckg00I4LLuMfdky2g57UxHbj3UnGID_J5tSwWPInLMImyIA5jURYQRxQz7yKEBP-CorlkBUizxIigAVGwJ72EMyPxav7zBPWSBpQGCxoEWRBEsV-ycJGnYZxHABRSOosC2KF3erIQcwyEk3S-AgslGrCDv5g7R7ZVAD0wEtraSlg-c4m928DZP7yp9ec907IH-hvD-mEJ>53311</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
swift repl crashed on windows.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
liudonghua123
</td>
</tr>
</table>
<pre>
I have installed swift on windows following the guide on https://www.swift.org/download/#using-downloads, and I also have configured `set SWIFTFLAGS=-sdk %SDKROOT% -I %SDKROOT%/usr/lib/swift -L SDKROOT%/usr/lib/swift/windows` according to https://forums.swift.org/t/found-some-solutions-when-troubleshooting-installing-swift-on-windows/44467, https://forums.swift.org/t/compiling-a-simple-hello-swift-on-windows/40534/7, https://forums.swift.org/t/swift-5-4-windows/47841/3.
```
C:\Users\Liu.D.H>swift repl
Welcome to compnerd.org Swift version 5.5.2 (swift-5.5.2-RELEASE).
Type :help for assistance.
1> 1+2
Assertion failed: false && "called into swift language runtime stub", file D:\a\1\s\llvm-project\lldb\source\Plugins\LanguageRuntime\Swift\SwiftLanguageRuntime.cpp, line 368
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
#0 0x00007ff7d0fde755 (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\lldb.exe+0x1e755)
#1 0x00007ffd4a52cd84 (C:\Windows\System32\ucrtbase.dll+0x7cd84)
#2 0x00007ffd4a52dd61 (C:\Windows\System32\ucrtbase.dll+0x7dd61)
#3 0x00007ffd4a52f7ea (C:\Windows\System32\ucrtbase.dll+0x7f7ea)
#4 0x00007ffd4a52f6e1 (C:\Windows\System32\ucrtbase.dll+0x7f6e1)
#5 0x00007ffd4a52f981 (C:\Windows\System32\ucrtbase.dll+0x7f981)
#6 0x00007ffcc9384d9c PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x824d9c)
#7 0x00007ffccdf99774 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x5439774)
#8 0x00007ffccdf9eff3 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x543eff3)
#9 0x00007ffccdf9c6e8 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x543c6e8)
#10 0x00007ffccdf96b36 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x5436b36)
#11 0x00007ffcc90ae4a3 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x54e4a3)
#12 0x00007ffcc90bca9b PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x55ca9b)
#13 0x00007ffcc908ac46 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x52ac46)
#14 0x00007ffcc903960a PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x4d960a)
#15 0x00007ffcc903832e PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x4d832e)
#16 0x00007ffd4a4d6c0c (C:\Windows\System32\ucrtbase.dll+0x26c0c)
#17 0x00007ffd4c7854e0 (C:\Windows\System32\KERNEL32.DLL+0x154e0)
#18 0x00007ffd4cfc485b (C:\Windows\SYSTEM32\ntdll.dll+0x485b)
C:\Users\Liu.D.H>
C:\Users\Liu.D.H>echo %SWIFTFLAGS%
-sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk/usr/lib/swift -L SDKROOT%/usr/lib/swift/windows
C:\Users\Liu.D.H>swift repl %SWIFTFLAGS%
Welcome to compnerd.org Swift version 5.5.2 (swift-5.5.2-RELEASE).
Type :help for assistance.
1> 1+2
Assertion failed: false && "called into swift language runtime stub", file D:\a\1\s\llvm-project\lldb\source\Plugins\LanguageRuntime\Swift\SwiftLanguageRuntime.cpp, line 368
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
#0 0x00007ff7d0fde755 (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\lldb.exe+0x1e755)
#1 0x00007ffd4a52cd84 (C:\Windows\System32\ucrtbase.dll+0x7cd84)
#2 0x00007ffd4a52dd61 (C:\Windows\System32\ucrtbase.dll+0x7dd61)
#3 0x00007ffd4a52f7ea (C:\Windows\System32\ucrtbase.dll+0x7f7ea)
#4 0x00007ffd4a52f6e1 (C:\Windows\System32\ucrtbase.dll+0x7f6e1)
#5 0x00007ffd4a52f981 (C:\Windows\System32\ucrtbase.dll+0x7f981)
#6 0x00007ffcc9384d9c PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x824d9c)
#7 0x00007ffccdf99774 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x5439774)
#8 0x00007ffccdf9eff3 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x543eff3)
#9 0x00007ffccdf9c6e8 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x543c6e8)
#10 0x00007ffccdf96b36 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x5436b36)
#11 0x00007ffcc90ae4a3 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x54e4a3)
#12 0x00007ffcc90bca9b PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x55ca9b)
#13 0x00007ffcc908ac46 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x52ac46)
#14 0x00007ffcc903960a PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x4d960a)
#15 0x00007ffcc903832e PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x4d832e)
#16 0x00007ffd4a4d6c0c (C:\Windows\System32\ucrtbase.dll+0x26c0c)
#17 0x00007ffd4c7854e0 (C:\Windows\System32\KERNEL32.DLL+0x154e0)
#18 0x00007ffd4cfc485b (C:\Windows\SYSTEM32\ntdll.dll+0x485b)
C:\Users\Liu.D.H>
```
And the following is the output of dependencies of lldb.exe which seemed no problems.
![image](https://user-images.githubusercontent.com/2276718/150297139-7755fda9-3e5c-4f2f-9cad-deb0767acedb.png)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztmV1v2zYUhn-NfUNIoKjvC1-kdbIF9bYgyVDsqqBIyuJKk4JIxcm_36GkxJHXtWmHLblw4FhfPC8fHlLyeaHK8IfVJWronUBSW0eVEhzZvawdMhrtpeZmb1FtlDJwsEWuEWjbSy785ca51i7iswW5gM9-vw-HyNB0WziGSK0M5cPVuLcQHjyeswvyHlHN0SWiypoRgBldy23fAcEiw1Y4dPPx8uL2YnP2080iXgeWf0YLkt6sP1z_9tst7KHgcn4CuuptB99KVvA9jiPYoK-38OzjQKFbRBkzHR_Gao5GWJuu39nZIN1wutc8sGYn4Ev1Thptg30jdOA601dK2MYY54c_pdjvDiKB0cFj1-QiSZIs94l5Ua_M7Fo5SNHAyl2rRNAImKYvKuM0TmD7cvVRJA2S5yp5kUSwjcMFXi_w2fSd4ekzHL73yun7363oLGw3sg_X4c-L-HycjE60amz4USgYgvBZ9kPRouO-f3QztLuDcMgjSsM0JDDJxQTkD4Pr88352c35gpQTye1DKxB0DAloYbF2iForIdWaialFBAQI4N-R8fjMAqCfKVRTCWsegmFPWZAhGXxgQ9h4N0gNiCO9onrb061AXa-dBHjrelhGxKe1Bhm0HkdP4T-Cf58Bpe52QduZPwVzwyGv_BXTd0zAzpXqt7AsfKom8etRG84MqXjcHl0OWdv6bmEFCBRnxTisqyExyPbVTjpEUdVvfcpN5_6-muGaDT3dNO3D_Sg1Uz3c3f4-Zx21Daoo--w6-pRJyEyMEb7H8JfXdc5xzUWepn6SpsnfyKqj3QPsrcWdUKYVHezfGqNYQ8fB9vqzhmdBMM6DDfjYcCe0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