After upgrading to OSX Sierra I am having an issue with random segmentation faults. It most commonly occurs when running rails test and I believe it is due to the sqlite3_ad
I faced the same issue, I upgraded sqlite3 gem to 1.3.12 and it helped