Tag Archives: “race condition”

[RESOLVED] A process that is being terminated stops responding in Windows 7 or Windows Server 2008 R2 or Small Business Server 2011

You may find that when you try to terminate a process on Windows 7, Windows Server 2008 R2, Windows Small Business Server 2011 SBS 2011 that the termination process stops responding.  The main thread of the process becomes blocked and if you analyse the call stack of the process you will see that a thread is blocked in the ntdll!NtReleaseKeyedEvent() function.  This occurs because of a race condition whereby the main thread that is trying to terminate the process also tries to reactivate another thread when the thread released an SRW lock.

This issue can be resolved by installing a hotfix containing an updated Ntdll.dll driver.  You can find the hotfix download link in Microsoft KB 2582203 http://support.microsoft.com/kb/2582203

Windows 7, SBS 2011 or Windows Server 2008 R2 RTM and SP1 – Stop error message 0x0000007E and/or Kernel Sockets Leak on a Multi Processor Machine

You may suffer from a BSOD Stop Error Message with STOP: 0x0000007E and/or experience a Kernel Sockets Leak if you are running an older version of Ancillary Function Driver for Winsock or afd.sys

To prevent these two issues you need to be running the latest version of Afd.sys which can be downloaded from http://support.microsoft.com/kb/2579274

You may find that the DHCP Server Service Crashes in Windows Server 2008 R2 and SBS 2011 – RTM or Service Pack 1

If your Windows Server 2008 R2/SBS 2011 system is running the DHCP Server service then you may find that it crashes randomly, this is due to a race condition in the service.  If you do not have the service recovery option set then the DHCP Server service will be unable to service client DHCP reqests until you manually restart the service.

Microsoft have posted a hotfix for this issue and explain the issue in more detail here http://support.microsoft.com/kb/2616864

KB 2616864 provides an updated version of “Dhcpssvc.dll” to prevent the race condition and potential crash.

The Microsoft Fax Service may crash randomly on Windows Server 2008 – SP2, SBS 2008 – SP2 or Windows Server 2008 R2, SBS 2011

You may find that the Microsoft Windows fax service randomly crashes, this will be evident in the Windows Application Event Log where you will find Events with a Source of “Application Error”. These will reference “fxssvc.exe” and the exception code within the event will most likely be “0xc0000005”.

The error can occur because of a race condition in the fax service, this in turn can cause the access violation knocking the fax service over.
The issue can be resolved by installing the Microsoft Hotfix from KB 2302075 http://support.microsoft.com/kb/2302075 this hotfix contains updated versions of “Fxssvc.exe” for Server 2008/Vista/SBS 2008 – SP2 and Server 2008 R2/Windows 7/SBS 2011