KERN_INVALID_ADDRESS [英] 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
我从组织者那里得到的崩溃报告,这里显示了KERN_INVALID_ADDRESS。我无法理解这一点。请帮助我。
above crash report i got from organizer, here it shows the KERN_INVALID_ADDRESS. I can't understand about this. Please Help me.
推荐答案
这是一种EXC_BAD_ACCESS类型的代码,与访问解除分配的内存有关。为了找到这个,你需要启用NSZombie对象。按Option + Command + R并选择诊断选项卡。最后,单击启用僵尸对象。这应该使编译器停止在导致此崩溃的代码行上。
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.
这篇关于KERN_INVALID_ADDRESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!