Hello,
By “debug” build, I am referring to the binaries that have all optimizations disabled and also the debug symbols. By “release” build, I am referring to he binaries that compile/link optimizations enabled and the debug symbols stripped.
QUESTION 1:
Is --enable-debug and --enable-releasemode the correct flags to build the debug and release binaries respectively?
QUESTION 2:
When “–enable-releasemode” is specified all tests PASS.
My debug build configure command line looks like this:
./configure --prefix=$PWD/../build --exec-prefix=$PWD/../build --enable-debug --enable-fts5 --enable-tempstore=yes CFLAGS="-DSQLCIPHER_TEST -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -I/openssl-OpenSSL_1_1_1h/build/include" LDFLAGS="-L/openssl-OpenSSL_1_1_1h/build/lib" LIBS="-lcrypto -ltcl8.5"
But When “–enable-debug” is specified I get this test failure:
test-invalid-plaintext-header-sizes…Assertion failed: (sqlite3PcacheRefCount(pPager->pPCache)>0 || pPager->tempFile), function assert_pager_state, file sqlite3.c, line 57846.
sh: line 1: 44282 Abort trap: 6 ./testfixture test/sqlcipher.test
How do I fix the test failure in debug build?
Thanks.