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

OpenDebugAD7 process does not exit when its input is closed

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
devtools

調査の方向性

Run the supplied bash reproducer against OpenDebugAD7 and inspect its input-close and thread-lifetime handling. Confirm the expected process-exit behavior and verify that OpenDebugAD7, GDB, and the debuggee no longer remain alive after input closes.

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

説明

When the OpenDebugAD7 input is closed, the program does not exit and instead stays alive doing nothing, which also keeps GDB and the debuggee alive.

Reproducer:

#!/bin/bash
# Usage: ./repro.sh /path/to/OpenDebugAD7
# Leaves the processes running. Kill OpenDebugAD7 afterwards.
send() { printf 'Content-Length: %d\r\n\r\n%s' ${#1} "$1"; }
{
  send '{"seq":1,"type":"request","command":"initialize","arguments":{"adapterID":"cppdbg","pathFormat":"path"}}'
  send '{"seq":2,"type":"request","command":"launch","arguments":{"program":"/bin/sleep","args":["12345"],"cwd":"/","MIMode":"gdb"}}'
  send '{"seq":3,"type":"request","command":"configurationDone"}'
  sleep 5
} | "$1" &> /dev/null &
sleep 15
pgrep -a -x OpenDebugAD7;
pgrep -a -x gdb;
pgrep -a -f 'sleep 12345'

This is because the remaining threads are treated as foreground threads, and so keep the program alive. One solution is to mark them as background threads. Another is to handle closed input as if the user had sent a disconnect request.

主要言語
C#
スター
859
フォーク
233
平均マージ
4日 14時間
マージ済み PR(30日)
3

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

microsoft/MIEngine のほかの issue

microsoft/MIEngine の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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