Assume that you create a query that references to the Extended Markup Language (XML) data type in Microsoft SQL Server 2014, 2016 and 2017. When you run the query across multiple threads, the query may fail. Additionally, an access violation error occurs in the SQL Server error log.
This issue is fixed in the following 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.