Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KERN_INVALID_ADDRESS

I got this Crash often Can you please help me to find out solution

Incident Identifier: BC2870F3-4119-462B-9B2E-2236E403E7C2
CrashReporter Key:   7d9cc50413d82f64739259a761dbb92e755b623d
Hardware Model:      iPhone3,1
Process:         project name [16361]
Path:            /var/mobile/Applications/7190A4F4-3A65-4663-9BEC-389AAFFE9851/project name.app/project name
Identifier:      project name
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-06-29 18:23:33.732 -0700
OS Version:      iPhone OS 5.1 (9B176)
Report Version:  104

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

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x362fdf78 0x362fa000 + 16248
1   CoreFoundation                  0x34e3ed2e 0x34e23000 + 113966
2   CFNetwork                       0x338ab190 0x338a9000 + 8592
3   CFNetwork                       0x338ab00a 0x338a9000 + 8202
4   CFNetwork                       0x338aafa2 0x338a9000 + 8098
5   Foundation                      0x30cfe15e 0x30cee000 + 65886
6   Foundation                      0x30cfe090 0x30cee000 + 65680
7   Foundation                      0x30cfe04e 0x30cee000 + 65614
8   project name                    0x00015c6c 0x1000 + 85100
9   libdispatch.dylib               0x30f01c52 0x30f01000 + 3154
10  libdispatch.dylib               0x30f0ce8a 0x30f01000 + 48778
11  CoreFoundation                  0x34eaf2a6 0x34e23000 + 574118
12  CoreFoundation                  0x34e3249e 0x34e23000 + 62622
13  CoreFoundation                  0x34e32366 0x34e23000 + 62310
14  GraphicsServices                0x3612e432 0x3612a000 + 17458
15  UIKit                           0x31f28e76 0x31ef7000 + 204406
16  project name                    0x0005ac10 0x1000 + 367632
17  project name                    0x00002804 0x1000 + 6148

above crash report i got from organizer, here it shows the KERN_INVALID_ADDRESS. I can't understand about this. Please Help me.

like image 573
user1516825 Avatar asked Jul 11 '12 06:07

user1516825


People also ask

What does Kern_invalid_address mean?

EXC_BAD_ACCESS (SIGSEGV) KERN_INVALID_ADDRESS means that the virtual address you're refererencing is not in the page tables or you don't have access. It's a virtual address that you're not allowed to access.

What is Exc_bad_access Kern_invalid_address?

EXC_BAD_ACCESS KERN_INVALID_ADDRESS crash is not due to memory leak, but due to the attempt to access an deallocated object. Example: if you used __weak typeof(self) weakSelf = self; and object has been released before you accessing it inside block you'll got the crash.

What is Exc_breakpoint?

EXC_BREAKPOINT (SIGTRAP) is a trace trap interrupted the process. It gives an attached debugger, if any, a chance to interrupt the process at a specific point in its execution.


1 Answers

This is an EXC_BAD_ACCESS type of code which relates to accessing deallocated memory. In order to find this you need to enable NSZombie objects. Press Option + Command + R and select the "Diagnostics" tab. Finally, click "Enable Zombie Objects". This should make the compiler stop on the line of code that is causing this crash.

Most likely you have released an object and then tried to access it afterwards.

like image 116
Jamie Avatar answered Oct 10 '22 16:10

Jamie