FIX: Access violation may occur when you query sys.dm_server_memory_dumps in SQL Server 2008 R2

When you run some queries against the sys.dm_server_memory_dumps system dynamic management view in Microsoft SQL Server 2008 R2, an access violation may occur. When this issue occurs, you receive a "Non-yielding Scheduler" error message. 

Note: When this issue occurs, an access violation dump file or a Non-Yielding scheduler dump file may be generated in hours or days after you first access the system dynamic management view. Additionally, the following error message is logged in the SQL Server error log:
<Date><Time>  spid # * BEGIN STACK DUMP:
<Date><Time> spid # * <Date><Time> spid #
<Date><Time>  spid # *
<Date><Time>  spid # *
<Date><Time>  spid # * Exception Address = 00007FFEC3F9BB96 Module(ntdll+000000000004BB96)
<Date><Time>  spid # * Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION

The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 10 for SQL Server 2008 R2 SP2

About cumulative updates for SQL Server

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Article ID: 2911026 - Last Review: 12/16/2013 17:49:00 - Revision: 1.0

Microsoft SQL Server 2008 R2 Service Pack 2

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2911026