Deadlock in Service Control Manager During System Shut Down

Last reviewed: November 5, 1997
Article ID: Q157911
The information in this article applies to:
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SYMPTOMS

When a system with many services shuts down, Windows NT may hang (stop responding) for two minutes and then continue. If the WaitToKillService setting in the registry is less than that, it is possible the system will shut down without sending a shutdown notification to some services. This creates the possibility of corrupted data stores.

NOTE: This problem has only been observed with Cheyenne ARCServe, but this is not a problem with ARCServe.

CAUSE

Service Control Manager (SCM) uses Named Pipes to talk to services. The services report status changes via Remote Procedure Calls (RPC) to SCM. Because of the way SCM uses two synchronization objects, there is a race condition which can cause a deadlock.

RESOLUTION

To resolve this problem, obtain the following fix or wait for the next Windows NT service pack.

This fix should have the following time stamp:

   08/25/97  05:00               246,544 Advapi32.dll (Intel)
   08/25/97  04:59               411,920 Advapi32.dll (Alpha)

   08/12/97  07:14               131,856 Services.exe (Intel)
   08/12/97  06:13               242,448 Services.exe (Alpha)

NOTE: The files included with this hotfix are system files. You must use Mv.exe /x /d from the Windows NT Resource Kit to overwrite the files.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. A supported fix is now available, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.


Additional query words: 4.00
Keywords : kbbug4.00 kbfix4.00 ntnetserv NTSrvWkst kbenv
Version : WinNT:4.0
Platform : winnt
Issue type : kbbug
Solution Type : kbpatch


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.