Skip to content

[SR-11982] crash on autocomplete #54415

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

Open
swift-ci opened this issue Dec 31, 2019 · 1 comment
Open

[SR-11982] crash on autocomplete #54415

swift-ci opened this issue Dec 31, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-11982
Radar rdar://problem/58455060
Original Reporter jgullingsrud (JIRA User)
Type Bug
Environment

Swift 5.1.3 for ubuntu 18.04

Linux mint 19.3

kernel: 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019

Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug
Assignee None
Priority Medium

md5: 7b3e4d880da7fdd3fb820c337725afb4

Issue Description:

Defining a variable with let, then with var, then doing autocomplete, leads to a repeatable crash:

Welcome to Swift version 5.1.3 (swift-5.1.3-RELEASE).
Type :help for assistance.
1> let x = 42
x: Int = 42
2> var x = "foo"
x: String = "foo"
3> x.checked decl cannot have error type
(var_decl range=[<REPL Input>:2:5 - line:2:5] "x" type='String' interface type='String' access=internal readImpl=stored writeImpl=stored readWriteImpl=stored)
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/lldb[0x41f9f4]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/lldb[0x41da3c]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/lldb[0x41ff88]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f3a5d32a890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f3a545ede97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f3a545ef801]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e71631)[0x7f3a579a3631]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e71bc6)[0x7f3a579a3bc6]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e67e48)[0x7f3a57999e48]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e73548)[0x7f3a579a5548]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e76c5d)[0x7f3a579a8c5d]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e77c26)[0x7f3a579a9c26]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e7352c)[0x7f3a579a552c]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e75d58)[0x7f3a579a7d58]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e77ab2)[0x7f3a579a9ab2]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e7352c)[0x7f3a579a552c]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e73453)[0x7f3a579a5453]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1f1232e)[0x7f3a57a4432e]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1e5df13)[0x7f3a5798ff13]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x1b7096a)[0x7f3a576a296a]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x13af45a)[0x7f3a56ee145a]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x13aeec8)[0x7f3a56ee0ec8]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xd14aad)[0x7f3a56846aad]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa6cc9e)[0x7f3a5659ec9e]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9dec49)[0x7f3a56510c49]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa7cdee)[0x7f3a565aedee]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa7f039)[0x7f3a565b1039]
/usr/lib/x86_64-linux-gnu/libedit.so.2(el_wgets+0x1a7)[0x7f3a53e0adf7]
/usr/lib/x86_64-linux-gnu/libedit.so.2(el_gets+0x13)[0x7f3a53e063b3]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa7ea2d)[0x7f3a565b0a2d]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9df594)[0x7f3a56511594]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9c3c16)[0x7f3a564f5c16]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0x9c7d6f)[0x7f3a564f9d6f]
/opt/swift/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin/../lib/liblldb.so.7svn(+0xa86c2c)[0x7f3a565b8c2c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f3a5d31f6db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f3a546d088f]
Aborted (core dumped)

@beccadax
Copy link
Contributor

beccadax commented Jan 9, 2020

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the source tooling Area: IDE support, SourceKit, and other source tooling label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

3 participants