Xcode 6.3 (6D532l): [Swift] Simple type conforming to 'Reflectable' causes infinite recursion ending in a stack overflow

Originator:janoschhildebrand
Number:rdar://19925918 Date Originated:23-Feb-2015
Status:Closed Resolved:08-Jun-2015
Product:Developer Tools Product Version:Xcode 6.3 (6D532l)
Classification:Serious Bug Reproducible:Always
 
Summary:
A custom type conforming to the 'Reflectable' protocol interrupts playground execution with an EXC_BAD_ACCESS exception when the playground tries to visualize a value of this type by accessing the mirror.

This crash does not occur when executing the same code in an ordinary command line project so it seems to be playground specific.

An example playground is attached. As well as an ASL log file showing the dumped stack trace.

Steps to Reproduce:
1. Open the attached playground
2. Wait for a few seconds for the error to appear

Expected Results:
This worked in previous releases so it should likely still work or at the very least not crash the playground execution service.

Actual Results:
The playground execution fails.

Version:
Xcode 6.3 (6D532l)
Apple Swift version 1.2 (swiftlang-602.0.42.4 clang-602.0.42)
OSX 10.10.2 (14C109)

Comments

Playground

https://www.dropbox.com/s/6p22mgspl55kj47/19925918.zip?dl=0

By janoschhildebrand at March 23, 2015, 10:57 a.m. (reply...)

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!