Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to understand and solve crash report: SIGSEGV, SEGV_ACCERR

I am getting sometimes this crash report:

Name: SIGSEGV
Reason: SEGV_ACCERR
Stack Trace:

0 MyApp 0x00070456 0x1000 + 455766
1 MyApp 0x0007a34d 0x1000 + 496461
2 MyApp 0x0007a4f1 0x1000 + 496881
3 MyApp 0x000d31dd 0x1000 + 860637
4 MyApp 0x00067f0f 0x1000 + 421647
5 MyApp 0x0005ad69 0x1000 + 367977
6 MyApp 0x000081e3 0x1000 + 29155
7 MyApp 0x00008ae9 0x1000 + 31465
8 CoreFoundation 0x35a547e4 __invoking___ + 68
9 CoreFoundation 0x359af7b1 -[NSInvocation invoke] + 160
10 Foundation 0x3556268f -[NSInvocationOperation main] + 114
11 Foundation 0x354fb393 -[__NSOperationInternal start] + 862
12 Foundation 0x35564793 __block_global_6 + 102
13 libdispatch.dylib 0x348dec59 _dispatch_call_block_and_release + 12
14 libdispatch.dylib 0x348e1817 _dispatch_worker_thread2 + 258
15 libsystem_c.dylib 0x32e0edfb _pthread_wqthread + 294

I don't understand this crash report. Also I don't know when this is happening.

Is there a way to find out more about this crash?

How can i solve this issue?

like image 944
brush51 Avatar asked Jul 25 '12 08:07

brush51


2 Answers

You need to symbolicate the crash report, which will convert the addresses in line 0 to 7 into meaningfull classes, methods and line numbers. Usually Xcode does that automatically if you still have the binary of the build that caused the crash around.

like image 94
Kerni Avatar answered Nov 14 '22 11:11

Kerni


Question is old but there is better way then John Smith answer.

Currently the best approach is run using profiler (in XCode: Product/Profile) using respective template.
Most probably you need to use "Zombies" template which is now also supported on device :) not only on emulator. When using this tool you have grater chance for spotting incorrect use of memory.

like image 26
Marek R Avatar answered Nov 14 '22 12:11

Marek R