Spatialite leak when loading/unloading sqlite fix?

54 views
Skip to first unread message

aidan murphy

unread,
Jul 8, 2015, 3:08:32 PM7/8/15
to spatiali...@googlegroups.com
New spatialite 4.2 suffers from a leak when loading/unloading the sqlite extension module. - https://groups.google.com/forum/#!topic/spatialite-users/xrV7CA_GlwM
This is supposed to be fixed in 4.2.1-rc1, but there is no plan on a 4.2.1 release. 4.3 was just released.  Is it safe to safe this has been fixed in this latest released?

Thank you,
Aidan Murphy

Michael Donkhin

unread,
Aug 14, 2016, 2:23:15 PM8/14/16
to SpatiaLite Users
I don't know if it's related, haven't looked into the source code, but there is still a constant mutex handles leak on Windows originating from libxml. We get it while using spatialite from .Net app.

Mutex creation stack as obtained by htrace WinDbg command:
 
0x0000000076f3c50a: ntdll!NtCreateMutant+0x000000000000000a
0x000007fefcd18707: KERNELBASE!CreateMutexExW+0x000000000000004f
0x000007fefcd20d60: KERNELBASE!CreateMutexExA+0x0000000000000038
0x0000000070ff10bd: <Unloaded_libxml2-2.dll>+0x00000000000b10bd
0x0000000070f8ee5a: <Unloaded_libxml2-2.dll>+0x000000000004ee5a
0x0000000070f73b85: <Unloaded_libxml2-2.dll>+0x0000000000033b85
0x000000001edb0c2b: <Unloaded_mod_spatialite.dll>+0x00000000003b0c2b
0x000000001eb1e966: <Unloaded_mod_spatialite.dll>+0x000000000011e966
0x000007fece2c5031: SQLite_Interop!sqlite3_test_control+0x0000000000002501
0x000007fece2e3618: SQLite_Interop!sqlite3_errmsg16+0x0000000000000508
0x000007fece32ed47: SQLite_Interop!sqlite3_prepare16_interop+0x00000000000021a7
0x000007fece333bd0: SQLite_Interop!sqlite3_prepare16_interop+0x0000000000007030
0x000007fece335493: SQLite_Interop!sqlite3_step+0x0000000000000093

This is with version 4.3.

Any thoughts on how this can be fixed?

Thanks,
Michael
Reply all
Reply to author
Forward
0 new messages