SQLite Forum

segmentation fault when closing a database from within a transaction
Login
Okay, yes, good, fix the crash.

...but what did you expect it to do? This code says "close the database and  then finalize the transaction." You can't finalize something via a closed conn.