Issue Details (XML | Word | Printable)

Key: DNET-727
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Jiri Cincura
Reporter: Eric Bole-Feysot
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

Random crash: NullReferenceException and invalid database handle. Crashing demo application available.

Created: 17/Dec/16 03:50 PM   Updated: 21/Feb/17 07:47 AM
Component/s: ADO.NET Provider
Affects Version/s: 4.9.0.0, 4.10.0.0, 5.0.0.0, 5.0.5.0, 5.1.0.0, 5.1.1.0, 5.5.0.0, 5.6.0.0, 5.7.0.0
Fix Version/s: 5.8.0.0

Environment: Windows 10, desktop
Issue Links:
Relate
 


 Description  « Hide
Hi
I would like to report some random crashes I met since v4.8.1 on FirebirdSql.Data.Client. It happens randomly so it is not easy to reproduce. One of my app user reported this bug some days ago and I took a new look at it.
I manage to modify my application to reproduce this bug (still random). It is a multithreaded app with firebird 2.5.6.
I tried with the latest 5.7.0 and it is still there.

System.NullReferenceException: Object reference not set to an instance of an object.
   at FirebirdSql.Data.FirebirdClient.FbCommand.Release() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 832
   at FirebirdSql.Data.FirebirdClient.FbCommand.Dispose(Boolean disposing) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 376
   at System.ComponentModel.Component.Finalize()

invalid database handle (no active connection)
at FirebirdSql.Data.Client.Native.FesDatabase.ProcessStatusVector(IntPtr[] statusVector) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Client\Native\FesDatabase.cs:line 365
   at FirebirdSql.Data.Client.Native.FesStatement.Free(Int32 option) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Client\Native\FesStatement.cs:line 621
   at FirebirdSql.Data.Common.StatementBase.Release() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Common\StatementBase.cs:line 241
   at FirebirdSql.Data.Client.Native.FesStatement.Release() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Client\Native\FesStatement.cs:line 246
   at FirebirdSql.Data.Client.Native.FesStatement.Dispose(Boolean disposing) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Client\Native\FesStatement.cs:line 181
   at FirebirdSql.Data.FirebirdClient.FbCommand.Release() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 838
   at FirebirdSql.Data.FirebirdClient.FbCommand.Dispose(Boolean disposing) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 376
   at System.ComponentModel.Component.Finalize()

I suppose both are related. It happens during the dispose of objects.
I got a compiled application (46 MB). Tell me if you want to give it a try and I will upload it to my domain server.

The crash seems more frequent on my desktop computer than on my laptop...

Currently I'm stuck in v4.8.1 (in fact I did a v4.8.2 with a dirty hack to catch the exception and I didn't see any side effect so far), but I would like to catch up with the latest release.

Thanks for your work and I hope you will find a fix as it is very annoying.

Eric

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.