swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.48k stars 10.35k forks source link

Repl crash #62263

Open dabrahams opened 1 year ago

dabrahams commented 1 year ago
➜  ~ swift repl
Welcome to Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51).
Type :help for assistance.
  1> func f() -> [some Collection<Int>] { [1...3] }
  2> f()
/System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot1/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/lldb/lldb-1400.0.38.13/swift/lib/Demangling/Demangler.cpp:344: assertion failed for Node 0x14698aa88: Child
/System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot1/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/lldb/lldb-1400.0.38.13/swift/lib/Demangling/Demangler.cpp:344: Node 0x14698aa88 is:
kind=Type

[1]    77711 abort      swift repl
➜  ~

I also got the attached crash from similar causes, which has a much more informative stack trace.

AnthonyLatsis commented 1 year ago

➜ ~ swift repl

Wasn’t the integrated REPL removed?

dabrahams commented 1 year ago

Apparently that command runs the LLDB repl now, and the swift command by itself just complains with usage documentation.

AnthonyLatsis commented 1 year ago

I get it now, it traps on main for me because I skip the early swift-driver.