由于JSON gem使用Ruby 1.9.3,而不是2.0.0,因此Heroku segfault。我怎样才能修好它?

由于JSON gem使用Ruby 1.9.3,而不是2.0.0,因此Heroku segfault。我怎样才能修好它?,ruby,json,heroku,segmentation-fault,Ruby,Json,Heroku,Segmentation Fault,这是一两天前开始随机发生的。以下是CI日志在部署成功并构建slug后所说的内容: Restarting Heroku... /mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] 然后是一堆堆栈跟踪内容: -- Ruby level backtr

这是一两天前开始随机发生的。以下是CI日志在部署成功并构建slug后所说的内容:

Restarting Heroku...
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
然后是一堆堆栈跟踪内容:

-- Ruby level backtrace information ----------------------------------------
/usr/bin/heroku:25:in `<main>'
/usr/local/heroku/lib/heroku/cli.rb:27:in `start'
/usr/local/heroku/lib/heroku/command.rb:13:in `load'
/usr/local/heroku/lib/heroku/command.rb:13:in `each'
/usr/local/heroku/lib/heroku/command.rb:14:in `block in load'
/usr/local/heroku/lib/heroku/command.rb:14:in `require'
/usr/local/heroku/lib/heroku/command/ps.rb:2:in `<top (required)>'
/usr/local/heroku/lib/heroku/command/ps.rb:2:in `require'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json.rb:54:in `<top (required)>'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json.rb:58:in `<module:JSON>'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json.rb:58:in `require'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/ext.rb:9:in `<top (required)>'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/ext.rb:12:in `<module:JSON>'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/ext.rb:17:in `<module:Ext>'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/common.rb:67:in `generator='
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/common.rb:67:in `new'
/mnt/home/u2144/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/common.rb:67:in `initialize'

我的gemfile指定了
Ruby'2.0.0'
,所以我不明白发生了什么。这是一个Heroku bug,还是我应该尝试用不同的宝石修复它

这是因为我有一些东西导致Heroku使用Ruby 1.9.3。从命令行:

bundle exec heroku restart
> Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0

我转而使用使用RVM的Ruby 2.0,警告消失了。然而,我的CI部署仍然被破坏。然后我将它从使用
bundle exec heroku…
切换到只使用
heroku…
,这很好。

这是因为我有一些东西导致heroku使用Ruby 1.9.3。从命令行:

bundle exec heroku restart
> Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0

我转而使用使用RVM的Ruby 2.0,警告消失了。然而,我的CI部署仍然被破坏。然后我将它从使用
bundle exec heroku…
切换到只使用
heroku…
,结果很好。

我遇到了完全相同的问题。仍然没有找到解决办法。我遇到了完全相同的问题。仍然没有找到解决办法。