[clang] [llvm] [Instrumentor] Add Alloca and Function support; stack usage example (PR #195378)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 7 19:53:02 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 134459 tests passed
* 3253 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Instrumentor/InstrumentorStackUsage.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ -O0 C:\_work\llvm-project\llvm-project\clang\test\Instrumentor/StackUsageRT.cpp -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Instrumentor\Output\InstrumentorStackUsage.cpp.tmp.StackUsageRT.o -c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ -O0 'C:\_work\llvm-project\llvm-project\clang\test\Instrumentor/StackUsageRT.cpp' -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Instrumentor\Output\InstrumentorStackUsage.cpp.tmp.StackUsageRT.o' -c
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ -O0 -mllvm -enable-instrumentor -mllvm -instrumentor-read-config-file=C:\_work\llvm-project\llvm-project\clang\test\Instrumentor/StackUsageRT.json C:\_work\llvm-project\llvm-project\build\tools\clang\test\Instrumentor\Output\InstrumentorStackUsage.cpp.tmp.StackUsageRT.o -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Instrumentor\Output\InstrumentorStackUsage.cpp.tmp C:\_work\llvm-project\llvm-project\clang\test\Instrumentor\InstrumentorStackUsage.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ -O0 -mllvm -enable-instrumentor -mllvm '-instrumentor-read-config-file=C:\_work\llvm-project\llvm-project\clang\test\Instrumentor/StackUsageRT.json' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Instrumentor\Output\InstrumentorStackUsage.cpp.tmp.StackUsageRT.o' -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Instrumentor\Output\InstrumentorStackUsage.cpp.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\Instrumentor\InstrumentorStackUsage.cpp'
# .---command stderr------------
# | fatal error: error in backend: IO sandbox violation
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -triple x86_64-pc-windows-msvc19.44.35226 -O0 -emit-obj -dumpdir C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Instrumentor\\Output\\InstrumentorStackUsage.cpp.tmp- -disable-free -clear-ast-before-backend -main-file-name InstrumentorStackUsage.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -fms-volatile -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Instrumentor -fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Instrumentor -resource-dir C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -internal-isystem C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\include -internal-isystem C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\ATLMFC\\include -internal-isystem C:\\BuildTools\\VC\\Auxiliary\\VS\\include -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.26100.0\\ucrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\winrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\cppwinrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" -fdeprecated-macro -ferror-limit 19 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.44.35226 -std=c++14 -fskip-odr-check-in-gmf -fdelayed-template-parsing -fcxx-exceptions -fexceptions -mllvm -enable-instrumentor -mllvm -instrumentor-read-config-file=C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Instrumentor/StackUsageRT.json -faddrsig -o C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-36sk3pb9\\InstrumentorStackUsage-d539c3.o -x c++ C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Instrumentor\\InstrumentorStackUsage.cpp
# | 1.	<eof> parser at end of file
# | 2.	Optimizer
# | 3.	Running pass "instrumentor" on module "C:\_work\llvm-project\llvm-project\clang\test\Instrumentor\InstrumentorStackUsage.cpp"
# | clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
# | clang version 23.0.0git (https://github.com/llvm/llvm-project 29079ce84dec586f175072b5216cc89b7194f4a5)
# | Target: x86_64-pc-windows-msvc
# | Thread model: posix
# | InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
# | Build config: +assertions
# | clang: note: diagnostic msg: 
# | ********************
# | 
# | PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
# | Preprocessed source(s) and associated run script(s) are located at:
# | clang: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\lit-tmp-36sk3pb9\InstrumentorStackUsage-4b0688.cpp
# | clang: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\lit-tmp-36sk3pb9\InstrumentorStackUsage-4b0688.sh
# | clang: note: diagnostic msg: 
# | 
# | ********************
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list