Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift repl crashed on windows. #53311

Closed
liudonghua123 opened this issue Jan 20, 2022 · 3 comments
Closed

swift repl crashed on windows. #53311

liudonghua123 opened this issue Jan 20, 2022 · 3 comments
Labels
invalid Resolved as invalid, i.e. not a bug

Comments

@liudonghua123
Copy link

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

@asl
Copy link
Collaborator

asl commented Jan 20, 2022

Tagging @compnerd

@asl
Copy link
Collaborator

asl commented Jan 20, 2022

But the issue is likely to be reported to swift bugtracker as it seems as some swift runtime libraries are simply missed.

@compnerd
Copy link
Member

I agree with @asl this is not the right place for reporting this issue. Furthermore, you have already posted on the Swift forums with the same issue, please allow time for people to respond - the Windows port is a volunteer port, people cannot respond immediately.

@EugeneZelenko EugeneZelenko added invalid Resolved as invalid, i.e. not a bug and removed new issue labels Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Resolved as invalid, i.e. not a bug
Projects
None yet
Development

No branches or pull requests

4 participants