setUnicodeLocale is dangerous and might lead to segmentation faults
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- haskell
調査の方向性
Start by locating the setUnicodeLocale implementation and all of its call sites in the Snap server code. Review how it interacts with setenv, getenv, and threaded startup, then determine the intended locale behavior and define regression coverage for the reported segmentation-fault risk.
索引モデルが issue の本文から書いたものです。
説明
The underlying problem is that setenv is not thread safe as simultaneous call to getenv in multithreaded enviroment might lead to segmentation fault by attempting to dereference a null pointer (relevant glibc ticket).
Considering that snap is usually started in a separate thread, this creates a serious issue, because a wide variety of functions call getenv internally (see above ticket for more info).
I personally encountered this problem when using ekg (which uses snap internally).
To be fair, I'm not sure why locale is set there to begin with.
- 主要言語
- Haskell
- スター
- 197
- フォーク
- 87
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
snapframework/snap-server のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
snapframework/snap-server#118 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
snapframework/snap-server#94 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
snapframework/snap-server#92 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
snapframework/snap-server#85 · コメント 8 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
snapframework/snap-server#77 · コメント 2 件 ·
snapframework/snap-server の issue をすべて見る
似ている issue
-
typst-0.12 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
commercialhaskell/stackage#8127 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
input-output-hk/haskell.nix#2573 ·
-
docs
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
needs triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100