msvc-based stacktrace should also allow to determine the module image path
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cpp
調査の方向性
まず、MSVC ベースのスタックトレース実装を見つけ、現在どのようにモジュール名を判定しているかを確認します。IDebugSymbols::GetModuleByOffset、GetModuleNames、RtlCaptureStackBackTrace を確認します。モジュールのイメージパスが含まれ、報告されている空のスタックトレースのケースに対処しつつ、既存のスタックトレースの動作を壊していなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
The current msvc-based stacktrace only determines the module name - not its complete path - contrary to the full featured unixoid implementation. It turns out that this is rather simple to realize and valuable when attempting to analyze application problems by inspecting the referred to image paths. It means that you first calls IDebugSymbols::GetModuleByOffset followed by IDebugSymbols::GetModuleNames using the ImageNameBuffer, ImageNameBufferSize, and ImageNameSize parameters. I'm using this extended information in my own stacktrace implementation.
There is another way of improving the quality of msvc stacktraces related to the problem described capturestackbacktrace-randomly-fails-after-initial. I'm aware that the current stacktrace implementation has eliminated any explicit call of CoInitializeEx, but that does not prevent the user to make such a call. Instead of rewriting RtlCaptureStackBackTrace as suggested in this article, a very simple workaround seems to help here. Before calling RtlCaptureStackBackTrace with a static buffer (128), just call RtlCaptureStackBackTrace with the FramesToCapture equal to just 1 ignoring this stub call, which prevents the potential empty stacktrace situation for the second call.
Would there be interest for a corresponding PULL request?
- 主要言語
- C++
- スター
- 497
- フォーク
- 86
- 平均マージ
- 8日 20時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boostorg/stacktrace のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
boostorg/stacktrace#233 ·
-
Ошибка в Inscape オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
boostorg/stacktrace#211 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
boostorg/stacktrace#208 · コメント 6 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
boostorg/stacktrace#197 · コメント 3 件 ·
-
enhancement help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
boostorg/stacktrace#176 · コメント 1 件 ·
boostorg/stacktrace の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
duckdb/duckdb-wasm#2258 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·
-
Coarray integration tests carry no LABELS, so run_tests.py silently skips them under every backend オープンcoarray
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
FISCO-BCOS/FISCO-BCOS#5642 ·