[PATCH] D59118: creduce script for clang crashes

Alexander Richardson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 12:06:28 PDT 2019

arichardson added a comment.

In case anyone is interested, for the CHERI fork of LLVM/Clang I added a similar script that contains additional features such as inferring the crash message (so that you get the minimal reproducer for the issue that you are trying to reduce and not some obscure parser crash for invalid input), dealing with infinite loops, generating a test case with a mostly sensible `RUN: line`.
Furthermore, it will attempt to use bugpoint if it is a backend rather than a frontend crash since that is much much faster than creduce.
It should allows you to run `$LLVM_BUILDIR/bin/creduce_crash_testcase.py /tmp/clang-reproducers.sh` and then give a sensible minimal test case back

I can try to clean that up and remove the CHERI-specific compiler flags and llvm-lit substitutions.

For reference that script can be found here: https://github.com/CTSRD-CHERI/llvm-project/blob/master/clang/utils/creduce_crash_testcase.py

  rC Clang



More information about the cfe-commits mailing list