The second statement in the following script reports an SQLITE_CORRUPT error:

<blockquote><verbatim>
CREATE TABLE t1(a);
CREATE TABLE t2 AS SELECT name FROM sqlite_master;


The database is not actually corrupt.  This is a malfunction in the CREATE TABLE AS statement.

Bisecting indicates that this problem was introduced by check-in
[972881c6d3] on [2013-11-21], first released with version 3.8.2.