Application crashes with Faulting module name: ntdll.dll, version: 10.0.14393.2608, time stamp: 0x5bd133d4 Exception code: 0xc0000374 Fault offset: 0x

  • Thread starter Thread starter Rajendra Perala
  • Start date Start date
R

Rajendra Perala

Guest
Hi team,

I have implemented an application that executes queries against source using odbc connectivity and writes results to a file. This application is crashing on client system. Please note that, application is executing count query on source (i.e., select count(*) from table) without any error and writes results to file. Whereas the same application is crashes when it tries to execute select query on source then the application crashes.

This application is a straight forward application, that uses ODBCConnection, ODBCCommand, OdbcDataAdapter and OdbcDataReader classes and writes results to file using System.IO. I have provided a 64-bit system dsn, which is using BBj ODBC Driver.

1.

When the application tries to get results from source using OdbcDataAdapter, fill into DataSet or DataTable, there itself the application crashes. Error details from Eventlog for the same,

Faulting application name: QueryResultsToFile_DAdapter.exe, version: 1.0.0.0, time stamp: 0x5c18d4e1
Faulting module name: ntdll.dll, version: 10.0.14393.2608, time stamp: 0x5bd133d4
Exception code: 0xc0000374
Fault offset: 0x00000000000f7b43
Faulting process id: 0xfb0
Faulting application start time: 0x01d496c227455ceb
Faulting application path: C:\Acsellerate\QueryResultsToFile_DAdapter.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 254c440d-fe66-4a70-958d-01f93eee39a1
Faulting package full name:
Faulting package-relative application ID:

2.
When the application tries to get results from source using OdbcDataReader, the application is not crashed at cmd.Executereader but crashes while looping through the datareader results. I have observed the same ntdll.dll exception in event log.

Faulting application name: QueryResultsToFile_DReader.exe, version: 1.0.0.0, time stamp: 0x5c18d4e7
Faulting module name: ntdll.dll, version: 10.0.14393.2608, time stamp: 0x5bd133d4
Exception code: 0xc0000374
Fault offset: 0x00000000000f7b43
Faulting process id: 0x3d0
Faulting application start time: 0x01d496c238aa96c4
Faulting application path: C:\Acsellerate\QueryResultsToFile_DReader.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: a2245bd2-1848-42ca-a5dc-efe1dbfd36e6
Faulting package full name:
Faulting package-relative application ID:

3. then I thought to first load all results from datareader into DataTable, then write results to file. In this case also application crashes at dt.Load(reader). Here is the error message from event log.

Application: QueryResultsToFile_DReader.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at System.Data.Odbc.OdbcDataReader.Close(Boolean)
at System.Data.Odbc.OdbcDataReader.Dispose(Boolean)
at System.Data.Common.DbDataAdapter.FillInternal(System.Data.DataSet, System.Data.DataTable[], Int32, Int32, System.String, System.Data.IDbCommand, System.Data.CommandBehavior)
at System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet, Int32, Int32, System.String, System.Data.IDbCommand, System.Data.CommandBehavior)
at System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet)
at QueryResultsToTxtFile.Program.ExecuteQuery(System.String, System.String)
at QueryResultsToTxtFile.Program.Main(System.String[])



Please find the details below.
Client OS: Windows 2016 Datacenter, 10.0.14393 Build 14393
DataSource Connectivity using ODBC
Driver: BBj ODBC Driver; Version: 18.01.00.00, Company: Basis International Ltd


Please let me know if you need more details

thank you,
Rajendra Perala,

Continue reading...
 
Back
Top