We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attachment: Download
Xcode 10.2 (10E125) Swift 5 macOS Mojave 10.14.3 (18D109)
md5: 77d670bc06cfb10b7963cf397ea89825
Issue Description:
Steps to reproduce:
Open the attached reduction in Xcode.
Set a breakpoint on line 29 of GeneralPickerViewController.swift (the print("test") statement).
Build and run.
Tap the "crash test" button.
When you hit the breakpoint, if you have the Variables View open, lldb will crash.
Here is the reduction from the attached project:
import CoreData import Foundation import UIKit protocol PickerItemProvider: class { associatedtype PickerType func itemAt(_ indexPath: IndexPath) -> PickerType? } class FetchedPickerProvider<ProvidedType: NSManagedObject>: PickerItemProvider { typealias PickerType = ProvidedType func itemAt(_ indexPath: IndexPath) -> ProvidedType? { return nil } } class GeneralPickerViewController<ItemProvider: PickerItemProvider>: UIViewController where ItemProvider.PickerType: Equatable { var itemProvider: ItemProvider? var selectedItems = [ItemProvider.PickerType]() // <--- If I remove this line, lldb doesn’t crash. override func viewDidLoad() { super.viewDidLoad() print("test") // <--- Set your breakpoint on this line. } }
The text was updated successfully, but these errors were encountered:
@dcci, jingham@apple.com (JIRA User), is this familiar?
Sorry, something went wrong.
Comment by Jim Ingham (JIRA)
I haven't seen this before, I captured the crash in an Apple Radar as well.
Note, the crash is trying to get a type name for self, and crashes in:
swift::Mangle::ASTMangler::appendAssociatedTypeName(swift::DependentMemberType*)
But this doesn't repro for me with the swift-5.1 branch swiftc & lldb combo.
This has been fixed in 5.1 (and master). Please download a nightly toolchain to verify.
No branches or pull requests
Attachment: Download
Environment
Xcode 10.2 (10E125)
Swift 5
macOS Mojave 10.14.3 (18D109)
Additional Detail from JIRA
md5: 77d670bc06cfb10b7963cf397ea89825
Issue Description:
Steps to reproduce:
Open the attached reduction in Xcode.
Set a breakpoint on line 29 of GeneralPickerViewController.swift (the print("test") statement).
Build and run.
Tap the "crash test" button.
When you hit the breakpoint, if you have the Variables View open, lldb will crash.
Here is the reduction from the attached project:
The text was updated successfully, but these errors were encountered: