[clang] [clang][ssaf] Add JSONFormat support for WPASuite (PR #187403)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 11:43:21 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-sparc64-linux` running on `debian-stadler-sparc64` while building `clang` at step 7 "ninja check 1".

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

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

```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Analysis/Scalable/ssaf-format/WPASuite/with-plugin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
rm -rf /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/tools/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Output/with-plugin.test.tmp
# executed command: rm -rf /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/tools/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Output/with-plugin.test.tmp
# RUN: at line 6
mkdir -p /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/tools/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Output/with-plugin.test.tmp
# executed command: mkdir -p /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/tools/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Output/with-plugin.test.tmp
# RUN: at line 14
not /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/clang-ssaf-format --load /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/lib/SSAFExamplePlugin.so --type wpa /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Inputs/result-entry-missing-result-field.json 2>&1    | /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/FileCheck /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/with-plugin.test --match-full-lines --check-prefix=NO-RESULT-FIELD
# executed command: not /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/clang-ssaf-format --load /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/lib/SSAFExamplePlugin.so --type wpa /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Inputs/result-entry-missing-result-field.json
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/FileCheck /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/with-plugin.test --match-full-lines --check-prefix=NO-RESULT-FIELD
# .---command stderr------------
# | /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/with-plugin.test:16:21: error: NO-RESULT-FIELD: expected string not found in input
# | // NO-RESULT-FIELD: clang-ssaf-format: error: reading WPASuite from file '{{.*}}result-entry-missing-result-field.json'
# |                     ^
# | <stdin>:1:1: note: scanning from here
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | ^
# | <stdin>:3:332: note: possible intended match here
# | 0. Program arguments: /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/clang-ssaf-format --load /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/lib/SSAFExamplePlugin.so --type wpa /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Inputs/result-entry-missing-result-field.json
# |                                                                                                                                                                                                                                                                                                                                            ^
# | 
# | Input file: <stdin>
# | Check file: /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/with-plugin.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug. 
# | check:16'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: Stack dump: 
# | check:16'0     ~~~~~~~~~~~~
# |             3: 0. Program arguments: /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/clang-ssaf-format --load /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/lib/SSAFExamplePlugin.so --type wpa /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/llvm/clang/test/Analysis/Scalable/ssaf-format/WPASuite/Inputs/result-entry-missing-result-field.json 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:16'1                                                                                                                                                                                                                                                                                                                                                ?                                                                              possible intended match
# |             4: #0 0x0000010000fcf0e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux/stage1/bin/clang-ssaf-format+0xfcf0e0) 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5: #1 0x0000010000fcc26c SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             6: #2 0xfff80001015448b0 (/usr/lib/sparc64-linux-gnu/libc.so.6+0x448b0) 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
...

```

</details>

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


More information about the cfe-commits mailing list