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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
When installing Python, you also need to select debug symbol files to have meaningful stack traces.
- 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.
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.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
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
DOI: https://doi.org/10.1007/978-1-4842-9745-2_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-9744-5
Online ISBN: 978-1-4842-9745-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)