FiberError/NoMemoryError error related to csv gem occurs when upgrading from ruby 3.1 to 3.3
まだ誰も着手していません。
- 主要言語
- Ruby
- スター
- 218
- フォーク
- 135
- 平均マージ
- 15時間 40分
- マージ済み PR(30日)
- 1
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず csv 3.2.5 と 3.2.8 を比較し、特にコミット acc05116c55579b78925dd27024969b9daf69135 を確認して、Ruby 3.1.4 または 3.3.5 で報告された FiberError、NoMemoryError、および CPU 増加を再現してください。回帰が特定され、影響を受ける CSV 読み込みパスが失敗せず、報告された増加も引き起こさないことを示す修正または回帰テストが追加されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ruby
- 領域
- data
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100