This issue is still reproducible with a git snapshot of 3dc3103.
LD_LIBRARY_PATH=/build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu dh_auto_test
cd obj-x86_64-linux-gnu && make -j8 test ARGS\+=--verbose ARGS\+=-j8
make[2]: Entering directory '/build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --verbose -j8
UpdateCTestConfiguration from :/build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu/DartConfiguration.tcl
UpdateCTestConfiguration from :/build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu/DartConfiguration.tcl
Test project /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: init-test
1: Test command: /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu/init-test
1: Working Directory: /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu
1: Test timeout computed to be: 10000000
test 2
Start 2: get-current-test
2: Test command: /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu/get-current-test
2: Working Directory: /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu
2: Test timeout computed to be: 10000000
test 3
Start 3: brand-string-test
3: Test command: /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu/brand-string-test
3: Working Directory: /build/cpuinfo-0.0~git20220617.082deff/obj-x86_64-linux-gnu
3: Test timeout computed to be: 10000000
1: Running main() from /usr/src/googletest/googletest/src/gtest_main.cc
1: [==========] Running 132 tests from 28 test suites.
1: [----------] Global test environment set-up.
1: [----------] 1 test from PROCESSORS_COUNT
1: [ RUN ] PROCESSORS_COUNT.non_zero
1: [ OK ] PROCESSORS_COUNT.non_zero (0 ms)
1: [----------] 1 test from PROCESSORS_COUNT (0 ms total)
1:
1: [----------] 1 test from PROCESSORS
1: [ RUN ] PROCESSORS.non_null
1: [ OK ] PROCESSORS.non_null (0 ms)
1: [----------] 1 test from PROCESSORS (0 ms total)
1:
1: [----------] 13 tests from PROCESSOR
1: [ RUN ] PROCESSOR.non_null
1: [ OK ] PROCESSOR.non_null (0 ms)
1: [ RUN ] PROCESSOR.valid_smt_id
1: [ OK ] PROCESSOR.valid_smt_id (0 ms)
1: [ RUN ] PROCESSOR.valid_core
1: [ OK ] PROCESSOR.valid_core (0 ms)
1: [ RUN ] PROCESSOR.consistent_core
1: [ OK ] PROCESSOR.consistent_core (0 ms)
1: [ RUN ] PROCESSOR.valid_cluster
1: [ OK ] PROCESSOR.valid_cluster (0 ms)
1: [ RUN ] PROCESSOR.consistent_cluster
1: [ OK ] PROCESSOR.consistent_cluster (0 ms)
1: [ RUN ] PROCESSOR.valid_package
1: [ OK ] PROCESSOR.valid_package (0 ms)
1: [ RUN ] PROCESSOR.consistent_package
1: [ OK ] PROCESSOR.consistent_package (0 ms)
1: [ RUN ] PROCESSOR.consistent_l1i
1: [ OK ] PROCESSOR.consistent_l1i (0 ms)
1: [ RUN ] PROCESSOR.consistent_l1d
1: [ OK ] PROCESSOR.consistent_l1d (0 ms)
1: [ RUN ] PROCESSOR.consistent_l2
1: [ OK ] PROCESSOR.consistent_l2 (0 ms)
1: [ RUN ] PROCESSOR.consistent_l3
1: [ OK ] PROCESSOR.consistent_l3 (0 ms)
1: [ RUN ] PROCESSOR.consistent_l4
1: [ OK ] PROCESSOR.consistent_l4 (0 ms)
1: [----------] 13 tests from PROCESSOR (0 ms total)
1:
1: [----------] 1 test from CORES_COUNT
1: [ RUN ] CORES_COUNT.within_bounds
1: [ OK ] CORES_COUNT.within_bounds (0 ms)
1: [----------] 1 test from CORES_COUNT (0 ms total)
1:
1: [----------] 1 test from CORES
1: [ RUN ] CORES.non_null
1: [ OK ] CORES.non_null (0 ms)
1: [----------] 1 test from CORES (0 ms total)
1:
1: [----------] 10 tests from CORE
1: [ RUN ] CORE.non_null
1: [ OK ] CORE.non_null (0 ms)
1: [ RUN ] CORE.non_zero_processors
1: [ OK ] CORE.non_zero_processors (0 ms)
1: [ RUN ] CORE.consistent_processors
1: [ OK ] CORE.consistent_processors (0 ms)
1: [ RUN ] CORE.valid_core_id
1: [ OK ] CORE.valid_core_id (0 ms)
1: [ RUN ] CORE.valid_cluster
1: [ OK ] CORE.valid_cluster (0 ms)
1: [ RUN ] CORE.consistent_cluster
1: [ OK ] CORE.consistent_cluster (0 ms)
1: [ RUN ] CORE.valid_package
1: [ OK ] CORE.valid_package (0 ms)
1: [ RUN ] CORE.consistent_package
1: [ OK ] CORE.consistent_package (0 ms)
1: [ RUN ] CORE.known_vendor
1: [ OK ] CORE.known_vendor (0 ms)
1: [ RUN ] CORE.known_uarch
1: ./test/init.cc:313: Failure
1: Expected: (cpuinfo_uarch_unknown) != (core->uarch), actual: 0 vs 0
1: ./test/init.cc:313: Failure
1: Expected: (cpuinfo_uarch_unknown) != (core->uarch), actual: 0 vs 0
1: ./test/init.cc:313: Failure
1: Expected: (cpuinfo_uarch_unknown) != (core->uarch), actual: 0 vs 0
1: ./test/init.cc:313: Failure
1: Expected: (cpuinfo_uarch_unknown) != (core->uarch), actual: 0 vs 0
1: [ FAILED ] CORE.known_uarch (0 ms)
Reported here: https://bugs.debian.org/1024774
This issue is still reproducible with a git snapshot of 3dc3103.
/proc/cpuinfo:
cpuid-dump: