Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Detect missing panic recovery in goroutines in plugins

オープン
#10 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go
領域
tooling

調査の方向性

この issue ではプラグインと生成された goroutine について言及していますが、ファイル、テスト、エントリーポイントは特定されていません。まず、プラグインの goroutine がどこで作成されているかを特定し、静的検出と動的検出のどちらが意図されているかを判断してください。プラグインの goroutine に panic recovery がない場合に警告が出れば完了です。

索引モデルが issue の本文から書いたものです。

説明

Issue by insomniacslk
Tuesday Feb 04, 2020 at 16:25 GMT
Originally opened as https://github.com/facebookincubator/contest/issues/5


Panic in goroutines other than the main one cannot be recovered explicitly, they have to be handled in the goroutine itself[1].
For ConTest this means that if a test step or any other plugin has a goroutine that panics, we are not able to catch it.

We should write a tool to detect (statically or dynamically) whether each spawned goroutine attempts to recover, and warn that the plugin may break the service run.

[1] https://stackoverflow.com/questions/50409011/handling-panics-in-go-routines

主要言語
Go
スター
20
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxboot/contest のほかの issue

linuxboot/contest の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。