EXCEPTION_ACCESS_VIOLATION reading address 0000000000000006 at 0x00007FFB4711429B

Madhusudhan M Kammar 0 Reputation points
2025-02-28T14:04:05.7333333+00:00

I am getting the below exception while executing insert query on hash table

Exception:

spid 124 Exception 0xc0000005 EXCEPTION_ACCESS_VIOLATION reading address 0000000000000006 at 0x00007FFB4711429B

No values returned from the SQL Query. Please verify your inputs :System.Data.SqlClient.SqlException (0x80131904): Cannot continue the execution because the session is in the kill state.

A severe error occurred on the current command. The results, if any, should be discarded.

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()

at System.Data.SqlClient.SqlDataReader.get_MetaData()

at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)

at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)

at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)

at Regression.Provider.ModelDataAccess.GetMultipleDataSets(String procedureName, ParameterCollection parameters)

ClientConnectionId:452ebe0e-d0ad-4ce0-aa6e-78ee167f6f3b

Error Number:596,State:1,Class:21

Server Info.:

SQL Server Management Studio 15.0.18330.0

SQL Server Management Objects (SMO) 16.100.37971.0

Microsoft Analysis Services Client Tools 15.0.19040.0

Microsoft Data Access Components (MDAC) 10.0.17763.4010

Microsoft MSXML 3.0 6.0

Microsoft .NET Framework 4.0.30319.42000

Operating System 10.0.17763

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
141 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 118.8K Reputation points MVP
    2025-03-02T10:39:11.8833333+00:00

    Microsoft SQL Server 2019 (RTM-GDR) (KB5035434) - 15.0.2110.4 (X64) Mar 12 2024 18:25:56 Copyright (C) 2019 Microsoft Corporation Enterprise Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)

    That's a very old build of SQL Server 2019 which you should not be running. Install the most recent - and last - Cumulative Update with no delay. (You may have to uninstall the GDRs before you can apply CU32.)

    A exception like this is often the token of a bug in SQL Server. There is a fair chance that this bug has been fixed, which is why you should apply CU32.

    Generally, to investigate stack dumps like this, you need to open a support case, since analysing a stack dump requires access to the source code, which we don't have here. However, SQL 2019 is out off mainstream support since Friday, so the prospects are bleak there.

    0 comments No comments

  2. ZoeHui-MSFT 41,206 Reputation points
    2025-03-03T06:10:04.3766667+00:00

    Hi @Madhusudhan M Kammar.

    Notice that you get the dump file.

    For this case, I really would suggest you to reach MS to open a ticket at https://support.microsoft.com/en-us/assistedsupportproducts

    With more professional background and remote desktop or other troubleshooting tool, they could be able to resolve this issue.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.