How to troubleshoot a "STOP 0xC000021A" error

转自http://support.microsoft.com/kb/241215/

How to use the Userdump.exe tool to create a dump file

Article ID : 241215
Last Review : October 11, 2007
Revision : 7.5
This article was previously published under Q241215
On This Page
SUMMARY
MORE INFORMATION
To create a dump (.dmp) file for a process that shuts down with an exception
To create a dump file for a hanging process
REFERENCES

SUMMARY

You can use the Userdump.exe tool to generate a user dump of a process that shuts down with an exception or that stops responding (hangs).

Back to the top

MORE INFORMATION

To create a dump (.dmp) file for a process that shuts down with an exception

1. Run the Setup.exe program for your processor. Notes
By default, this Setup.exe program is included with the Userdump.exe tool in the C:/kktools/userdump8.0 folder.
This Setup.exe program installs a kernel-mode driver, installs the Userdump.sys file, and creates the Process Dump icon in Control Panel.
Unless you have a specific need, disable the "dump on process termination" feature when you run the Setup.exe program.
2. In Control Panel, double-click Process Dump.
3. On the Exception Monitoring tab, click New, add the appropriate program name to the Monitor list, and then click OK. For example, add a program name such as Lsass.exe, Winlogon.exe, Mtx.exe, or Dllhost.exe.
4. In the Monitor box, click the program name that you added in step 3, and then click Rules.
5. Click to select Custom Rules, select the type of error that you want to trigger for the program that you added in step 3 in the Custom rules list, and then click OK. For example, select the Access violation (c0000005) error type.
When the monitored program generates an access violation error message, the Userdump.exe tool starts, and then the Userdump.exe tool creates a dump (.dmp) file in the %SystemRoot% folder. By analyzing this .dmp file, you may be able to isolate the cause of Winlogon access violation error messages.

Back to the top

To create a dump file for a hanging process

1. Run the Setup.exe program for your processor. Notes
By default, this Setup.exe program is included with the Userdump.exe tool in the C:/kktools/userdump8.0 folder.
This Setup.exe program installs a kernel-mode driver, installs the Userdump.sys file, and creates the Process Dump icon in Control Panel.
Unless you have a specific need, disable the "dump on process termination" feature when you run the Setup.exe program.
2. When the program stops responding, move to the version of Userdump.exe for your processor at the command prompt, and then type the following command:
userdump PID
Note In this command, PID is a placeholder for the process ID (PID) of the program that has stopped responding. To obtain the PID of the program, open Task Manager, and then click the Process tab.
When you run the userdump PID command, a .dmp file is generated. You can use this dump file to perform post-mortem debugging with a program such as the Windbg.exe tool. If you run Setup to install the Userdump.exe tool, some additional features are enabled. These additional features of the Userdump.exe tool are described in detail in the Userdocs.doc file that accompanies the Userdump.exe tool. These additional features include the following:
Process self-dumping. You can configure the Userdump.exe tool to automatically create a dump file for a certain program when that program encounters a certain kind of error, such as an exception handler block or a top-level unhandled exception filter.
Hot-key process snapshot. You can associate a single keystroke with an image binary to trigger the Userdump.exe tool to create a dump file.
Exception monitoring. The Userdump.exe tool can monitor programs for exceptions and can automatically generate dump files when certain exceptions occur. You can configure whether an exception triggers a dump file for each program by using the Process Dump utility. You can access the Process Dump utility from Control Panel.

Back to the top

REFERENCES

To download version 8.1 of the Userdump.exe tool and its documentation, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=E089CA41-6A87-40C8-BF69-28AC08570B7E&displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=E089CA41-6A87-40C8-BF69-28AC08570B7E&displaylang=en)
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
258833 (http://support.microsoft.com/kb/258833/) How to troubleshoot high CPU utilization of an MTS or COM+ process
To download the latest Debugging Tools for Windows (32-bit version), visit the following Microsoft Web site:
http://www.microsoft.com/whdc/devtools/ddk/default.mspx (http://www.microsoft.com/whdc/devtools/ddk/default.mspx)

Back to the top

APPLIES TO
Microsoft Windows Server 2003, Standard x64 Edition
Microsoft Windows Server 2003, Enterprise x64 Edition
Microsoft Windows Server 2003, Standard Edition (32-bit x86)
Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
Microsoft Windows XP Professional x64 Edition
Microsoft Windows XP Professional
Microsoft Windows XP Home Edition
Microsoft Windows 2000 Service Pack 1
Microsoft Windows 2000 Service Pack 2
Microsoft Windows 2000 Advanced Server

Back to the top

Keywords: 
kbfaq kbhowto KB241215

Back to the top

 

你可能感兴趣的:(exception,windows,Microsoft,File,command,debugging)