FiberError/NoMemoryError error related to csv gem occurs when upgrading from ruby 3.1 to 3.3
还没有人认领这个 Issue。
评估
调研方向
首先比较 csv 3.2.5 和 3.2.8,尤其是提交 acc05116c55579b78925dd27024969b9daf69135,并在 Ruby 3.1.4 或 3.3.5 下复现报告的 FiberError、NoMemoryError 和 CPU 增加。完成的标准是确定该回归,并添加修复或回归测试,以表明受影响的 CSV 加载路径不再失败或导致报告的增加。
由索引模型根据 Issue 内容生成。
描述
When upgrading from ruby 3.1.4 to 3.3.5, FiberError/NoMemoryError error related to csv occurred in our system. In addition, when loading csv file, CPU load also increases compared to before.
- FiberError: can't alloc machine stack to fiber (1 x 659456 bytes): Cannot allocate memory error
- NoMemoryError: failed to allocate memory
After investigation we found the cause. It was caused by csv gem. When upgrading ruby version, csv version is also updated (from 3.2.5 to 3.2.8)
Even if we try to keep ruby 3.1.4 and only update csv gem to 3.2.8, the FiberError/NoMemoryError error will still occur
We have upgraded ruby 3.3.5 and kept the csv gem version 3.2.5 (same as ruby version 3.1.4) and FiberError/NoMemoryError didn't occur and CPU load also didn't increase
It seems that some changes from csv 3.2.5 to 3.2.8 caused the error. This commit of csv gem is very suspicious
- 主要语言
- Ruby
- 星标
- 218
- 派生
- 135
- 平均合并
- 15 小时 40 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/csv 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 3/5 1-2 天 新手友好度 42/100
-
难度 3/5 1-2 天 新手友好度 45/100
相似的 Issue
-
feature
难度 2/5 1-3 小时 新手友好度 64/100
betagouv/acces-cible#722 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
foobara/empty-ruby-project-generator#10 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 88/100
-
バグ
难度 1/5 1 小时以内 新手友好度 92/100