Skip to main content

Posts

Showing posts with the label sigabrt

Smooth code, but SIGABRT

The crash log of SIGABRT from the device is pointing on the lines: NSArray *results = [self.managedObjectContext executeFetchRequest:request &error]; if ([results count] > 0 ) { // SIGABRT on this line. and (for the same device): if (myfunc(myobj)) { // SIGABRT on this line. where myobj is a pointer that must be nil from the app configuration, and it is initialized in the line just before the line of the crash. myfunc is a function looking like: BOOL myfunc(id object) { return object != nil; } so i would consider the second crash as myobj = something if (myobj != nil) { // SIGABRT on this line. My knowledge is not enough to understand the possibility of such crashes (probably they're even random) on certain devices (on the most devices everything works fine and stable). Anyone had such issues or have an experience debugging it ?