SQLite User Forum

Assertion failure in sqlite3WalFrames function
Login

Assertion failure in sqlite3WalFrames function

(1) By Song Liu (songliu) on 2023-05-03 00:56:36 [source]

I found an assertion failure while SQLite (latest, 92ade220dcf5c1b7) executes the following queries.

Here are the links to files malform and malform-wal used for reproducing the crash: malform, malform-wal

.open malform
VACUUM

Here are the outputs:

sqlite3-asan: sqlite3.c:67138: sqlite3WalFrames: Assertion `(int)pWal->szPage==szPage' failed.

My compilation flags:

export CFLAGS="-g -DSQLITE_DEBUG
            -DSQLITE_ENABLE_TREETRACE
            -DSQLITE_ENABLE_WHERETRACE
            -DSQLITE_ENABLE_CURSOR_HINTS
            -DSQLITE_COUNTOFVIEW_OPTIMIZATION
            -DSQLITE_ENABLE_STAT4"
./configure --enable-all --enable-debug --disable-shared && make