iOS App crash with SIGTRAP in iPhone 6 plus?

Kirit Modi picture Kirit Modi · Aug 14, 2015 · Viewed 14.4k times · Source

I have an app which is written in swift and uses AFNetwork and some other helpers written in Obj c. On my clients device (iPhone 6+) he is getting an SIGTRAP error, I have tried to recreate the issue on the testing devices that we have and on all the simulators but could not recreate it.

Below is the stack trace, it crashed twice: http://paste.ubuntu.com/12077304/ When I symbolicate the crash report it is pointing to:

-[Instagram getOwnBaseUrl] (in DiaryApp) (Instagram.m:118)

And on the second instance it point to:

[UIAlertView(AFNetworking) showAlertViewForTaskWithErrorOnCompletion:delegate:cancelButtonTitle:otherButtonTitles:]_block_invoke (in DiaryApp) (UIAlertView+AFNetworking.m:72)

Crash Log : http://paste.ubuntu.com/12077328/

I am not able to pin point the exact cause for the crash. Any help in this regard will be highly appreciated.

Thanks.

Answer

Anbu.Karthik picture Anbu.Karthik · Aug 14, 2015

SIGTRAP is not the error it is the exception. It doesn't show the origin of the crash. This exceptions throw into Main thread on Main/Next Runloop, so the stacktrace of the main thread does not show the origin of it.

It happen like NSArray indexOutOfBounds or library or anything else

reference link

signal Types

enter image description here