O'Reilly logo

Accelerated Mac OS X Core Dump Analysis: Training Course Transcript and GDB Practice Exercises by Dmitry Vostokov, Memory Dump Analysis Services

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

Selected Patterns

(edited free material published online by Software Diagnostics Institute, www.DumpAnalysis.org)

NULL Pointer (data)

This is a Mac OS X / GDB counterpart to NULL Pointer (data) pattern1 previously described for Windows platforms:

(gdb) bt
#0 0×000000010d3b0e90 in bar () at main.c:15
#1 0×000000010d3b0ea9 in foo () at main.c:20
#2 0×000000010d3b0ec4 in main (argc=1, argv=0×7fff6cfafbf8) at main.c:25

(gdb) disassemble
Dump of assembler code for function bar:
0×000000010d3b0e80 <bar+0>:      push %rbp
0×000000010d3b0e81 <bar+1>:      mov %rsp,%rbp
0×000000010d3b0e84 <bar+4>:      movq $0×0,-0×8(%rbp)
0×000000010d3b0e8c <bar+12>:     mov -0×8(%rbp),%rax
0×000000010d3b0e90 <bar+16>:     movl $0×1,(%rax) 0×000000010d3b0e96 <bar+22>: pop %bp 0×000000010d3b0e97 ...

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