TCL recoverfault tests are failing in master right now with the following error:
$> ./testfixture ext/recover/recoverfault.test
recoverfault-1.0... Ok
recoverfault-1-oom-persistent.1... Ok
recoverfault-1-oom-persistent.2... Ok
free(): invalid pointer
[1] 415207 IOT instruction (core dumped) ./testfixture ext/recover/recoverfault.test
This is indeed happens due to the bug (rather minor - but still): if sqlite3MutexAlloc will fail during open call wal manager will be destroyed incorrectly with sqlite3_free function while it can be statically allocated.
Changes
Use dedicated destroy_wal_manager function which takes into account lifetime of the wal manager
Context
TCL
recoverfault
tests are failing in master right now with the following error:This is indeed happens due to the bug (rather minor - but still): if
sqlite3MutexAlloc
will fail during open call wal manager will be destroyed incorrectly withsqlite3_free
function while it can be statically allocated.Changes
Use dedicated
destroy_wal_manager
function which takes into account lifetime of the wal managerTesting
Compiled
testfixture
and run it locally