OpenMutex may return the handle to a mutex that is deleted from the namespace in Windows Vista or in Windows Server 2008

Applies to: Windows Vista BusinessWindows Vista EnterpriseWindows Vista Home Basic More

Symptoms


Consider the following scenario:

  • You have a resource that is shared with several threads in Windows Vista or in Windows Server 2008.
  • You control threads to access the resource by using a named mutex object.
In this scenario, you may encounter the following issues:
  • Applications that use mutex stop responding.
  • The shared resource is corrupted.

Notes


The following table provides more information about the products or tools that automatically check for this condition on your instance of SQL Server and on the versions of the SQL Server product against which the rule is evaluated.

Rule software Rule title Rule description Product versions against which the rule is evaluated
System Center Advisor Windows operating system missing update KB2523134 to prevent log shipping process hang System Center Advisor determines whether this instance of SQL Server is used for log shipping of databases. Also advisor checks the current build and version of ntoskrnl.exe. If the current build of ntoskrnl.exe is less than the fix build, then advisor generates the alert about this issue. Review the details that are provided in the “Information Collected” section of the advisor alert, and apply the fix discussed in this article. SQL Server 2008
SQL Server 2008 R2

This issue may occur if the following conditions are true:
  • A named mutex object is opened and closed repeatedly.
  • The named mutex object has the same name every time that it is opened.

Cause


This issue occurs because one of the threads may receive a handle to a mutex that is removed from the namespace. When another thread tries to open the mutex, the handle to a newly created mutex is obtained. Because the threads have handles to different objects, synchronization between the threads may not work as expected.

Resolution


Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:
  • Windows Vista Service Pack 1 (SP1)
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008
  • Windows Server 2008 Service Pack 2 (SP2)
For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

968849 How to obtain the latest service pack for Windows Server 2008

Registry information

To use the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Vista and Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    VersionProductSR_LevelService branch
    6.0.600
    1.
    22xxx
    Windows Vista and Windows Server 2008SP1LDR
    6.0.600
    2.
    22xxx
    Windows Vista and Windows Server 2008SP2LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008. Therefore, RTM milestone files apply only to Windows Vista. RTM milestone files have a 6.0.0000.xxxxx version number.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTime
Ntkrnlpa.exe6.0.6001.229033,602,32019-Apr-201117:49Not applicable
Ntoskrnl.exe6.0.6001.229033,550,60819-Apr-201117:49Not applicable
Ntkrnlpa.exe6.0.6002.226273,603,85619-Apr-201117:49Not applicable
Ntoskrnl.exe6.0.6002.226273,552,14419-Apr-201117:49Not applicable
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTime
Ntoskrnl.exe6.0.6001.229034,676,49619-Apr-201117:44
Ntoskrnl.exe6.0.6002.226274,688,78419-Apr-201117:44
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTime
Ntoskrnl.exe6.0.6001.229039,489,29619-Apr-201117:36
Ntoskrnl.exe6.0.6002.226279,467,79219-Apr-201117:36

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information


For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

For more information about mutex objects, visit the following Microsoft Developer Network (MSDN) website:

General information about Mutex Objects

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x86-based versions of Windows Vista and of Windows Server 2008
File nameX86_27c75ff656ec209e5af41cddec7896db_31bf3856ad364e35_6.0.6002.22627_none_412b902f4be4249b.manifest
File versionNot applicable
File size697
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_7dc94900238918717130ef2480b7ca5e_31bf3856ad364e35_6.0.6002.22627_none_487395f2fb507f6a.manifest
File versionNot applicable
File size717
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_bdc82f80894405c3f5a523af31fc605e_31bf3856ad364e35_6.0.6001.22903_none_554d80763f1352cd.manifest
File versionNot applicable
File size1,058
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_c03288d280c2e75ad55d142fb4adbab1_31bf3856ad364e35_6.0.6001.22903_none_8051d885dd70428b.manifest
File versionNot applicable
File size697
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_f1e5566714ed828b74c23e21bc6b81aa_31bf3856ad364e35_6.0.6001.22903_none_d52ee27035a356ac.manifest
File versionNot applicable
File size717
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6001.22903_none_6cbd0e79cd3de76f.manifest
File versionNot applicable
File size18,682
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6002.22627_none_6e91e1b1ca70d9d1.manifest
File versionNot applicable
File size18,682
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameX86_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6001.22903_none_848aa66c4782f209.manifest
File versionNot applicable
File size7,654
Date (UTC)19-Apr-2011
Time (UTC)14:46
File nameX86_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6002.22627_none_865f79a444b5e46b.manifest
File versionNot applicable
File size7,654
Date (UTC)19-Apr-2011
Time (UTC)15:22
Additional files for all supported x64-based versions of Windows Vista and of Windows Server 2008
File nameAmd64_458a8f98cf2b43bdc5347b62c89a293c_31bf3856ad364e35_6.0.6002.22627_none_fc6b7757fc29eb69.manifest
File versionNot applicable
File size721
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_6dfa978dc56aba1bfd46b091ae6d21c5_31bf3856ad364e35_6.0.6001.22903_none_79f2e21ab7cfffc1.manifest
File versionNot applicable
File size1,064
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_74626e44711535ca28e3bb799b76ae42_31bf3856ad364e35_6.0.6001.22903_none_2567f599fb0e7e18.manifest
File versionNot applicable
File size701
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_9640e8e5eddcf13584ac0a1fb4730cc8_31bf3856ad364e35_6.0.6002.22627_none_3f95392c19ba991d.manifest
File versionNot applicable
File size701
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_b2d87fe0da89a491121ac81ffe106979_31bf3856ad364e35_6.0.6001.22903_none_76cbb8047e86564b.manifest
File versionNot applicable
File size721
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6001.22903_none_c8dba9fd859b58a5.manifest
File versionNot applicable
File size17,282
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6002.22627_none_cab07d3582ce4b07.manifest
File versionNot applicable
File size17,282
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameAmd64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6001.22903_none_e0a941efffe0633f.manifest
File versionNot applicable
File size7,656
Date (UTC)19-Apr-2011
Time (UTC)15:03
File nameAmd64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6002.22627_none_e27e1527fd1355a1.manifest
File versionNot applicable
File size7,656
Date (UTC)19-Apr-2011
Time (UTC)15:34
Additional files for all supported IA-64-based versions of Windows Server 2008
File nameIa64_3ed085fe7825a172291fbbc9b4562bfb_31bf3856ad364e35_6.0.6001.22903_none_c9d2f0977bc23c3e.manifest
File versionNot applicable
File size1,061
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameIa64_4bd46f75d242d064da506cf32ca9380f_31bf3856ad364e35_6.0.6002.22627_none_a76aa3426484db72.manifest
File versionNot applicable
File size699
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameIa64_75d04de346a057f0bb2fbd7cc3449637_31bf3856ad364e35_6.0.6002.22627_none_cd6f1e03f2b5465a.manifest
File versionNot applicable
File size719
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameIa64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6001.22903_none_6cbeb26fcd3bf06b.manifest
File versionNot applicable
File size17,606
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameIa64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6002.22627_none_6e9385a7ca6ee2cd.manifest
File versionNot applicable
File size17,606
Date (UTC)19-Apr-2011
Time (UTC)18:02
File nameIa64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6001.22903_none_848c4a624780fb05.manifest
File versionNot applicable
File size7,655
Date (UTC)19-Apr-2011
Time (UTC)14:38
File nameIa64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6002.22627_none_86611d9a44b3ed67.manifest
File versionNot applicable
File size7,655
Date (UTC)19-Apr-2011
Time (UTC)15:33