Accelerated Linux Core Dump Analysis, Second Edition, Revised and Extended
Minimum price
Suggested price

Accelerated Linux Core Dump Analysis, Second Edition, Revised and Extended

Training Course Transcript with GDB and WinDbg Practice Exercises

About the Book

The full transcript of Software Diagnostics Services training. Learn how to analyze Linux process and kernel crashes and hangs, navigate through core memory dump space and diagnose corruption, memory leaks, CPU spikes, blocked threads, deadlocks, wait chains, and much more. This training uses a unique and innovative pattern-oriented diagnostic analysis approach to speed up the learning curve. The training consists of 30 practical step-by-step exercises using GDB and WinDbg debuggers highlighting almost 40 memory analysis patterns diagnosed in 64-bit core memory dumps from x64 and ARM64 platforms. The training also includes source code of modeling applications, a catalog of relevant patterns from Software Diagnostics Institute, and an overview of relevant similarities and differences between Windows and Linux memory dump analysis useful for engineers with Wintel background. In addition to the fully revised x64 Linux process dump analysis exercises using GDB, the second edition now includes x64 Linux kernel core dump analysis using crash tool and ARM64 Linux process dump analysis using WinDbg. The new revised and extended edition includes additional kernel core dump analysis exercises.

About the Author

Dmitry Vostokov
Dmitry Vostokov

Dmitry Vostokov is an internationally recognized expert, speaker, educator, scientist, inventor, and author. He is the founder of pattern-oriented software diagnostics, forensics, and prognostics discipline (Systematic Software Diagnostics), and Software Diagnostics Institute. Vostokov has also authored more than 50 books on software diagnostics, anomaly detection and analysis, software and memory forensics, root cause analysis and problem solving, memory dump analysis, debugging, software trace and log analysis, reverse engineering and malware analysis. He has more than 25 years of experience in software architecture, design, development and maintenance in a variety of industries including leadership, technical and people management roles. Dmitry also founded Syndromatix,, BriteTrace, DiaThings, Logtellect, OpenTask Iterative and Incremental Publishing, Software Diagnostics Technology and Services (former Memory Dump Analysis Services), and Software Prognostics. In his spare time, he presents various topics on Debugging TV and explores Software Narratology, its further development as Narratology of Things and Diagnostics of Things (DoT), Software Pathology, and Quantum Software Diagnostics. His current areas of interest are theoretical software diagnostics and its mathematical and computer science foundations, application of formal logic, artificial intelligence, machine learning and data mining to diagnostics and anomaly detection, software diagnostics engineering and diagnostics-driven development, diagnostics workflow and interaction. Recent interest areas also include cloud native computing, security, automation, functional programming, applications of category theory to software diagnostics, development and big data, and diagnostics of artificial intelligence.

Dmitry Vostokov

Episode 213

Table of Contents

About the Author 7

Presentation Slides and Transcript 9

Core Dump Collection 31

Practice Exercises 41

Exercise 0 (x64, GDB) 46

Exercise 0 (A64, WinDbg Preview, WinDbg, Docker) 48

Exercise A1 (x64, GDB) 64

Exercise A1 (A64, WinDbg Preview) 76

Exercise A2D (x64, GDB) 93

Exercise A2D (A64, WinDbg Preview) 97

Exercise A2C (x64, GDB) 101

Exercise A2C (A64, WinDbg Preview) 104

Exercise A2S (x64, GDB) 109

Exercise A3 (x64, GDB) 113

Exercise A3 (A64, WinDbg Preview) 116

Exercise A4 (x64, GDB) 121

Exercise A4 (A64, WinDbg Preview) 127

Exercise A5 (x64, GDB) 134

Exercise A5 (A64, WinDbg Preview) 137

Exercise A6 (x64, GDB) 142

Exercise A6 (A64, WinDbg Preview) 157

Exercise A7 (x64, GDB) 184

Exercise A8 (x64, GDB) 190

Exercise A8 (A64, WinDbg Preview) 205

Exercise A9 (x64, GDB) 229

Exercise A9 (A64, WinDbg Preview) 244

Exercise A10 (x64, GDB) 258

Exercise A10 (A64, WinDbg Preview) 271

Exercise A11 (x64, GDB) 280

Exercise A11 (A64, WinDbg Preview) 289

Exercise A12 (x64, GDB) 297

Exercise A12 (A64, WinDbg Preview) 307

Exercise K1 (x64, GDB) 317

Exercise K2 (x64, GDB) 367

Exercise K3 (x64, GDB) 382

Exercise K4 (x64, GDB) 395

Exercise K5 (x64, GDB) 420

Selected Q&A 429

App Source Code 435

App0 437

App1 438

App2D 439

App2C 441

App2S 443

App3 445

App4 447

App5 449

App6 451

App7 453

App8 455

App9 458

App10 460

App11 / App12 462

K2 464

K3 465

K4 467

K5 469

Selected Analysis Patterns 471

NULL Pointer (Data) 473

Incomplete Stack Trace 474

Stack Trace 475

NULL Pointer (Code) 476

Spiking Thread 477

Dynamic Memory Corruption (Process Heap) 478

Execution Residue (User Space) 479

Coincidental Symbolic Information 481

Stack Overflow (User Mode) 482

Divide by Zero (User Mode) 483

Local Buffer Overflow (User Space) 484

C++ Exception 485

Paratext 486

Active Thread 488

Lateral Damage 489

Critical Region 490

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub