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

BOOST_SPIRIT_DEBUG produces assertion failure in the MP iterator

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

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

評価

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

調査の方向性

Reproduce the failure with the sample input, BOOST_SPIRIT_DEBUG enabled in cpp_config.hpp, BOOST_SPIRIT_DEBUG_FLAGS_CPP including BOOST_SPIRIT_DEBUG_FLAGS_HAS_INCLUDE_GRAMMAR, and a debug-mode wave executable. Start by tracing the MP iterator state at the mp.queued_position <= size assertion, then verify the fix against this input without the assertion or segfault.

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

説明

With the following sample input:

// #include <iostream>

#define HIF(x) __has_include(x)

bool hiY() {
#if HIF(<bitset>)
    bool has_bitset = true;
#else
    bool has_bitset = false;
#endif
    return has_bitset;
}

and BOOST_SPIRIT_DEBUG enabled in cpp_config.hpp with BOOST_SPIRIT_DEBUG_FLAGS_CPP set as follows:

#define BOOST_SPIRIT_DEBUG_FLAGS_CPP ( 0 \
        /* insert the required flags from above */ \
| BOOST_SPIRIT_DEBUG_FLAGS_HAS_INCLUDE_GRAMMAR    ) \
    /**/
#endif 

and the wave executable built in debug mode, it produces the error Assertion mp.queued_position <= size' failed.` and segfaults.

主要言語
C++
スター
29
フォーク
56
平均マージ
1日 15時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

boostorg/wave のほかの issue

boostorg/wave の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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