SQLite User Forum

Assertion failure in zAutoColumn function
Login

Assertion failure in zAutoColumn function

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

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

Here is the link to file malform used for reproducing the crash: malform

PRAGMA hard_heap_limit=800000;
.m cs
.i malform 0

Here are the outputs:

sqlite3-asan: shell.c:23154: char *zAutoColumn(const char *, sqlite3 **, char **): Assertion `rc==SQLITE_DONE' 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

(2) By Larry Brasfield (larrybr) on 2023-05-03 12:21:25 in reply to 1 [link] [source]

This was fixed last night.

(3) By Song Liu (songliu) on 2023-05-03 14:36:36 in reply to 2 [link] [source]

Thanks for your efforts!