DB2 - Problem description
Problem IT34768 | Status: Closed |
DOTNET APPLICATION CRASHES WITH ACCESSVIOLATIONEXCEPTION FOR ARRAY INSERT WHEN DB2TRC IS ON | |
product: | |
DB2 CONNECT / DB2CONNCT / B50 - DB2 | |
Problem description: | |
C# application throws below AccessViolationException for Array Insert when db2trc is on: Unhandled Exception: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at IBM.Data.DB2.UnsafeNativeMethods.DB232.SQLExecDirectADONET(DB2Ex ecDirectParameters* pParam) at IBM.Data.DB2.DB2Command.ExecuteNonQueryObject(Boolean skipInitialValidation) at IBM.Data.DB2.DB2Command.ExecuteNonQueryObject() at IBM.Data.DB2.DB2Command.ExecuteNonQuery() at Orcas.TestOrcas.MultiRowInsertV10(DB2Connection conn) in C:UsersAdministratorsource eposORCAS1ORCAS1TestOrcas.cs:l ine 957 at Orcas.TestOrcas.startSelect() in C:UsersAdministratorsource eposORCAS1ORCAS1TestOrcas.cs:l ine 215 at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at IBM.Data.DB2.UnsafeNativeMethods.DB232.SQLExecDirectADONET(DB2Ex ecDirectParameters* pParam) at IBM.Data.DB2.DB2Command.ExecuteNonQueryObject(Boolean skipInitialValidation) at IBM.Data.DB2.DB2Command.ExecuteNonQueryObject() at IBM.Data.DB2.DB2Command.ExecuteNonQuery() at Orcas.TestOrcas.MultiRowInsertV10(DB2Connection conn) in C:UsersAdministratorsource eposORCAS1ORCAS1TestOrcas.cs:l ine 957 at Orcas.TestOrcas.startSelect() in C:UsersAdministratorsource eposORCAS1ORCAS1TestOrcas.cs:l ine 215 at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * For C# application using array insert with db2trc on * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to db2 v11.5.6.0 or later version. * **************************************************************** | |
Local Fix: | |
Solution | |
Workaround | |
**************************************************************** * USERS AFFECTED: * * For C# application using array insert with db2trc on * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to db2 v11.5.6.0 or later version. * **************************************************************** | |
Comment | |
db2 v11.5.6.0 contains the fix. After the fix, no crash observed. | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 03.11.2020 01.07.2021 01.07.2021 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |