Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access violation in FesStatement.Finalize [DNET597] #561

Closed
firebird-automations opened this issue Apr 1, 2015 · 3 comments
Closed

Access violation in FesStatement.Finalize [DNET597] #561

firebird-automations opened this issue Apr 1, 2015 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Hennadii Zabula (zabulus)

Is related to DNET698

Votes: 1

In our CI I've experienced access violation while running firebird.sqlclient.tests with following managed stack:

at FB_965910463_Class.isc_dsql_free_statement(IntPtr[], Int32 ByRef, Int16)
at FB_965910463_Class.IFbClient.isc_dsql_free_statement(IntPtr[], Int32 ByRef, Int16)
at FirebirdSql.Data.Client.Native.FesStatement.Free(Int32)
at FirebirdSql.Data.Common.StatementBase.Release()
at FirebirdSql.Data.Client.Native.FesStatement.Release()
at FirebirdSql.Data.Client.Native.FesStatement.Dispose(Boolean)
at FirebirdSql.Data.Common.StatementBase.Finalize()

I don't have a native stack for this, but I look forward get it.

My suggestion bases on this:
"isc_dsql_allocate_statement2()
function is similar to the isc_dsql_alloc_statement() function except that
statement handles allocated using isc_dsql_allocate_statement2() are
automatically reset to NULL when the database under which they are allocated
is detached" (taken from ib6.0 beta docs)

I think a database was already deallocated before finalization of statement got to the queue. I think it needs somehow propagate deallocation of the database in managed statement objects.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue is related to DNET698 [ DNET698 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext - Finalizers [ 10807 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: vNext [ 10804 ]

Fix Version: vNext - Finalizers [ 10807 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants