[llvm] Modify dwarfdump verification to allow sub-category counts (PR #125062)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 12:07:48 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/7456

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
Verifying -:	file format elf64-x86-64
Verifying .debug_abbrev...
Verifying .debug_info Unit Header Chain...
Verifying .debug_types Unit Header Chain...
Verifying non-dwo Units...
Verifying unit: 1 / 1
Verifying dwo Units...
Verifying .debug_line...
Verifying .debug_str_offsets...
Verifying .debug_names...
warning: Name Index @ 0x0 does not contain a hash table.
error: Name Index @ 0x0: Entry for DIE @ 0x2b (DW_TAG_namespace) with name namesp missing.
error: Name Index @ 0x0: Entry for DIE @ 0x33 (DW_TAG_variable) with name var_block_addr missing.
error: Name Index @ 0x0: Entry for DIE @ 0x4e (DW_TAG_namespace) with name (anonymous namespace) missing.
error: Name Index @ 0x0: Entry for DIE @ 0x4f (DW_TAG_variable) with name var_loc_addr missing.
error: Name Index @ 0x0: Entry for DIE @ 0x62 (DW_TAG_variable) with name var_loc_tls missing.
error: Name Index @ 0x0: Entry for DIE @ 0x71 (DW_TAG_variable) with name var_loc_gnu_tls missing.
error: Name Index @ 0x0: Entry for DIE @ 0x84 (DW_TAG_subprogram) with name fun_name missing.
error: Name Index @ 0x0: Entry for DIE @ 0x84 (DW_TAG_subprogram) with name _Z8fun_name missing.
error: Name Index @ 0x0: Entry for DIE @ 0xa2 (DW_TAG_inlined_subroutine) with name fun_inline missing.
error: Name Index @ 0x0: Entry for DIE @ 0xbe (DW_TAG_label) with name label missing.
error: Aggregated error counts:
error: Name Index DIE entry missing name occurred 10 time(s).
Errors detected.

--
Command Output (stderr):
--
RUN: at line 1: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llvm-mc -triple x86_64-pc-linux /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s -filetype=obj -o - | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/not /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llvm-dwarfdump -verify --verify-json=/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/tools/llvm-dwarfdump/X86/Output/debug-names-verify--completeness-json-output.s.tmp.json -
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llvm-mc -triple x86_64-pc-linux /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s -filetype=obj -o -
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/not /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llvm-dwarfdump -verify --verify-json=/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/tools/llvm-dwarfdump/X86/Output/debug-names-verify--completeness-json-output.s.tmp.json -
RUN: at line 2: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s --input-file /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/tools/llvm-dwarfdump/X86/Output/debug-names-verify--completeness-json-output.s.tmp.json
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s --input-file /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/tools/llvm-dwarfdump/X86/Output/debug-names-verify--completeness-json-output.s.tmp.json
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s:4:10: error: CHECK: expected string not found in input
# CHECK: {"error-categories":{"Name Index DIE entry missing name":{"count":10}},"error-count":10}
         ^
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/tools/llvm-dwarfdump/X86/Output/debug-names-verify--completeness-json-output.s.tmp.json:1:1: note: scanning from here
{"error-categories":{"Name Index DIE entry missing name":{"count":10,"details":{"DW_TAG_inlined_subroutine":1,"DW_TAG_label":1,"DW_TAG_namespace":2,"DW_TAG_subprogram":2,"DW_TAG_variable":4}}},"error-count":10}
^

Input file: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/tools/llvm-dwarfdump/X86/Output/debug-names-verify--completeness-json-output.s.tmp.json
Check file: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify--completeness-json-output.s

-dump-input=help explains the following input dump.

...

```

</details>

https://github.com/llvm/llvm-project/pull/125062


More information about the llvm-commits mailing list