O'Reilly logo

Accelerated Mac OS X Core Dump Analysis: LLDB Exercises by Dmitry Vostokov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise A3 (LLDB)

Goal: Learn how to identify spiking threads

Patterns: Spiking Thread

1.          Load a core dump core.2374 and App3 executable:

$ lldb -c ~/Documents/AMCDA-Dumps/core.2374 -f ~/Documents/AMCDA-Dumps/Apps/App3/Build/Products/Release/App3
error: core.2374 is a corrupt mach-o file: load command 46 LC_SEGMENT_64 has a fileoff + filesize (0x160b7000) that extends beyond the end of the file (0x160b5000), the segment will be truncated Core file '/Users/DumpAnalysis/Documents/AMCDA-Dumps/core.2374' (x86_64) was loaded. Process 0 stopped * thread #1: tid = 0x0000, 0x00007fff8a10ce42 libsystem_kernel.dylib`__semwait_signal + 10, stop reason = signal SIGSTOP frame #0: 0x00007fff8a10ce42 libsystem_kernel.dylib`__semwait_signal + 10 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required