Xcode-6.3 (6D1002): [Swift] Segault in _buildNominalTypeName

Originator:wagner
Number:rdar://21611744 Date Originated:30-Jun-2015 05:38 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-6.3 (6D1002)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
I believe the bug I am reporting has already been filed under rdar://21143551
Confirmed still exists in Xcode 6.3.2. Cannot test on Xcode 7 due to Swift 2 requirement.
Causes one of my Playgrounds to not work. My backtrace is attached.

Original bug:

Summary:

There’s a segfault when calling toString() on the valueType received from reflection

Steps to Reproduce:
let reflection = reflect(object)

            for i in 0..<reflection.count {
                    let propertyMirror = reflection[i].1
                    let propertyValueType = propertyMirror.valueType
                    let typeName = toString(propertyValueType)
            }

Expected Results:
typeName should contain a valid string representation of the type name

Actual Results:
See attached backtrace

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!