Skip to main content
  • 557 Accesses

Abstract

In this chapter, you will use the pattern approach to diagnose and debug a common problem type in the Windows operating system: resource leaks.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    When installing Python, you also need to select debug symbol files to have meaningful stack traces.

  2. 2.

    I may have a bug in WinDbg !handle extension version I used at the time of this writing or its incompatibility with the possible Windows handle table changes as this version of the debugger doesn’t show Thread handle type and there are inconsistencies in the !htrace WinDbg command output.

  3. 3.

    For Linux, the Valgrind tool can be used for tracing resource handles like file descriptors, for example, https://developers.redhat.com/articles/2023/01/09/how-use-valgrind-track-file-descriptors.

  4. 4.

    https://learn.microsoft.com/en-gb/windows-hardware/drivers/debugger/debugger-download-tools

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Vostokov, D. (2024). Case Study: Resource Leaks. In: Python Debugging for AI, Machine Learning, and Cloud Computing. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-9745-2_11

Download citation

Publish with us

Policies and ethics