I have a very strange crash when using the Apple LLVM 3.0 compiler. So there is some code, that uses Assimp to load assets and create the scene (I've excluded all my code and even then it crashes):
aiScene* ai_scene = const_cast<aiScene*>(aiImportFileFromMemory(fileBuf, fInfo.uncompressed_size, aiProcessPreset_TargetRealtime_MaxQuality, NULL));
delete ai_scene;
Here is the screenshot of the stack trace for GCC:
And here is for LLVM:
In LLVM version destructor is called twice (and probably that's why I've got a crash).
I should also mention that all destructor code is located in header file and crashes only on device (tested on iPod 4 and iPad 2).
Is it a bug in LLVM compiler (probably in generation of arm assembly) or did I miss something?
Edit:
in case someone has similar problem use aiReleaseImport(scene)
instead of delete scene;