small medium large xlarge

30 Oct 2016, 21:36
J Shapiro (2 posts)

[EDIT: I’ve solved my problem, but will leave this up here in case others run into it… removing the white-space inside the curly braces stopped the segmentation fault from occurring. I’m surprised the white-space would cause an issue… is this a bug in rails or the sqlite3 adapter?

Bad: length: { minimum: 10 }

Good: length: {minimum: 10}

Chapter 7 - “Playtime”

After adding a new validation rule to product.rb: validates :title, length: { minimum: 10 }, I’m only able to execute bin/rails test once. If I run it a second time, I get a segmentation fault.

Shutting down the terminal window lets me execute my tests once again, but as before, a second execution causes the segmentation fault:

.rvm/gems/ruby-2.3.0/gems/activerecord- [BUG] Segmentation fault at 0x00000000000110

I’ve tried reinstalling the sqlite3 gem… any other ideas what could be causing this?

You must be logged in to comment