Max
Max

Reputation: 93

Cocos2d : crash with KERN_INVALID_ADDRESS in CoreFoundation

I got a crash in my app with the following crash report:

Incident Identifier: 16EF7339-4E8F-4083-9E63-9404BC0A5A3A
CrashReporter Key:   174928c573ccbe3e1a44d9bd43a33374a9833ab5
Hardware Model:      iPad3,1
Process:         Killer [2930]
Path:            /var/mobile/Applications/81EFF1B0-3DE0-4874-B7AA-0ACA60CBB3C2/Killer.app/Killer
Identifier:      Killer
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2013-01-15 20:05:27.000 +0100
OS Version:      iOS 6.0.1 (10A523)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x41d58a76
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x32e8e564 _cache_getImp + 4
1   libobjc.A.dylib                 0x32e8ef84 lookUpMethod + 24
2   libobjc.A.dylib                 0x32e901d2 class_respondsToSelector + 26
3   CoreFoundation                  0x38bac600 objectIsKindOfClass + 32
4   CoreFoundation                  0x38bac358 __handleUncaughtException + 64
5   libobjc.A.dylib                 0x32e93a62 _ZL15_objc_terminatev + 126
6   libc++abi.dylib                 0x33844078 _ZL19safe_handler_callerPFvvE + 76
7   libc++abi.dylib                 0x33844110 std::terminate() + 16
8   libc++abi.dylib                 0x33845594 __cxa_rethrow + 84
9   libobjc.A.dylib                 0x32e939cc objc_exception_rethrow + 8
10  CoreFoundation                  0x38af2f1c CFRunLoopRunSpecific + 452
11  CoreFoundation                  0x38af2d44 CFRunLoopRunInMode + 100
12  GraphicsServices                0x370a32e6 GSEventRunModal + 70
13  UIKit                           0x3a2c02f4 UIApplicationMain + 1116
14  Killer                          0x00063e38 main (main.m:14)
15  Killer                          0x000622bc start + 36

I really have no idea about how to debug this. Should i suspect a crash in a library called by my app ? Am i responsible for this crash, where to look at then ? Of course the line 14 in Killer main is:

int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");

thank you very much guys

Upvotes: 1

Views: 371

Answers (1)

sergio
sergio

Reputation: 69047

The crash log gives very little information. Anyway, I am puzzled by that:

objc_exception_rethrow
__cxa_rethrow

so it seems that there is some C++ exception handling going on. (Specifically, while handling an exception, another exception is thrown. This will cause terminate to be executed).

This might give you a hint. Are you using any C++ library?

You could also try and set NSSetUncaughtExceptionHandler but I suspect you are not able to reproduce the issue...

(Of course, it could well be some iOS SDK framework written in C++ to cause the exception, but just to check)...

Upvotes: 1

Related Questions