FIX: Full thread stack is committed unexpectedly when you start threads that are not created in CLR after you set the value of the disableCommitThreadStack element to 1 in the .NET Framework 4

Article translations Article translations
Article ID: 2511058 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You set the value of the disableCommitThreadStack element for an application to 1 in the Microsoft .NET Framework 4.
  • The application has multiple threads.
  • Some threads are created and started by calling code explicitly.

    For example, you call the System.Threading.Thread.Start method to start the thread.
In this scenario, the full thread stack is committed for these threads unexpectedly.

Note This issue does not occur if these threads are created and started by code in common language runtime (CLR).

CAUSE

This issue occurs because an error in the disableCommitThreadStack element in the .NET Framework 4.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have the Microsoft .NET Framework 4 installed.

Restart requirement

You must restart the computer after you apply this hotfix if any affected files are being used.

We recommend that you to close all .NET Framework applications before you apply this hotfix.

Hotfix replacement information

This hotfix package does not replace a previously released hotfix package.

File Information

The English (United States) version of this hotfix package uses a Microsoft Windows Installer package to install the hotfix package. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, and of Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Clr.dll4.0.30319.4536,735,17611-Apr- 201105:27x86
Mscordacwks.dll4.0.30319.4531,142,61611-Apr- 201105:27x86
Mscordbi.dll4.0.30319.453955,21611-Apr- 201105:27x86
Mscorlib.dll4.0.30319.4535,197,64811-Apr- 201105:27x86
Nlssorting.dll4.0.30319.45356,14411-Apr- 201105:27x86
Sos.dll4.0.30319.453516,93611-Apr-201105:27x86
For all supported x64-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, of Windows 7, and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Clr.dll4.0.30319.4536,735,17611-Apr- 201105:27x86
Clr.dll4.0.30319.4539,802,05611-Apr- 201106:21x64
Mscordacwks.dll4.0.30319.4531,142,61611-Apr- 201105:27x86
Mscordacwks.dll4.0.30319.4531,514,84011-Apr- 201106:21x64
Mscordbi.dll4.0.30319.453955,21611-Apr- 201105:27x86
Mscordbi.dll4.0.30319.4531,453,39211-Apr- 201106:21x64
Mscorlib.dll4.0.30319.4535,197,64811-Apr- 201105:27x86
Mscorlib.dll4.0.30319.4534,967,24811-Apr- 201106:21x64
Nlssorting.dll4.0.30319.45356,14411-Apr- 201105:27x86
Nlssorting.dll4.0.30319.45367,40811-Apr- 201106:21x64
Sos.dll4.0.30319.453516,93611-Apr- 201105:27x86
Sos.dll4.0.30319.453597,83211-Apr-201106:21x64
For all supported IA-64–based versions of Windows Server 2003, of Windows Server 2008, and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Clr.dll4.0.30319.4536,735,17611-Apr- 201105:27x86
Clr.dll4.0.30319.45319,388,74411-Apr-201107:12IA- 64
Mscordacwks.dll4.0.30319.4531,142,61611-Apr- 201105:27x86
Mscordacwks.dll4.0.30319.4533,758,42411-Apr-201107:12IA- 64
Mscordbi.dll4.0.30319.453955,21611-Apr- 201105:27x86
Mscordbi.dll4.0.30319.4533,293,52011-Apr-201107:12IA- 64
Mscorlib.dll4.0.30319.4535,197,64811-Apr- 201105:27x86
Mscorlib.dll4.0.30319.4534,466,00011-Apr-201107:12IA- 64
Nlssorting.dll4.0.30319.45356,14411-Apr- 201105:27x86
Nlssorting.dll4.0.30319.453143,18411-Apr-201107:12IA- 64
Sos.dll4.0.30319.453516,93611-Apr- 201105:27x86
Sos.dll4.0.30319.4531,203,01611-Apr-201107:12IA-64

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 the disableCommitThreadStack element, visit the following MSDN website:

General information about the disableCommitThreadStack element

Properties

Article ID: 2511058 - Last Review: May 9, 2011 - Revision: 1.0
APPLIES TO
  • Microsoft .NET Framework 4
Keywords: 
kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew KB2511058

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com