macOS: migrate-failure and migrate-failure-readable tests fail

Hello,
I am using SQLCipher 4.6.0 with openssl 3.3.1.

When I execute “./testfixture test/sqlcipher.test” I get these failures:

migrate-failure…Assertion failed: (p->wantToLock>0), function sqlite3BtreeLeave, file sqlite3.c, line 70374.
migrate-failure-readable…Assertion failed: (p->wantToLock>0), function sqlite3BtreeLeave, file sqlite3.c, line 70374.

Can you please tell me how to fix these errors? Currently, my builds are failing because of these two test failures. I am concerned there is something wrong with my build.

FYI: When I remove these two tests, all the other tests PASS.

Thanks

@JohnGa thanks for reporting this. I was able to reproduce this, it looks like this may be a regression, or a problem with the way we are simulating an error during migration. We will look into it further and attempt to resolve it for the next release.

In the mean time, you could either remove those tests from your build, or build the tests with -DNDEBUG or without --enable-debug to disable assertions.

1 Like