在 rails c
里面执行 Job.create!(:title => "Foo", :description => "Bar")
,报错:
sqlite3_adapter.rb:27: [BUG] Segmentation fault at 0x00000000000110
将 gem 'sqlite3'
移动到 group :development, :test do
变成:
group :development, :test do
gem 'byebug', platform: :mri
gem 'sqlite3'
end
而后 bundle install
重启 rails s
问题解决。
将下面两句注释掉
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
而后 bundle install
重启 rails s
问题解决。
附一张报错图: