Search Issue Tracker

Fixed

Votes

0

Found in

4.6.2p1

Issue ID

671495

Regression

No

IL2CPP: 3D array access generates code which segfaults on iOS

Scripting

-

The attached project will, when built for iOS using IL2CPP, generate code which halts with EXC_BAD_ACCESS. Tested with Unity 4.6.2p1. Issue was presented while on-site with Zynga, an Enterprise Support customer.

Preconditions: Have an iOS device attached, have Unity 4.6.2p1 installed.

Reproduction Steps:
1 - Unzip attached "IL2CPP3DArray.zip" project and open in Unity 4.6.2p1.
2 - Ensure build settings are set to iOS using IL2CPP for the Universal build target.
3 - Build & Run project.
4 - Observe Unity build and postprocess project using IL2CPP
5 - XCode opens, builds project and deploys it to the device
6 - (EXPECTED) In the Xcode log, a Unity logline similar to "System.Single" appears.
6 - (OBSERVED) EXC_BAD_ACCESS thrown, project crashes. See attached screenshot & crash dump.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.