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

[Bug]: absl_raw_hash_set_test fails on arm-linux-gnueabihf

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

メンテナーはふだん 2 日以内に返信

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

評価

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

調査の方向性

失敗しているテストは absl/container/internal/raw_hash_set_test.cc の 2659 行目にある TableDeathTest.InvalidIteratorAssertsSoo です。Death test は特定のエラーメッセージを期待していますが、raw_hash_set.h の 2675 行目から assertion failure を受け取っています。まず、テストで期待されている regex と実際の assertion を調べてください。arm-linux-gnueabihf システムでテストを実行して再現し、その後、期待されている iterator error ではなく assertion が発生する理由をデバッグしてください。これがアーキテクチャ固有の問題なのか、small object optimization (Soo) に関連しているのかを確認してください。

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

説明

Describe the issue

with the 20250815.1 release, this test fails on arm-linux-gnueabihf:

51: 86/219 Test #51: absl_raw_hash_set_test .............................***Failed 1.56 sec Running main() from gmock_main.cc [==========] Running 372 tests from 45 test suites. [----------] Global test environment set-up. [----------] 2 tests from TableDeathTest [ RUN ] TableDeathTest.InvalidIteratorAsserts [ OK ] TableDeathTest.InvalidIteratorAsserts (7 ms) [ RUN ] TableDeathTest.InvalidIteratorAssertsSoo ./absl/container/internal/raw_hash_set_test.cc:2659: Failure Death test: t.erase(t.end()) Result: died but not with expected error. Expected: contains regular expression "erase.* called on end.. iterator." Actual msg: [ DEATH ] absl_raw_hash_set_test: ./absl/container/internal/raw_hash_set.h:2675: void absl::debian8::container_internal::raw_hash_set<Policy, Hash, Eq, Alloc>::erase(iterator) [with Policy = absl::debian8::container_internal::{anonymous}::ValuePolicy<long long int, true, true>; Hash = absl::debian8::hash_internal::Hash<long long int>; Eq = std::equal_to<long long int>; Alloc = std::allocator<long long int>]: Assertion (capacity() > 0) && "Try enabling sanitizers."' failed.
[ DEATH ]

[ FAILED ] TableDeathTest.InvalidIteratorAssertsSoo (2 ms)
[----------] 2 tests from TableDeathTest (10 ms total)
`

Steps to reproduce the problem

build on a Debian unstable armhf system.

What version of Abseil are you using?

20250815.1

What operating system and version are you using?

Debian unstable

What compiler and version are you using?

GCC 15.2 from the gcc-15 branch

What build system are you using?

cmake version 3.31.6

Additional context

No response

主要言語
C++
スター
18.2k
フォーク
3.2k
平均マージ
1日 13時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

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

abseil/abseil-cpp のほかの issue

abseil/abseil-cpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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