Zlib.gzip sometimes errors out with Zlib::BufError if process has been forked
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
调研方向
从 _testzlib.rb 中的复现程序开始:它会 fork 十个进程,然后使用一个大字符串调用 Zlib.gzip。反复运行它,并查看对 opal/opal#2463 的引用以及 Ruby 2.6–3.1 的 CI 报告。当 fork 出的进程场景不再引发 Zlib::BufError 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Ref: opal/opal#2463
The issue can't be reproduced reliably, the most reliable way is with the following code (you may need to launch it a couple of times) WARNING: it forks a lot of processes:
[user@localhost opal]# ruby _testzlib.rb
_testzlib.rb:5:in `gzip': buffer error (Zlib::BufError)
from _testzlib.rb:5:in `<main>'
[user@localhost opal]# _testzlib.rb:5:in `gzip': buffer error (Zlib::BufError)
from _testzlib.rb:5:in `<main>'
[user@localhost opal]#
[user@localhost opal]# cat _testzlib.rb
require 'zlib'
10.times { fork }
Zlib.gzip("sdfasfasdfasdfasdasdfadfasdf" * 10000)
[user@localhost opal]#
The issue has been seen on opal's CI since Ruby 2.6 until 3.1.
- 主要语言
- C
- 星标
- 73
- 派生
- 40
- 平均合并
- 10 小时 32 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/zlib 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 3/5 1-2 天 新手友好度 42/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 60/100
-
Nmap
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
flang:fir-hlfir
难度 2/5 1-3 小时 新手友好度 70/100
llvm/llvm-project#225935 ·