[compiler-rt] Augment `uncaught-exception.test` fuzzer test to be msvc-compatible (PR #125924)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 22:04:11 PDT 2025
thurstond wrote:
The sanitizer-windows buildbot (https://lab.llvm.org/buildbot/#/builders/107/builds/11815) has been red ever since this was merged. I looks like it might be incorrectly comparing clang against the MSVC output?
```
C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt\lib\fuzzer -D_DISABLE_VECTOR_ANNOTATION -D_DISABLE_STRING_ANNOTATION C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\fuzzer/UncaughtException.cpp -o C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\fuzzer\X86_64DefaultWindowsConfig\Output\uncaught-exception.test.tmp-UncaughtException
# executed command: C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer '-IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt\lib\fuzzer' -D_DISABLE_VECTOR_ANNOTATION -D_DISABLE_STRING_ANNOTATION 'C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\fuzzer/UncaughtException.cpp' -o 'C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\fuzzer\X86_64DefaultWindowsConfig\Output\uncaught-exception.test.tmp-UncaughtException'
# .---command stdout------------
# | Creating library C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\fuzzer\X86_64DefaultWindowsConfig\Output\uncaught-exception.test.lib and object C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\fuzzer\X86_64DefaultWindowsConfig\Output\uncaught-exception.test.exp
# `-----------------------------
# RUN: at line 9
not C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\fuzzer\X86_64DefaultWindowsConfig\Output\uncaught-exception.test.tmp-UncaughtException 2>&1 | FileCheck C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\fuzzer\uncaught-exception.test --check-prefixes=CHECK-CRASH,CHECK-MSVC
# executed command: not 'C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\fuzzer\X86_64DefaultWindowsConfig\Output\uncaught-exception.test.tmp-UncaughtException'
# executed command: FileCheck 'C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\fuzzer\uncaught-exception.test' --check-prefixes=CHECK-CRASH,CHECK-MSVC
# .---command stderr------------
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\fuzzer\uncaught-exception.test:12:13: error: CHECK-MSVC: expected string not found in input
# | CHECK-MSVC: ERROR: libFuzzer: uncaught C++ exception
# | ^
# | <stdin>:1:1: note: scanning from here
# | INFO: Running with entropic power schedule (0xFF, 100).
# | ^
# | <stdin>:6:10: note: possible intended match here
# | ==3288== ERROR: libFuzzer: deadly signal
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\fuzzer\uncaught-exception.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: INFO: Running with entropic power schedule (0xFF, 100).
# | check:12'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: INFO: Seed: 3427103997
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 3: INFO: Loaded 1 modules (24 inline 8-bit counters): 24 [00007FF7077734C8, 00007FF7077734E0),
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: INFO: Loaded 1 PC tables (24 PCs): 24 [00007FF70773D960,00007FF70773DAE0),
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5: INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: ==3288== ERROR: libFuzzer: deadly signal
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
https://github.com/llvm/llvm-project/pull/125924
More information about the llvm-commits
mailing list