UIApplicationMain malloc error

We have an existing application that we're testing with the Xcode 7 and iOS 9 betas, and we're able to run successfully on iPhone 6


However on iPad Air 2 it crashes immediately in the call to UIApplicationMain, which is called directly from the main function (we're using SDL2 ihttps://www.libsdl.org/download-2.0.phpif that's at all relevant). This error is shown in the console output:


malloc: *** error for object 0x***: pointer being freed was not allocated

*** set a breakpoint in malloc_error_break to debug


Setting the malloc_error_break yields no relevant info.


Any hints or ideas would be much appreciated!

Putting the device in Air Plane mode has allowed us to work around the issue. Upgrading to the Xcode 7 beta 4 gave us a full call-stack, looks like it was crashing when trying to load a font for use in the status bar.

UIApplicationMain malloc error
 
 
Q