You are currently offline, waiting for your internet to reconnect

How to troubleshoot a service that crashes in Windows XP

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

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 "Debugging Tools for Windows" to troubleshoot intermittent service crashes.
MORE INFORMATION
Note To follow these steps, you must install "Debugging Tools for Windows." To obtain "Debugging Tools for Windows," visit the following Web site: To troubleshoot a service that crashes intermittently, follow these steps:
  1. At a command prompt, type the following commands. Press ENTER after each command.
    cd %systemroot%\system32
    copy svchost.exe svchostdbg.exe
    regedit
  2. In Registry Editor, click the subkey that corresponds to the name of the service that crashes. This subkey is located in the following subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. In the details pane, right-click ImagePath, and then click Modify.
  4. In the path that is in the Value data box, change svchost.exe to svchostdbg.exe, and then click OK.
  5. Exit Registry Editor.

    Note Alternatively, you can run the following command from the command prompt:
    sc.exe config ServiceName type= own
    You need the space between the "=" and "own". This command will cause the service to always launch in its own svchost. To revert the service back to its original state, run the following command from the command prompt:
    sc.exe config ServiceName type= share
  6. At a command prompt, type the following command, and then press ENTER:
    net start ServiceName
    Replace ServiceName with the name of the service that crashes.
  7. Right-click the task bar, and then click Task Manager.
  8. In Windows Task Manager, click the Processes tab.
  9. On the View menu, click Select Columns.
  10. Click to select the PID (Process Identifier) check box, and then click OK.
  11. Locate the service in the Image Name column. Then, note the service's process identifier (PID) in the PID column.
  12. At a command prompt, type the following commands. Press ENTER after each command.
    cd \Program Files\Debugging Tools for Windows
    adplus -p PID -crash
    Replace PID with the PID of the service that crashes.
  13. Wait for the service to crash.
  14. 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\
winxp crashdump
Properties

Article ID: 934650 - Last Review: 03/31/2008 22:07:52 - Revision: 2.1

Microsoft Windows XP Home Edition, Microsoft Windows XP Professional

  • kbexpertiseinter kbtshoot kbhowto KB934650
Feedback