sqlite3-test-multithread try to create some testing cases for testing multi-threading accessing to sqlite3-ruby extension. Run it to run it: bundle ruby multi_thread_test.rb to see my fix, go to gemfile and use my gem on github. repeat above steps.