Mixing arc/nonarc broken when instantiating in +load / iOS4

Originator:nategriswold
Number:rdar://12154257 Date Originated:8/22/2012
Status:Resolved Resolved:
Product:iPhone SDK Product Version:4.4.1
Classification:Crash/Hang/Data Loss Reproducible:Always
 
22-Aug-2012 02:44 PM Nate Griswold:
Summary:

In the latest Xcode (currently 4.4.1), there is a crash when using arc-enabled code in a nonarc project. Specifically, the arc-enabled code must instantiate an arc object in a +load method. The crash only occurs for 4-series simulators. Note that the project itself does pass -fobjc-arc to ld via the Xcode 'other link flags' option. The crash does not occur when using Xcode 4.3.3 or 5-series simulators.

Steps to Reproduce:

Run attached project in Xcode 4.4.1

Expected Results:

Startup, white screen

Actual Results:

Crash at startup with dyld: Symbol not found: _objc_release

Regression:

This is a regression, as running the project in Xcode 4.3.3 does not elicit a crash

Notes:

Again, this is a problem for iOS 4 only.


22-Aug-2012 02:44 PM Nate Griswold:
'ArcCrashTest.zip' was successfully uploaded

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!