SIGPIPE exception in iOS project with integrated BUMP API

I am experiencing a SIGPIPE error in my Xcode project. This error was started until a week before. If I commented on this method call: [self configureBump]; everything is working fine. I have included the BUMP API in my project. This API works for up to a week without problems. I am not sure about the cause of this error. Can someone help me solve this error? Some of my friends also reported this error.

Xcode Version: 4.5 iOS Version: iOS 6.0 / iOS 5.0

Please see the stack trace below:

 * thread #1: tid = 0x1c03, 0x95a887d2 libsystem_kernel.dylib`mach_msg_trap + 10, stop reason = signal SIGPIPE frame #0: 0x95a887d2 libsystem_kernel.dylib`mach_msg_trap + 10 frame #1: 0x95a87cb0 libsystem_kernel.dylib`mach_msg + 68 frame #2: 0x029ef13a CoreFoundation`__CFRunLoopServiceMachPort + 186 frame #3: 0x02952580 CoreFoundation`__CFRunLoopRun + 1312 frame #4: 0x02951db4 CoreFoundation`CFRunLoopRunSpecific + 212 frame #5: 0x02951ccb CoreFoundation`CFRunLoopRunInMode + 123 frame #6: 0x03093879 GraphicsServices`GSEventRunModal + 207 frame #7: 0x0309393e GraphicsServices`GSEventRun + 114 frame #8: 0x017a0a9b UIKit`UIApplicationMain + 1175 frame #9: 0x00002dd7 iCard`main + 199 at main.m:17 frame #10: 0x00002185 iCard`start + 53 
+7
source share
1 answer

There is a possibility that SIGPIPE thrown on the socket timeout or not / lost connection inside this library. Perhaps on their side or something, a server failure may occur.

You can get around ignoring SIGPIPE with:

 signal(SIGPIPE, SIG_IGN); 

or

 signal(SIGPIPE, SO_NOSIGPIPE); 

Read more about this link .

Alternatively, you can debug further by setting the handler function with

signal(SIGPIPE, yourHandlerFunc);

and check the status of the sockets / ivars / etc in it.

+7
source

All Articles