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

Originator:segiddins
Number:rdar://21143551 Date Originated:28-May-2015 11:09 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-6.3 (6D1002)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
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!