Swift 2: Crash in Mirror(reflecting:).children

Originator:jp
Number:rdar://22866270 Date Originated:25-Sep-2015 05:14 PM
Status:Resolved Resolved:11-Jan-2016 10:00 AM
Product:Developer Tools Product Version:Xcode-7 (7A218)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Passing some values to Mirror(reflecting:).children causes an EXC_BAD_ACCESS.

Steps to Reproduce:
1. Clone https://github.com/realm/realm-cocoa/tree/jp-reflection-bug
2. open RealmSwift.xcodeproj
3. Run unit tests with the RealmSwift scheme and Mac target

Repeat until crash.

Expected Results:
Tests pass.

Actual Results:
Accessing the reflection of a Swift object causes a crash.

Regression:
The tests pass prior to the last commit of the jp-reflection-bug branch.

Comments

This appears to be fixed as of Xcode 7.3 beta (7D111g).

Also see https://github.com/realm/realm-cocoa/issues/2528 for more details. I apologize for not being able to further minimize the repro case.


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!