The following (incorrect) SQL text causes SQLite to segfault:

<blockquote><verbatim>
SELECT c.* FROM (a,b) AS c;


This problem was found by Michal Zalewski, presumably using his "american fuzzy lop" fuzzer tool, and reported on the SQLite mailing list.  The bug appears to originate in check-in [99127a669c49f829] from 2013-01-03.