Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Windows Server 2003 may hang when restoring corrupt registry hive using RegRestoreKey() function


Symptoms

On Windows Server 2003, you may experience a machine hang when calling RegRestoreKey(). The server cannot be accessed remotely, nor at the console and does not respond to PING requests.

↑ Back to the top


Cause

This issue is due to a bug in the Windows kernel causing an infinite loop. This issue can occur if the registry information being imported is corrupt, and may be exacerbated by resource depletion such as memory depletion or low disk space.

↑ Back to the top


Resolution

1) Fix the corruption in the source registry hive file that is being imported

or

2) Upgrade to Windows Server 2008 or newer version of Windows


↑ Back to the top


More Information

The fix in Windows Server 2008 and newer operating systems does not allow the corrupt hive to be imported, and instead returns an non-zero error condition as defined in Winerror.h.


Information on RegRestoreKey() and its return conditions can be found in the following MSDN article:

http://msdn.microsoft.com/en-us/library/ms724915(VS.85).aspx

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2299959
Revision : 1
Created on : 1/7/2017
Published on : 8/13/2010
Exists online : False
Views : 123