Lazy property value not initialized correctly after instantiation of a concrete subclass of a type-generic UIViewController

Originator:michele.titolo
Number:rdar://23760739 Date Originated:12/4/2015
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 9.1
Classification:Serious Bug Reproducible:Always
 
Summary:
In the same vein of rdar://23737778, some kinds of lazy properties are not properly initialized when instantiating a concrete subclass of a type-generic UIVC.

I've been able to reproduce issues with String and Dictionary, yet Array works fine.

Just like in the other issue, the dictionary has technically been initialized and doing anything with it causes a crash:

(lldb) p someValues
([Int : String]) $R0 = {}
(lldb) p someValues.count
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x18).

A lazy string ends up empty but does not cause a crash:
(lldb) po someString
""

Steps to Reproduce:
1. Open example project
2. Build & run
3. Tap the button twice (due to rdar://23737527)
4. Crash!

Expected Results:
I expect lazy properties to be initialized appropriately

Actual Results:
They are not initialized appropriately.

Version:
iOS 9.1 & Xcode 7.1

Notes:


Configuration:
All

Attachments:
'StoryboardLazyFail.zip' was successfully uploaded.

http://cl.ly/2O003T063L3z

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!