microsoft / microsoft/vscode-cpptools

Unable to pause execution with root gdb

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

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

bug debugger help wanted
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

Type: Debugger

Describe the bug

  • OS and Version: Ubuntu 16.04.6 LTS
  • VS Code Version: 1.38.1
  • C/C++ Extension Version: 0.25.1

We needed to debug a program which needs root privileges to be run. In order to do this a added a wrapper to gdb to lauch with sudo and without password.

#!/bin/bash
sudo gdb "$@"

When we launch a program with the wrapped dbg(set on miDebuggerPath), we are not able to pause the execution of the program or add and stop on a breakpoint.

Although, when the breakpoint is already set before lauching the debugger, it will pause there and we are able to step through the code and also set new breakpoints. After removing the breakpoints and continuing execution we are again unable to pause execution.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、Ubuntu 上で miDebuggerPath を通じて構成された sudo gdb ラッパーを使って問題を再現します。実行を継続する前後で、一時停止とブレークポイントの動作を比較します。root 権限が必要なプログラムをデバッグしているときに、実行を一時停止し、ブレークポイントを確実に追加できれば完了です。

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

評価

技術スタック
bash, typescript, ubuntu, vscode
領域
devtools, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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