boostorg / boostorg/program_options
[Regression 1.69.0] Clang UBSan triggers when std::string is used in notify()
- 主要言語
- C++
- スター
- 136
- フォーク
- 117
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
We found that clang UBSan shows undefined behaviour when we use an option of type std::string with po::notify(). Please see https://stackoverflow.com/q/55064334/2375725 for more details and a minimal working example.
My colleague has already bisected the issue in [this comment](https://stackoverflow.com/questions/55064334/ubsan-boostprogram-options-with-stdstring?noredirect=1#comment96884751_55064334) and it seems to be related to activating ``-fvisibility-inlines-hidden`` and ``-fvisibility=hidden``.
Unfortunately we have no idea where to go from here...
We will also open a ticket at clang as we are really not sure whether this is a false positive in clang UBSan or actual undefined behaviour.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
リンクされた Stack Overflow の minimal working example から始め、指定された visibility flags を使用して Clang UBSan で 1.69.0 のリグレッションを再現します。この報告が実際の undefined behaviour を示しているのか、UBSan の false positive なのかを判断してください。完了には、確認済みの診断と、文書化された修正または upstream での解決が必要です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100