[BUG] QNX: Test user_counters_tabular_test is failing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 32/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- cpp
調査の方向性
user_counters_tabular_test と output_test_helper.cc:125 の tests/CMake 設定から始めます。ここで期待されるヘッダー正規表現が検証されます。QNX で --benchmark_counters_tabular=true を指定してテストを実行し、実際のヘッダー出力と期待される一致結果を比較します。assertion や core dump なしでテストが完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I'm trying to port benchmark v1.5.0 to qnx. I got it to build, but when I'm trying to run the tests on RPI4, user_counters_tabular_test is giving me the following error:
# user_counters_tabular_test
Running benchmarks...
-------------------------------
Testing ConsoleReporter Output
-------------------------------
1970-01-01 00:29:27
Running user_counters_tabular_test
Run on (4 X 1500 MHz CPU s)
CPU Caches:
L1 Instruction 49K
L1 Data 32K
---------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations UserCounters...
---------------------------------------------------------------------------------------------
BM_Counters_Tabular/threads:1 0.000 ns 0.000 ns 1000000000 Bar=2 Bat=8 Baz=4 Foo=1 Frob=16 Lob=32
BM_Counters_Tabular/threads:2 0.000 ns 0.000 ns 2000000000 Bar=2 Bat=8 Baz=4 Foo=1 Frob=16 Lob=32
BM_Counters_Tabular/threads:4 0.000 ns 0.000 ns 4000000000 Bar=2 Bat=8 Baz=4 Foo=1 Frob=16 Lob=32
BM_Counters_Tabular/threads:8 0.000 ns 0.000 ns 8000000000 Bar=2 Bat=8 Baz=4 Foo=1 Frob=16 Lob=32
BM_Counters_Tabular/threads:16 0.000 ns 0.000 ns 16000000000 Bar=2 Bat=8 Baz=4 Foo=1 Frob=16 Lob=32
BM_CounterRates_Tabular/threads:1 0.000 ns 0.000 ns 1000000000 Bar=1.89394M/s Bat=7.57576M/s Baz=3.78788M/s Foo=946.97k/s Frob=15.1515M/s Lob=30.303M/s
BM_CounterRates_Tabular/threads:2 0.000 ns 0.000 ns 2000000000 Bar=946.97k/s Bat=3.78788M/s Baz=1.89394M/s Foo=473.485k/s Frob=7.57576M/s Lob=15.1515M/s
BM_CounterRates_Tabular/threads:4 0.000 ns 0.000 ns 4000000000 Bar=416.927k/s Bat=1.66771M/s Baz=833.854k/s Foo=208.464k/s Frob=3.33542M/s Lob=6.67084M/s
BM_CounterRates_Tabular/threads:8 0.000 ns 0.000 ns 8000000000 Bar=82.1288k/s Bat=328.515k/s Baz=164.258k/s Foo=41.0644k/s Frob=657.03k/s Lob=1.31406M/s
BM_CounterRates_Tabular/threads:16 0.000 ns 0.000 ns 16000000000 Bar=51.6769k/s Bat=206.708k/s Baz=103.354k/s Foo=25.8385k/s Frob=413.415k/s Lob=826.831k/s
BM_CounterSet0_Tabular/threads:1 0.000 ns 0.000 ns 1000000000 Bar=20 Baz=40 Foo=10
BM_CounterSet0_Tabular/threads:2 0.000 ns 0.000 ns 2000000000 Bar=20 Baz=40 Foo=10
BM_CounterSet0_Tabular/threads:4 0.000 ns 0.000 ns 4000000000 Bar=20 Baz=40 Foo=10
BM_CounterSet0_Tabular/threads:8 0.000 ns 0.000 ns 8000000000 Bar=20 Baz=40 Foo=10
BM_CounterSet0_Tabular/threads:16 0.000 ns 0.000 ns 16000000000 Bar=20 Baz=40 Foo=10
BM_CounterSet1_Tabular/threads:1 0.000 ns 0.000 ns 1000000000 Bar=25 Baz=45 Foo=15
BM_CounterSet1_Tabular/threads:2 0.000 ns 0.000 ns 2000000000 Bar=25 Baz=45 Foo=15
BM_CounterSet1_Tabular/threads:4 0.000 ns 0.000 ns 4000000000 Bar=25 Baz=45 Foo=15
BM_CounterSet1_Tabular/threads:8 0.000 ns 0.000 ns 8000000000 Bar=25 Baz=45 Foo=15
BM_CounterSet1_Tabular/threads:16 0.000 ns 0.000 ns 16000000000 Bar=25 Baz=45 Foo=15
BM_CounterSet2_Tabular/threads:1 0.000 ns 0.000 ns 1000000000 Bat=30 Baz=40 Foo=10
BM_CounterSet2_Tabular/threads:2 0.000 ns 0.000 ns 2000000000 Bat=30 Baz=40 Foo=10
BM_CounterSet2_Tabular/threads:4 0.000 ns 0.000 ns 4000000000 Bat=30 Baz=40 Foo=10
BM_CounterSet2_Tabular/threads:8 0.000 ns 0.000 ns 8000000000 Bat=30 Baz=40 Foo=10
BM_CounterSet2_Tabular/threads:16 0.000 ns 0.000 ns 16000000000 Bat=30 Baz=40 Foo=10
/home/avchen/benchmark/test/output_test_helper.cc:125: CheckCase: Check `TC.match_rule != MR_Next' failed. Expected line "Benchmark Time CPU Iterations UserCounters..." to match regex "^Benchmark %s Time %s CPU %s Iterations %s Bar %s Bat %s Baz %s Foo %s Frob %s Lob$"
actual regex string "^Benchmark[ ]+Time[ ]+CPU[ ]+Iterations[ ]+Bar[ ]+Bat[ ]+Baz[ ]+Foo[ ]+Frob[ ]+Lob$"
started matching near: Benchmark Time CPU Iterations UserCounters...
Abort (core dumped)
Someone suggested to me under another issue that there might be a possibility that a command-line handling is broken (or simply impossible) on the OS that I'm on.
I have --benchmark_counters_tabular enabled in the CMake file under tests folder:
compile_output_test(user_counters_tabular_test)
add_test(user_counters_tabular_test user_counters_tabular_test --benchmark_counters_tabular=true --benchmark_min_time=0.01)
Anyone has any idea as to why I get this core dumped?
System
Which OS, compiler, and compiler version are you using:
- OS: qnx
- Compiler and version: using qcc, Toolchain: gcc Version: 12.2.0
To reproduce
Steps to reproduce the behavior:
- sync to commit ...
- cmake/bazel...
- make ...
- See error
- 主要言語
- C++
- スター
- 10.5k
- フォーク
- 1.8k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/benchmark のほかの issue
-
[BUG] Confusing title in docs/platform_specific_build_instructions.md対応中かも @skryabae が 30 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Memory manager counts allocations not part of benchmark再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
google/benchmark#2149 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
[FR] Add native Zig bindings via top-level `bindings/zig`再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
google/benchmark#2266 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
google/benchmark#2235 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
google/benchmark#2195 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
google/benchmark の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Niko1221/Strata#5560 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
NVIDIA windows
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
要トリアージ 辞書
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
yksr-melt/Meltype#1625 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
kind/bug priority/medium qa_automation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
yugabyte/yugabyte-db#37324 ·
メンテナーはふだん 1 日以内に返信