I Computer a Life-long Learner

Rails Sqlite3 Segmentation fault

2017-04-20
booox

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 问题解决。

附一张报错图:


Similar Posts

Comments(需要科学上网)