Thanks for reporting this. An assert() fails in debug mode too. I think this test case is expected to malfunction. See the second paragraph under "Concurrent Usage of Database Handles" here: [](https://www.sqlite.org/c3ref/backup_finish.html) As you say, we should be able to avoid the segfault though. Dan.