SQLite User Forum

Assertion failure in sqlite3VdbeExec function (pKeyInfo)
Login

Assertion failure in sqlite3VdbeExec function (pKeyInfo)

(1) By Song Liu (songliu) on 2023-05-12 01:12:27 [source]

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

Here is the link to file test.db used for reproducing the crash: test.db

.open test.db
SELECT zipfile(@0) ORDER BY 1;

Here are the outputs:

sqlite3-asan: sqlite3.c:95181: int sqlite3VdbeExec(Vdbe *): Assertion `pCx->pKeyInfo->enc==ENC(db)' failed.

My compilation flags:

    export CFLAGS="-g -O0 -DSQLITE_DEBUG 
                -DSQLITE_ENABLE_TREETRACE 
                -DSQLITE_ENABLE_WHERETRACE
                -DSQLITE_ENABLE_CURSOR_HINTS 
                -DSQLITE_COUNTOFVIEW_OPTIMIZATION 
                -DSQLITE_ENABLE_STAT4" 

(2) By Richard Hipp (drh) on 2023-05-12 10:52:53 in reply to 1 [link] [source]

(3) By Song Liu (songliu) on 2023-05-12 15:10:48 in reply to 2 [link] [source]

Thanks for your efforts!