Chapter 8. Common Debugging Scenarios, Part 1

In this chapter

Debugging Access Violations
Debugging Heap Corruptions
Debugging Stack Corruptions
Debugging Stack Overflows
Debugging Handle Leaks
Debugging User-Mode Memory Leaks
Debugging Kernel-Mode Memory Leaks
Summary

This chapter presents various examples of crashes and resource leaks, and it shows the most efficient strategies to debug them. Because these reliability bugs are sometimes hard to reproduce, this chapter also covers the techniques required to get more consistent reproducible cases for each bug category, which enables you to then inspect the failures using the debugger.

The examples presented in this chapter demonstrate how to apply many of the concepts and tools introduced in the previous ...

Get Inside Windows® Debugging now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.