macOS Rubies need Homebrew openssl@4 >= 4.1 since #980; an older 4.x segfaults instead of erroring
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 82/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, macos, ruby
- 领域
- devops, documentation
调研方向
找到 README 中关于自托管 runner 的部分,并阅读其中有关使 libssl 与 GitHub 镜像匹配的现有说明。更新说明,指出 macOS arm64 的 Ruby 4.0.10 构建需要 Homebrew openssl@4 版本 4.1.0 或更高版本;当文档中的最低版本与 issue 报告的可用版本一致时,即视为完成。issue 还建议在加载了较旧的 OpenSSL 时,让 setup-ruby 显示更清晰的错误,但没有提供实现该更改的切入点。
由索引模型根据 Issue 内容生成。
描述
What changed: since the builds added in #980, the macOS arm64 Rubies link Homebrew openssl@4 instead of openssl@3 (I checked 3.4.13 and 4.0.10). 4.0.10 is built against openssl@4 4.1.0; 4.0.9 linked openssl@3.
What happens with ruby/setup-ruby@v1 and Ruby 4.0.10 on a third-party macOS 26 arm64 runner:
openssl@4 on the machine |
Result |
|---|---|
| None | gem install bundler fails: OpenSSL is not available |
| 4.0.1 | Ruby loads, then OpenSSL::PKCS7#verify([], …) segfaults (backtrace below) |
| 4.1.0 (local repro) | Works |
Ask: I know the README asks self-hosted runners to match the GitHub image's libssl, so this is expected. Could the self-hosted section mention that macOS builds now need Homebrew openssl@4 at least as new as the one they were built with? A clear error from setup-ruby when the loaded OpenSSL is older than the build's would also have saved a lot of debugging.
Backtrace and repro
[BUG] Segmentation fault at 0x0000000000000000
ruby 4.0.10 (2026-11-19 revision a704b7cd95) +PRISM [arm64-darwin24]
openssl.bundle(ossl_x509_ary2sk0+0x50) ext/openssl/ossl.c:66
openssl.bundle(ossl_pkcs7_verify+0x12c) ext/openssl/ossl_pkcs7.c:797
Reproduced locally with the released 4.0.10 tarball and the script below: it passes with openssl@4 4.1.0, and with the 4.0.1 bottle it segfaults in ossl_x509_ary2sk0 (ossl.c:66) already at OpenSSL::PKCS7.sign(…, [], …).
require 'openssl'
puts "ruby #{RUBY_VERSION}, #{OpenSSL::OPENSSL_LIBRARY_VERSION}, openssl gem #{OpenSSL::VERSION}"
key = OpenSSL::PKey::RSA.new(2048)
cert = OpenSSL::X509::Certificate.new
cert.version = 2
cert.serial = 1
cert.subject = cert.issuer = OpenSSL::X509::Name.parse('/CN=repro')
cert.public_key = key
cert.not_before = Time.now
cert.not_after = Time.now + 3600
cert.sign(key, OpenSSL::Digest.new('SHA256'))
der = OpenSSL::PKCS7.sign(cert, key, '<plist/>', [], OpenSSL::PKCS7::BINARY).to_der
# Same call as fastlane_core/provisioning_profile.rb:115
profile = OpenSSL::PKCS7.new(der)
result = profile.verify([], OpenSSL::X509::Store.new, nil, OpenSSL::PKCS7::NOVERIFY)
puts "verify returned #{result}, data=#{profile.data}"
- 主要语言
- JavaScript
- 星标
- 1k
- 派生
- 381
- 平均合并
- 17 小时 39 分钟
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/setup-ruby 的其他 Issue
-
Ruby 3.2.11 for ubuntu-26.04 isn't linked against libcrypt: String#crypt ignores $1$/$5$/$6$ salts可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
ruby/setup-ruby#985 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 8/100
ruby/setup-ruby#972 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 20/100
ruby/setup-ruby#967 · 3 个 reaction ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
ruby/setup-ruby#801 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 42/100
ruby/setup-ruby#791 · 3 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
marketing
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
Kanevry/session-orchestrator#108 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
andromarces/agent-loops#2055 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复