O'Reilly logo

Memory Dump Analysis Anthology, Volume 9a by Dmitry Vostokov, Software Diagnostics Institute

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

PART 7: Linux Core Dump Analysis Patterns

 

NULL Pointer (Data)

This is a Linux variant of NULL Pointer (data) pattern previously described for Mac OS X (Volume 7) and Windows (Volume 3) platforms:

(gdb) bt​#0  0×0000000000400500 in procA ()​#1  0×000000000040057a in bar_two ()​#2  0×000000000040058a in foo_two ()​#3  0×00000000004005a2 in thread_two ()​#4  0×0000000000401630 in start_thread (arg=<optimized out>)​at pthread_create.c:304​#5  0×00000000004324e9 in clone ()​#6  0×0000000000000000 in ?? ()

 

(gdb) x/i 0x400500​=> 0x400500 <procA+16>: movl   $0x1,(%rax)

 

(gdb) info r $rax​rax            0×0 0

 

(gdb) x $rax​0×0: Cannot access memory at address 0×0

 

Stack Trace

This is a Linux variant of Stack Trace pattern previously described for Mac OS X (Volume ...

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