Xcode crashes on assertionFailure with long assertion message
Originator: | daniel | ||
Number: | rdar://35682220 | Date Originated: | 2017-11-24 |
Status: | Closed (dupe of 35487430) | Resolved: | |
Product: | Xcode | Product Version: | 9.1 (9B55) |
Classification: | crash | Reproducible: | always |
Summary: Xcode crashes when assertionFailure is called in an app with a message length of at least 588 chars. Steps to Reproduce: Run the attached project. Alternatively, put the following code into a new Swift iOS app's application(_:didFinishLaunchingWithOptions:): let assertionMessage = String(repeating: "x", count: 588) assertionFailure(assertionMessage) Expected Results: Execution is paused with a fatal error and Xcode drops into the debugger. Actual Results: Xcode crashes and the crash reporter comes up after a few seconds (see crash report in attachments) Version/Build: Mac OS 10.13.1 (17B48) Xcode 9.1 (9B55)
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!