System.Data.SQLite
View Ticket
Not logged in
Ticket UUID: b4ef73b33a7ce8d9f941542711bf3eef4278a3da
Title: AccessViolationException on Close()
Status: Closed Type: Incident
Severity: Important Priority: Medium
Subsystem: Native_Assembly Resolution: External_Bug
Last Modified: 2016-12-06 22:56:19
Version Found In: 1.0.103
User Comments:
anonymous added on 2016-11-09 13:48:41:
I am close connection another thread;

System.AccessViolationException in System.Data.SQLite.dl

in System.Data.SQLite.UnsafeNativeMethods.sqlite3_close_interop(IntPtr db)
in System.Data.SQLite.SQLiteBase.CloseConnection(SQLiteConnectionHandle hdl, IntPtr db)
in System.Data.SQLite.SQLiteConnectionHandle.ReleaseHandle()
in System.Runtime.InteropServices.CriticalHandle.Cleanup()
in System.Data.SQLite.SQLite3.Close(Boolean canThrow)
in System.Data.SQLite.SQLiteConnection.Close()
in System.Data.SQLite.SQLiteConnection.Dispose(Boolean disposing)
in System.Data.SQLite.SQLiteConnection.Dispose()

mistachkin added on 2016-11-09 15:54:00:
Is more than one thread at a time using System.Data.SQLite?

Are any objects being shared by more than one thread?

Is it possible to get a native stack trace?

anonymous added on 2016-11-09 22:16:34:
I have a problem using
https://github.com/abiliojr/fts5-snowball/blob/master/src/fts5stemmer.c

anonymous added on 2016-11-10 06:50:36:
StackTrace:
   in System.Data.SQLite.UnsafeNativeMethods.sqlite3_close_interop(IntPtr db)
   in System.Data.SQLite.SQLiteBase.CloseConnection(SQLiteConnectionHandle hdl, IntPtr db)
   in System.Data.SQLite.SQLiteConnectionHandle.ReleaseHandle()
   in System.Runtime.InteropServices.CriticalHandle.Cleanup()
   in System.Data.SQLite.SQLite3.Close(Boolean canThrow)
   in System.Data.SQLite.SQLiteConnection.Close()
   in System.Data.SQLite.SQLiteConnection.Dispose(Boolean disposing)
   in System.Data.SQLite.SQLiteConnection.Dispose()
   in ConsoleApplication1.Program.<Test1>d__2.MoveNext() in D:\test\ConsoleApplication1\ConsoleApplication1\Program.cs:строка 125

mistachkin added on 2016-11-10 19:44:42:
How does the "fts5stemmer.c" code impact this issue?  Does the issue only occur
when using this extension?

mistachkin added on 2016-11-10 19:45:25:
That is the same stack trace as before.  It only shows the managed call frames.

In order to get the native stack trace, you would need to enable native debugging
in Visual Studio or WinDbg.

anonymous added on 2016-11-11 06:44:25:
Example code with problem: http://pastebin.com/9CB4Mn2J
src and binary fts5 stemmer: https://yadi.sk/d/Nwpj1stayNgWx

anonymous added on 2016-11-11 13:10:27:
problem in a function call before the "destroyStemmer" function of the "ftsSnowballTokenize"
I am add printf function call with random number.
https://yadi.sk/d/64sDveC0yPwgT

mistachkin added on 2016-12-06 22:56:19:
This is most likely an issue with the external project "fts5-snowball".