[FB-Tracker] Created: (DNET-727) Random crash: NullReferenceException and invalid database handle (crashing application available)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[FB-Tracker] Created: (DNET-727) Random crash: NullReferenceException and invalid database handle (crashing application available)

JIRA tracker@firebirdsql.org
Random crash: NullReferenceException and invalid database handle (crashing application available)
-------------------------------------------------------------------------------------------------

                 Key: DNET-727
                 URL: http://tracker.firebirdsql.org/browse/DNET-727
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 5.7.0.0, 5.6.0.0, 5.5.0.0, 5.1.1.0, 5.1.0.0, 5.0.5.0, 5.0.0.0, 4.10.0.0, 4.9.0.0
         Environment: Windows 10, desktop
            Reporter: Eric Bole-Feysot
            Assignee: Jiri Cincura
            Priority: Blocker


Hi
I would like to report some random crash 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).
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.

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

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Firebird-net-provider mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider