【发布时间】:2014-11-04 10:03:02
【问题描述】:
我花了今天大半的时间来解决一个问题,即由于 json gem 中的某些段错误问题,融合乘客无法处理请求。
有关于这个问题的类似帖子,但是似乎没有一个解决方案有效。我试图清除宝石并重新捆绑,例如gemset 为空,捆绑安装。
有趣的是,运行 rails server 没问题,单独运行 fusion-passenger 也很好,只有在 nginx 下运行时才会出现这个问题。
/usr/local/rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
Web application could not be started
An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read this article for more information about this problem.
原始过程输出:
/usr/local/rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
【问题讨论】: