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

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:

http://support.microsoft.com/contactus/?ws=supportNote 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.

    Version

    Product

    SR_Level

    Service branch

    6.0.600
    1.
    22xxx

    Windows Vista and Windows Server 2008

    SP1

    LDR

    6.0.600
    2.
    22xxx

    Windows Vista and Windows Server 2008

    SP2

    LDR

  • 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 name

File version

File size

Date

Time

Ntkrnlpa.exe

6.0.6001.22903

3,602,320

19-Apr-2011

17:49

Not applicable

Ntoskrnl.exe

6.0.6001.22903

3,550,608

19-Apr-2011

17:49

Not applicable

Ntkrnlpa.exe

6.0.6002.22627

3,603,856

19-Apr-2011

17:49

Not applicable

Ntoskrnl.exe

6.0.6002.22627

3,552,144

19-Apr-2011

17:49

Not applicable

For all supported x64-based versions of Windows Server 2008 and of Windows Vista

File name

File version

File size

Date

Time

Ntoskrnl.exe

6.0.6001.22903

4,676,496

19-Apr-2011

17:44

Ntoskrnl.exe

6.0.6002.22627

4,688,784

19-Apr-2011

17:44

For all supported IA-64-based versions of Windows Server 2008

File name

File version

File size

Date

Time

Ntoskrnl.exe

6.0.6001.22903

9,489,296

19-Apr-2011

17:36

Ntoskrnl.exe

6.0.6002.22627

9,467,792

19-Apr-2011

17: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 name

X86_27c75ff656ec209e5af41cddec7896db_31bf3856ad364e35_6.0.6002.22627_none_412b902f4be4249b.manifest

File version

Not applicable

File size

697

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_7dc94900238918717130ef2480b7ca5e_31bf3856ad364e35_6.0.6002.22627_none_487395f2fb507f6a.manifest

File version

Not applicable

File size

717

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_bdc82f80894405c3f5a523af31fc605e_31bf3856ad364e35_6.0.6001.22903_none_554d80763f1352cd.manifest

File version

Not applicable

File size

1,058

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_c03288d280c2e75ad55d142fb4adbab1_31bf3856ad364e35_6.0.6001.22903_none_8051d885dd70428b.manifest

File version

Not applicable

File size

697

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_f1e5566714ed828b74c23e21bc6b81aa_31bf3856ad364e35_6.0.6001.22903_none_d52ee27035a356ac.manifest

File version

Not applicable

File size

717

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6001.22903_none_6cbd0e79cd3de76f.manifest

File version

Not applicable

File size

18,682

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6002.22627_none_6e91e1b1ca70d9d1.manifest

File version

Not applicable

File size

18,682

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

X86_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6001.22903_none_848aa66c4782f209.manifest

File version

Not applicable

File size

7,654

Date (UTC)

19-Apr-2011

Time (UTC)

14:46

File name

X86_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6002.22627_none_865f79a444b5e46b.manifest

File version

Not applicable

File size

7,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 name

Amd64_458a8f98cf2b43bdc5347b62c89a293c_31bf3856ad364e35_6.0.6002.22627_none_fc6b7757fc29eb69.manifest

File version

Not applicable

File size

721

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_6dfa978dc56aba1bfd46b091ae6d21c5_31bf3856ad364e35_6.0.6001.22903_none_79f2e21ab7cfffc1.manifest

File version

Not applicable

File size

1,064

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_74626e44711535ca28e3bb799b76ae42_31bf3856ad364e35_6.0.6001.22903_none_2567f599fb0e7e18.manifest

File version

Not applicable

File size

701

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_9640e8e5eddcf13584ac0a1fb4730cc8_31bf3856ad364e35_6.0.6002.22627_none_3f95392c19ba991d.manifest

File version

Not applicable

File size

701

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_b2d87fe0da89a491121ac81ffe106979_31bf3856ad364e35_6.0.6001.22903_none_76cbb8047e86564b.manifest

File version

Not applicable

File size

721

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6001.22903_none_c8dba9fd859b58a5.manifest

File version

Not applicable

File size

17,282

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6002.22627_none_cab07d3582ce4b07.manifest

File version

Not applicable

File size

17,282

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Amd64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6001.22903_none_e0a941efffe0633f.manifest

File version

Not applicable

File size

7,656

Date (UTC)

19-Apr-2011

Time (UTC)

15:03

File name

Amd64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6002.22627_none_e27e1527fd1355a1.manifest

File version

Not applicable

File size

7,656

Date (UTC)

19-Apr-2011

Time (UTC)

15:34

Additional files for all supported IA-64-based versions of Windows Server 2008

File name

Ia64_3ed085fe7825a172291fbbc9b4562bfb_31bf3856ad364e35_6.0.6001.22903_none_c9d2f0977bc23c3e.manifest

File version

Not applicable

File size

1,061

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Ia64_4bd46f75d242d064da506cf32ca9380f_31bf3856ad364e35_6.0.6002.22627_none_a76aa3426484db72.manifest

File version

Not applicable

File size

699

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Ia64_75d04de346a057f0bb2fbd7cc3449637_31bf3856ad364e35_6.0.6002.22627_none_cd6f1e03f2b5465a.manifest

File version

Not applicable

File size

719

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Ia64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6001.22903_none_6cbeb26fcd3bf06b.manifest

File version

Not applicable

File size

17,606

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Ia64_microsoft-windows-os-kernel_31bf3856ad364e35_6.0.6002.22627_none_6e9385a7ca6ee2cd.manifest

File version

Not applicable

File size

17,606

Date (UTC)

19-Apr-2011

Time (UTC)

18:02

File name

Ia64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6001.22903_none_848c4a624780fb05.manifest

File version

Not applicable

File size

7,655

Date (UTC)

19-Apr-2011

Time (UTC)

14:38

File name

Ia64_microsoft-windows-r..gistry-trustedtypes_31bf3856ad364e35_6.0.6002.22627_none_86611d9a44b3ed67.manifest

File version

Not applicable

File size

7,655

Date (UTC)

19-Apr-2011

Time (UTC)

15:33

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×