ruby - therubyracer v8 init.so 段错误

标签 ruby apache v8 puma therubyracer

我正在运行 Centos 6.5、apache2 和 ruby​​ 2.1.2p95 并尝试为我的 sinatra 应用程序启动 Puma 服务器。它仍然无法提供极长的输出,但看起来真正的错误是:

/usr/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/therubyracer-0.11.3/v8/init.so: [BUG] Segmentation fault at 0x0000000007fc90

这是一个更大的输出 block :

-bash-4.1$ bundle exec puma -e staging
Puma starting in single mode...
* Version 2.9.1 (ruby 2.1.2-p95), codename: Team High Five
* Min threads: 0, max threads: 16
* Environment: staging
/usr/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/therubyracer-0.11.3/v8/init.so: [BUG] Segmentation fault at 0x0000000007fc90
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0042 p:-17562721875862 s:0153 e:000152 TOP    [FINISH]
c:0041 p:---- s:0151 e:000150 CFUNC  :require
c:0040 p:0023 s:0147 e:000146 TOP    /usr/lib/ruby/gems/2.1.0/gems/therubyracer-0.11.3/lib/v8.rb:4 [FINISH]
c:0039 p:---- s:0145 e:000144 CFUNC  :require
c:0038 p:0009 s:0141 e:000140 METHOD /usr/lib/ruby/gems/2.1.0/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:97 [FINISH]
c:0037 p:---- s:0138 e:000137 IFUNC
c:0036 p:---- s:0136 e:000135 IFUNC

我使用的是较新版本的 therubyracer,但看到有人建议回滚但没有用的帖子。

这似乎并不总是我遇到的错误。有一次是 sass gem 失败了,但这是最常见的

最佳答案

好吧,所以我确实想出了如何解决这个问题,这对我来说是一个很好的解决方案 b/c 我无论如何都计划部署 Node.js 项目,但正如 Jan Strnádek 在上面的评论中悲伤的那样,整个问题可能通过安装 node.js 来避免

https://www.digitalocean.com/community/tutorials/how-to-install-and-run-a-node-js-app-on-centos-6-4-64bit

然后我注释掉了 therubyracer gem 和任何依赖项并再次 bundle install 并且服务器立即启动没有问题。

关于ruby - therubyracer v8 init.so 段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26499192/

相关文章:

javascript - Chrome 在高迭代次数上意外减速

ruby-on-rails - 检索数据库数据的 finder 方法的性能

ruby-on-rails - 进行 Rails 搜索查询的有效方法

RubyMine 无法切换 SDK。未找到 RVM SDK '2.2.0@rails-devise'

apache - 在 AWS 服务器上安装 Apache 后,我无法再 SSH

android - V8 在 mac 上为 android 构建

sql-server - ruby 使用 Windows 身份验证连接 SQL Server

ruby-on-rails - 乘客列出所有文件而不是运行我的 Rails 应用程序

java - Apache Tiles 如果/否则

javascript - 将命令行参数传递给 V8 Javascript shell 中的脚本