How to Debug with A Usermode Crash DumpLast reviewed: January 14, 1998Article ID: Q162699 |
The information in this article applies to:
SUMMARYOne of the new features introduced in Windows NT 3.51 was the ability for the operating system to write a user mode crashdump of a user mode process that crashed. This article details how to configure Windows NT to write this file and how to begin analyzing this file.
MORE INFORMATION
Configuring Windows NT to Write a User Mode Crashdump
Loading a User Mode Crash Dump Into Windbg
Basic CommandsLook at the current stack trace (k, kv, or kb) and debug much like you would debug a kernel mode crash dump. The ~ key will give the active threads~2 will switch to the 2nd thread Lm (load modules) is similar to !drivers. Several of the kernel mode commands and extensions work on the user mode debugger side, type in help for a complete list of commands.
MiscellaneousIf the user dump does not load properly, delete the following key in the registry and re-run windbg: WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it.
The Drwtsn32.log file located in %SystemRoot% can be very helpful also. This log file corresponds to the User.dmp. It displays all threads in detail for the process in which the exception occurred. To find the thread that failed, search for FAULT. Also, the thread IDs in the Drwtsn32.log can be correlated to the thread IDs in the User.dmp by counting the threads from the top of the log starting with 0. For additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q158715 TITLE : User Mode Dump Files Must be Debugged on Same Architecture ARTICLE-ID: Q150334 TITLE : WINDBG.EXE Removed From \SUPPORT\DEBUG\<platform> on Server CDFor more information on Windows NT debugging, query on the following word here in the Microsoft Knowledge Base:
debugref |
Additional query words: prodnt debug
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |