The INSERT statement at the end of the following SQL causes SQLite to enter
an infinite loop:

<blockquote><verbatim>
CREATE TABLE tab1( value INTEGER);
INSERT INTO tab1 (value, _rowid_) values( 11, 1);
INSERT INTO tab1 (value, _rowid_) SELECT 22,2;


Bisecting shows that this bug was introduced by check-in [a72687699ba2af2e7]
for version 3.8.4.