Microsoft KB Archive/934650

= How to troubleshoot a service that crashes in Windows XP =

Article ID: 934650

Article Last Modified on 4/18/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



INTRODUCTION
When a service crashes intermittently in Windows XP, little information is generated about the cause. Therefore, it may be difficult to determine what is causing the problem. This step-by-step article describes how to use &quot;Debugging Tools for Windows&quot; to troubleshoot intermittent service crashes.



MORE INFORMATION
Note To follow these steps, you must install &quot;Debugging Tools for Windows.&quot; To obtain &quot;Debugging Tools for Windows,&quot; visit the following Web site:

http://www.microsoft.com/whdc/devtools/debugging/default.mspx

To troubleshoot a service that crashes intermittently, follow these steps:  At a command prompt, type the following commands. Press ENTER after each command.

cd %systemroot%\system32

copy svchost.exe svchostdbg.exe

regedit

 In Registry Editor, click the subkey that corresponds to the name of the service that crashes. This subkey is located in the following subkey:

 In the details pane, right-click ImagePath, and then click Modify. In the path that is in the Value data box, change svchost.exe to svchostdbg.exe, and then click OK. Exit Registry Editor. At a command prompt, type the following command, and then press ENTER:

net start

Replace  with the name of the service that crashes. Right-click the task bar, and then click Task Manager.</li> In Windows Task Manager, click the Processes tab.</li> On the View menu, click Select Columns.</li> Click to select the PID (Process Identifier) check box, and then click OK.</li> Locate the service in the Image Name column. Then, note the service's process identifier (PID) in the PID column.</li> At a command prompt, type the following commands. Press ENTER after each command.

cd \Program Files\Debugging Tools for Windows

adplus -p  -crash

Replace  with the PID of the service that crashes.</li> Wait for the service to crash.</li> After the service crashes, analyze the dump file to obtain information that can help find the cause of the issue. This information includes the last error that occurred. The dump file is located in the following folder:

C:\Program Files\Debugging Tools for Windows\

</li></ol>

Additional query words: winxp crashdump

Keywords: kbexpertiseinter kbtshoot kbhowto KB934650

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.