Swift 1.2b3 - Compiler crash on dictionary literals with more than 1300 entries
Originator: | npankey | ||
Number: | rdar://20220559 | Date Originated: | 19-Feb-2015 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 6.3 Beta 3 (6D543q) |
Classification: | Crash | Reproducible: | Always |
Summary: Attempting to create a dictionary literal that has more than 1300 entries causes the Swift compiler to segfault. Array literals have a similar issue but the limit there is ~2600, e.g. double. Steps to Reproduce: 1. Install Xcode 6 Beta 3 and set that as the default via xcode-select 2. Run `swiftc LargeDict.swift` on the attached file Expected Results: Compiles successfully Actual Results: The compiler segfaults with the following result ❯ swiftc LargeDict.swift <unknown>:0: error: unable to execute command: Segmentation fault: 11 <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation) Version: Xcode 6.3 Beta 3 (6D543q) Notes: Discovered attempting to convert a large CSV file into a Swift dictionary literal Configuration: Xcode 6.3 Beta 3 on OS X 10.10
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
This still repros on the current version of Xcode in the app store - Xcode 6.3 (6D570)