POSTMORTEM DEBUGGING in Software

Drawing QR in Software POSTMORTEM DEBUGGING
13 POSTMORTEM DEBUGGING
Print QR Code ISO/IEC18004 In Visual C#
Using Barcode printer for Visual Studio .NET Control to generate, create QR image in Visual Studio .NET applications.
Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\userdmp
Quick Response Code Maker In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create QR image in ASP.NET applications.
If you change this path, make sure that the specified path grants all users write access
Encoding QR Code JIS X 0510 In .NET
Using Barcode generation for Visual Studio .NET Control to generate, create QR image in VS .NET applications.
Number of Instructions
Create QR-Code In Visual Basic .NET
Using Barcode creation for .NET framework Control to generate, create QR Code image in .NET applications.
This specifies the number of instructions that Dr Watson will unassemble before and after the current program counter for each thread By default, the number of instructions to unassemble is 10
Recognizing Code 3 Of 9 In Visual Studio .NET
Using Barcode scanner for .NET framework Control to read, scan read, scan image in .NET framework applications.
Number of Errors to Save
Making UPC-A Supplement 5 In Visual Studio .NET
Using Barcode generation for ASP.NET Control to generate, create Universal Product Code version A image in ASP.NET applications.
This specifies the number of errors that will be saved in the log file By default, the number of errors logged is 10
UCC - 12 Creation In Visual Studio .NET
Using Barcode printer for Visual Studio .NET Control to generate, create EAN / UCC - 13 image in .NET applications.
Crash Dump Type
GTIN - 12 Generator In Java
Using Barcode encoder for Java Control to generate, create UPC-A image in Java applications.
This specifies the type of crash dump file that is generated by Dr Watson By default, a mini dump file is generated that contains only the registers, stack, and portions of memory
Draw EAN-13 Supplement 5 In Java
Using Barcode creation for Java Control to generate, create EAN / UCC - 13 image in Java applications.
Options
Encode Data Matrix ECC200 In Visual Basic .NET
Using Barcode maker for VS .NET Control to generate, create ECC200 image in VS .NET applications.
Table 134 describes all the options that can be configured Table 134
Barcode Creator In .NET Framework
Using Barcode generation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
Option Description
Bar Code Encoder In .NET Framework
Using Barcode creation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
Dump Symbol Table
Print Bar Code In Visual Basic .NET
Using Barcode generator for VS .NET Control to generate, create bar code image in .NET applications.
Dump All Thread Contexts
Making Barcode In Java
Using Barcode creation for Java Control to generate, create barcode image in Java applications.
Append to Existing Log File
GS1 - 13 Decoder In Visual Studio .NET
Using Barcode decoder for .NET Control to read, scan read, scan image in .NET framework applications.
Dump symbol table for each module Note that this option can make the log files very large By default, this option is not enabled Dumps the state for every thread in the faulting application By default, this option is not enabled, and Dr Watson only logs the state of the faulting thread Specifies if log information should be appended to the existing log file or if a new log file should be created for each new application fault By default, this option is enabled
Code 3/9 Drawer In VS .NET
Using Barcode encoder for .NET Control to generate, create Code 39 image in Visual Studio .NET applications.
(continues)
Paint Code 128C In VS .NET
Using Barcode creator for VS .NET Control to generate, create Code128 image in VS .NET applications.
13
Encoding Bar Code In Java
Using Barcode creation for Java Control to generate, create bar code image in Java applications.
Postmortem Debugging
Paint Data Matrix ECC200 In VS .NET
Using Barcode generation for ASP.NET Control to generate, create Data Matrix image in ASP.NET applications.
Table 134
Make USS-128 In Visual Studio .NET
Using Barcode maker for ASP.NET Control to generate, create EAN / UCC - 14 image in ASP.NET applications.
Option
(continued) Description
Visual Notification
Sound Notification
Create Crash Dump File
Specifies if Dr Watson provides visual notifications about faulting applications If this is enabled, a dialog box is shown with an OK button This option is disabled by default Specifies if Dr Watson should provide audible notifications about faulting applications If enabled, a WAV file can be specified By default, this option is disabled Specifies if Dr Watson should generate a dump file of the faulting application By default, this option is enabled and requires that a filename be specified in the Crash Dump field
Application Errors
The application errors option displays all the errors from the various Dr Watson collections Let s take the sample awdscenario1exe used previously in the chapter and see what type of specific information Dr Watson collects First, make sure that Dr Watson is selected as the postmortem debugger by running the following:
drwtsn32exe -i
Next, run the awdscenario1exe application (used earlier in the chapter) using
C:\AWDBIN\WinXpx86chk\awdscenario1exe
When the Dr Watson message box is displayed, click Don t Send To look at the log file generated by Dr Watson for this crash, we use the following path:
Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\ drwtsn32log
The log file is in plaintext, and any text reader or editor (such as Notepad) can be used to open the file The log file is organized into one or more application exception sections, one section per fault, where each section begins with the following line:
Application exception
Windows Error Reporting
Each application exception represents a faulting application and contains the following information:
App: The full path to the faulting application followed by the process identifier When: The date and time of the fault Exception number: The exception number and textual representation of the
13 POSTMORTEM DEBUGGING
exception In our sample run of awdscenario1exe, the application exception section of the log file states (if you have had multiple process crashes on the system, you might have to search for the awdscenario1exe crash)
Application exception occurred: App: C:\AWDBIN\WinXPx86chk\awdscenario1exe (pid=2276) When: 10/19/2006 @ 08:12:41687 Exception number: c0000005 (access violation)
Each application exception section is broken down further into the following additional categories
System Information
The system information section contains a plethora of information about the system that the faulting application was running on Our sample run yielded the following system information section:
* > System Information < * Computer Name: MARIOH-HOME User Name: marioh Terminal Session Id: 0 Number of Processors: 1 Processor Type: x86 Family 15 Model 15 Stepping 0 Windows Version: 51 Current Build: 2600 Service Pack: 2 Current Type: Uniprocessor Free Registered Organization: The High-tech Avenue Registered Owner: Mario Hewardt
As you can see, information such as processor count, processor type, and Windows version are all included in this list and can be quite useful when analyzing a problem postmortem Imagine that a particular crash only occurred when running on Windows XP SP2 The error logs for all the crashes clearly specify that the crash occurred on Windows XP SP2, which helps the developer narrow down the scope of the problem