Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

mini_racer not starting: `ZSt28__throw_bad_array_new_lengthv: symbol not found (LoadError)`

未关闭
#295 9 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, javascript, linux, ruby
领域
backend, devops

调研方向

Start by reading the mini_racer loading path in lib/mini_racer.rb:14 and the native extension packaging/build setup for the x86_64-linux-musl platform. Reproduce the reported LoadError in Alpine Linux with Ruby 2.7.2 and mini_racer 0.6.4, then trace the missing symbol and check related issue #63. Done means the extension loads successfully in that environment, with a regression check covering the Alpine setup.

由索引模型根据 Issue 内容生成。

描述

alpine/musl

Hi folks, I'm trying to use mini_racer in an environment in a Alpine LInux Docker container, with Ruby 2.7.2 and Rails 6.1.1. I understand this issue might be related to #63, but bear with me for a second.

When running bundle install, this is what I got:

Installing libv8-node 16.19.0.1 (x86_64-linux-musl)
Fetching mini_racer 0.6.4
Installing mini_racer 0.6.4 with native extensions
Updating files in vendor/cache
  * libv8-node-16.19.0.1-x86_64-linux-musl.gem
  * mini_racer-0.6.4.gem

The above messages led me to believe that there are in fact prebuilt libraries for this environment and everything would be okay, but when trying to start Rails afterwards... _ZSt28__throw_bad_array_new_lengthv: symbol not found (LoadError):

1: from /app/vendor/ruby/2.7.0/gems/mini_racer-0.6.4/lib/mini_racer.rb:14:in `<main>'
/app/vendor/ruby/2.7.0/gems/mini_racer-0.6.4/lib/mini_racer.rb:14:in `load': Error relocating /app/vendor/ruby/2.7.0/extensions/x86_64-linux-musl/2.7.0/mini_racer-0.6.4/mini_racer_extension.so: _ZSt28__throw_bad_array_new_lengthv: symbol not found (LoadError)

(I can provide the full stack trace if necessary).

Is this a case of mini_racer and/or libv8-node not working in Alpine, or should this setup be working and it's something else? Thanks.

主要语言
JavaScript
星标
628
派生
100
平均合并
1 天 20 小时
30 天内合并 PR
2

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rubyjs/mini_racer 的其他 Issue

查看 rubyjs/mini_racer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。