Windows Debugging Demystified

Slides:



Advertisements
Similar presentations
Advanced Troubleshooting with Debug Diagnostics on IIS 6
Advertisements

Windows XP Kernel Architecture Mike Karlsven James Farrer Jason Smith.
User-Mode Linux Ken C.K. Lee
Daniel Pearson David Solomon Expert Seminars SVR302.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
1 Module 1 The Windows NT 4.0 Environment. 2  Overview The Microsoft Operating System Family Windows NT Architecture Overview Workgroups and Domains.
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
Case Study: Windows 2000 Part I Will Richards CPSC 550 Spring 2001.
64bit Development Overview March 28 Microsoft. Objectives Learn about the current 64-bit platforms from a hardware, software and tools perspective Review.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
Optimised Desktop Paul Butterworth Enterprise Technology Strategist Microsoft Corporation.
Internet Explorer 8 For Developers Gal Kogman BNL
MDOP 2010: Diagnostic and Recovery Toolset (DaRT) Speaker Fabrizio Grossi
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
Device Driver Presented By: Syed Zulfiqar Ali Qurat Ul Ain Aslam
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
WDK Driver Test Manager. Outline HCT and the history of driver testing Problems to solve Goals of the WDK Driver Test Manager (DTM) Automated Deployment.
var site="s15gizmodo" var site="s15gizmodo"
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
MDK-ARM Microcontroller Development Kit MDK: Microcontroller Development Kit.
W INDOWS BLUE SCREEN OF DEATH AFTER CRASH DEBUGGING Alex Mclean Amy Valley Derek Visch.
Debugging Print And Imaging Drivers. Print driver team philosophy on driver quality There are tools to detect violations Wrongful development assumptions.
Hands-On Microsoft Windows Server 2008
Windows Kernel Internals Traps, Interrupts, Exceptions
Basic STOP Error (Blue Screen) Troubleshooting Doug Allen Support Professional PSS Premier Setup Team Microsoft Corporation.
Three fundamental concepts in computer security: Reference Monitors: An access control concept that refers to an abstract machine that mediates all accesses.
Kernel, processes and threads Windows and Linux. Windows Architecture Operating system design Modified microkernel Layered Components HAL Interacts with.
Windows 2000 Course Summary Computing Department, Lancaster University, UK.
SQL Server Crash Dump Analysis A brief tour with WinDbg and other ugly tools Pablo Álvarez Doval Debugging & Optimization Team Lead
Pradeep Kumar C Support Escalation Engineer Windows Azure Diagnostics Logging and Monitoring in the Cloud.
Chapter 33 Troubleshooting Windows Errors. STOP Errors  When Microsoft Windows XP encounters a serious problem  And the operating system can't continue.
Windows Crash Dump Analysis Daniel Pearson David Solomon Expert Seminars.
Using the Windows Feedback Loop to Deliver High-Quality Drivers.
Module 6: Debugging a Windows CE Image.  Overview Debug Zones IDE Debug Setup IDE Debug Commands Platform Builder Integrated Kernel Debugger Other Debugging.
Introduction to Microsoft Windows 2000 Integrated support for client/server and peer-to-peer networks Increased reliability, availability, and scalability.
NT Kernel CS Spring Overview Interrupts and Exceptions: Trap Handler Interrupt Request Levels and IRT DPC’s, and APC’s System Service Dispatching.
MCTS Guide to Microsoft Windows Vista Chapter 12 Application Support.
Building More Reliable And Better Performing Web Applications With Visual Studio 2005 Team System Gabriel Marius TLN312 Program Manager Microsoft Corporation.
Windows 7 Bijoy Singhal Developer Evangelist Microsoft India Under the hood features for developers.
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
Windows ® 2000 Debugging André Vachon Development Lead Windows Debuggers Microsoft Corporation.
Overview of Windows Driver Development Reference: us/gstart/hh/gstart/gs_intro_031j.asp.
System Programming Basics Cha#2 H.M.Bilal. Operating Systems An operating system is the software on a computer that manages the way different programs.
Microsoft Window 9X Operating System Richard Goldman © February 28, 2001.
2 Common ASP.NET production issues and how to troubleshoot them with WinDbg Tess Ferrandez - Norlander Support Escalation Engineer Microsoft Session Code:
Tips and Tricks for Debugging ASP.NET Web Applications and Services Habib Heydarian TLNL05 Program Manager Microsoft Corporation.
| © 2007 LenovoLenovo Confidential Use WinDBG Tool to Analyze BSOD —— Lenovo Service Support Training.
Chapter Objectives In this chapter, you will learn:
Hardware and OS Design and Layout.
Crash Dump Analysis - Santosh Kumar Singh.
WHDC PowerPoint Template Notes & Handouts
Chapter 2: System Structures
TechEd /9/ :26 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
11/8/2018 8:19 PM HW-98P Windows 8 kernel debugging: New protocols and certification requirements Tanya Radeva Program Manager Microsoft Corporation Joe.
Chapter 3: Windows7 Part 2.
Starting the computer. Every day we are using an operating system and most specifically a Windows operating system but most of us are not aware of the.
Quiz
Certifying graphics experiences on Windows 8
Intranet web banner units
Chapter 3: Windows7 Part 2.
Customizing WPA Trace Views
Testing, debugging, and using support libraries
Internal social media units
RAC Backup and Recovery Lab
Microsoft Virtual Academy
Windows Client Assessment Results
Microsoft Virtual Academy
Advanced app and driver debugging
Presentation transcript:

Windows Debugging Demystified Daniel Pearson Product Support Services Microsoft Corporation

Overview Windows architecture What causes a bugcheck? Causes of submitted bugchecks Memory dump configuration Analysis of memory dumps Using Driver Verifier Attaching a kernel debugger Questions?

Windows Architecture System processes User applications Windows services Environment subsystems Subsystem DLLs User mode Executive services Windowing and graphics Device drivers Microkernel Hardware Abstraction Layer (HAL) Kernel mode

What Causes a Bugcheck? A device driver or part of the operating system that incurs an unhandled exception A device driver or part of the operating system that explicitly crashes the system due to an unrecoverable condition A page fault that occurs at an interrupt request level of dispatch or higher A hardware error such as a nonmaskable interrupt or faulty memory, disk, etc.

Causes of Submitted Bugchecks

Memory Dump Configuration Small Memory Dump records the smallest set of useful information that will help identify why the system stopped unexpectedly Kernel Memory Dump records only kernel memory, which speeds up the process of recording information in a log when the system stops unexpectedly Complete Memory Dump records the entire contents of system memory when the system stops unexpectedly

Analysis of Memory Dumps Debuggers available for download from http://www.microsoft.com/whdc Configure the debugger to point to symbols http://msdl.microsoft.com/download/symbols !analyze –v is a great start!

Using Driver Verifier Useful for identifying code defects in drivers Performs more thorough checks on the system and device drivers as well as simulates failures Built into the operating system

Attaching a Kernel Debugger Useful for debugging initialization failures Requires that the system be started with the debugger enabled to work Support for using a null-modem, IEEE 1394 and USB 2.0 cable as well as virtual machines Limited support for local kernel debugging

Resources http://www.microsoft.com/whdc http://msdn.microsoft.com/library http://oca.microsoft.com

© 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.