Consider the following scenario:
You enable the Trace Flag (TF) 7412 in Microsoft SQL Server 2016 or 2017.
You have a session N where you run a command that updates an underlying index and also generates a missing index warning.
From session M, you run the Dynamic Management Functions (DMF) sys.dm_exec_query_statistics_xml(N) pointing to session N.
In this situation, you may notice that the command is blocked with wait type QRY_PROFILE_LIST_MUTEX, the DMF is unable to complete the execution and both the sessions seem to be hung.
Service pack information for SQL Server 2016
This issue is fixed in the following service pack for SQL Server:
Service packs are cumulative. Each new service pack contains all the fixes that are in previous service packs, together with any new fixes. Our recommendation is to apply the latest service pack and the latest cumulative update for that service pack. You do not have to install a previous service pack before you install the latest service pack. Use Table 1 in the following article for finding more information about the latest service pack and latest cumulative update.
How to determine the version, edition and update level of SQL Server and its components
This issue is fixed in the following cumulative update for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for your version of SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the terminologythat Microsoft uses to describe software updates.