FIX: "EXCEPTION_INVALID_CRT_PARAMETER" on System Health Monitor Thread in SQL Server 2012

Applies to: SQL Server 2012 EnterpriseSQL Server 2012 Business IntelligenceSQL Server 2012 Developer

Microsoft distributes Microsoft SQL Server 2012 Service Pack 1 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 Service Pack 1 fix release.

Symptoms


An EXCEPTION_INVALID_CRT_PARAMETERexception may occur and dump files are generated on System Health Monitor Thread (system_health session) during the system_health event tracing in Microsoft SQL Server 2012. Additionally, you receive the following error message in the SQL Server error log:

DateTime spid# ***Stack Dump being sent to Drive:\Databases\MSSQL11.MSSQLSERVER\MSSQL\LOG\SQLDump0001.txt
DateTime spid# SqlDumpExceptionHandler: Process 12 generated fatal exception c000000d EXCEPTION_INVALID_CRT_PARAMETER. SQL Server is terminating this process.
DateTime spid# * *******************************************************************************
DateTime spid# *
DateTime spid# * BEGIN STACK DUMP:
DateTime spid# * DateTime spid#
DateTime spid# *
DateTime spid# *
DateTime spid# * Exception Address = 762FC41F Module (KERNELBASE+0000C41F)
DateTime spid# * Exception Code = c000000d EXCEPTION_INVALID_CRT_PARAMETER
DateTime spid# Error: 17053, Severity: 16, State: 1.
DateTime spid# spid12s System Health Monitor Thread: Operating system error Exception 0x1 encountered.

Note This issue occurs only on the 32-bit version of SQL Server.

Resolution


Cumulative update information

Cumulative Update 4 for SQL Server 2012 SP1

The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2012 SP1, click the following article number to view the article in the Microsoft Knowledge Base:
2833645 Cumulative update 4 for SQL Server 2012 SP1
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 SP1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2772858 The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released

Status


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

References


For more information about the system_health session, go to the following MSDN website: For more information about the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems
For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499 Naming schema for Microsoft SQL Server software update packages
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