I just ran across this little bug ============================================ > sqlite3 SQLite version 3.3.6 Enter ".help" for instructions sqlite> .import x y Segmentation fault ============================================
gdb shows where it took place : ============================================ sqlite> .import x y Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 16754)] sqlite3SafetyOn (db=0x0) at ../sqlite-3.3.6/src/util.c:1149 1149 if( db->magic==SQLITE_MAGIC_OPEN ){ ============================================ There may be other places where not enough checks are made.