SQL CLR .NET Framework runtime fatal error due to Uneven Number of CPUs Across Processor Groups


If you’re using SQL CLR, you may have encountered an unexpected SQL Server service termination issue on SQL Servers with a large number of CPUs.


SQL Server service terminates unexpectedly.


In the ERRORLOG, you’ll see the following message:



Server      * *******************************************************************************

<datetime> Server      *

<datetime> Server      * BEGIN STACK DUMP:

<datetime> Server      *   04/27/20 10:30:16 spid 38076

<datetime> Server      *

<datetime> Server      * A fatal error occurred in .NET Framework runtime.


In addition, a memory dump will be created The last message in ERRORLOG will show something like:


<datetime> Server      Error: 6536, Severity: