Not sure if a bug or an illegal/unsupported compile time options combination.
Commit [](https://sqlite.org/src/info/3c5e63c22ffbfeb6)
---
SQLite-3c5e63c2$ cat bug.sh
make distclean
./configure CFLAGS="-DSQLITE_DEBUG -DSQLITE_MAX_EXPR_DEPTH=0"
make testfixture
cd test
../testfixture permutations.test extraquick misc1.test
SQLite-3c5e63c2$ ./bug.sh
rm -f *.lo *.la *.o sqlite3 libsqlite3.la
...
misc1-20.1... Ok
misc1-21.1...testfixture: sqlite3.c:101599: sqlite3ExprListFlags: Assertion `pExpr!=0' failed.
./bug.sh: line 5: 7887 Aborted (core dumped) ../testfixture permutations.test extraquick misc1.test
SQLite-3c5e63c2$