Assume that you use Microsoft SQL Server 2016, 2017 or 2019. When you enable trace flag (TF) 3924 to clean orphaned Distributed Transaction Coordinator (DTC) transactions in sqlmin!XactMgr::CleanOrphanedXacts, you may notice that an access violation (AV) occurs. Additionally, you may receive a series of dump files.
Note TF 3924 is introducedin KB 3145492 toclean up orphaned DTC transactions.
The issue was initially fixed through the following Knowledge Base article:
4511816 FIX: Access violation occurs when you enable TF 3924 to clean orphaned DTC transactions in SQL Server 2016
4511816 reduces the frequency of the issue. However, it cannot completely fix the issue. This new fix is intended to completely address the issue.
This issue is fixed in the following cumulative updates for SQL Server:
- Cumulative Update 1 for SQL Server 2019
- Cumulative Update 17 for SQL Server 2017
- Cumulative Update 10 for SQL Server 2016 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: