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
[SR-9914] LLDB REPL autocomplete cast assertion failure #4342
Comments
! jingham@apple.com (JIRA User), @dcci, have we seen this yet? |
I just tested it out with the MacOS 2/3/19 development toolchain, and I can also reproduce it there. |
Comment by Jim Ingham (JIRA) Same operation does not crash on the swift-5.0-branch. 1> pri
Available completions:
print(items: Any...) -> Void
print(items: Any..., separator: String, terminator: String) -> Void
print(items: Any..., separator: String, terminator: String, to: &TextOutputStream) -> Void
print(items: Any..., to: &TextOutputStream) -> Void
private
1> |
This is the new DWARFImporter. If I disable it, the crash goes away. |
The quick workaround is to disable the DWARFImporter in the REPL. The better fix is to not have the DWARFImporter claim that it can load a module for which no DWARF exists. I'll take a look at that. |
I have a patch coming for you. |
Proposed: apple/swift-lldb#1299 |
Merged. Let me know if there are other issues. |
Additional Detail from JIRA
md5: f317b009ecfa0fd922e0d73cb880a979
Issue Description:
I'm using the Feb 3, 2019 Ubuntu 18.04 Trunk Development Snapshot (https://swift.org/builds/development/ubuntu1804/swift-DEVELOPMENT-SNAPSHOT-2019-02-03-a/swift-DEVELOPMENT-SNAPSHOT-2019-02-03-a-ubuntu18.04.tar.gz).
If I start up the LLDB REPL and type `pri<TAB>`, I get:
As far as I can tell, the text that you are trying to complete doesn't matter. It always gives you the same assertion failure.
The text was updated successfully, but these errors were encountered: