shpool attach -b leaves zombie session records that kill can't remove
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
daemon/shell.rs とその bidi_stream ループから始め、次に daemon/server.rs の handle_kill と既存の attach クリーンアップパスを調べます。示されているコマンドで問題を再現し、制限ありの場合と制限なしの場合の attach の動作を比較します。子プロセスの終了または kill パスによって切断されたレコードが削除され、kill が暗黙に失敗するのではなく使用可能な結果を返せば完了です。
索引モデルが issue の本文から書いたものです。
説明
Warn: This report is generated by AI, but I (human) guarantee the report quality.
Summary
shpool attach -b <name> -c '<quick cmd>' leaves a disconnected zombie session record after the command exits. shpool kill <name> then fails (exit 1, no error message) and the record persists forever.
Reproduce (100%)
shpool attach -b ztest -c '/bin/sleep 0.1'
sleep 1
shpool list # ztest shows disconnected
shpool kill ztest # exit 1, record remains
Non--b attach with the same cmd cleans up correctly (control group).
Root cause (libshpool 0.11.0)
daemon/shell.rsbidi_streamloop breaks onclient_to_shell_h.is_finished()—-bdetaches immediately, so the loop exits while the child may still be running →child_done=false→ record kept. After the child exits, no supervisor thread is monitoring (already stopped), so the record is never cleaned.daemon/server.rshandle_kill:shell.kill()→signal::kill(child_pid, SIGHUP)→ child already dead → ESRCH → returns Err before writing the kill reply → client fails onread_reply(hence no "not found" message).
Expected
- Zombie records should be reaped when the child exits (even with no client attached), or
killshould handle dead children gracefully and remove the record.
Workaround
shpool attach -b <name> (respawns shell, re-links record) then shpool kill <name> works.
- 主要言語
- Rust
- スター
- 2k
- フォーク
- 70
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
shell-pool/shpool のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
shell-pool/shpool#463 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
shell-pool/shpool#442 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
misc LLM reportsオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
shell-pool/shpool#454 ·
メンテナーはふだん 1 日以内に返信
-
vterm
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
shell-pool/shpool#445 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
publish .deb filesオープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
shell-pool/shpool#429 ·
メンテナーはふだん 1 日以内に返信
shell-pool/shpool の issue をすべて見る
似ている issue
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
influxdata/influxdb#27767 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
oras-project/rust-oci-client-node#132 ·
メンテナーはふだん 2 日以内に返信
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)対応中かも @zyl71 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
Blockstream/lwk#213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
libracoder/kiri#749 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manuscript-lang/manuscript#6389 ·
メンテナーはふだん 1 日以内に返信