[PATCH] D81672: [Driver] When forcing a crash call abort to get the correct diagnostic

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 10:54:12 PDT 2020


aganea added a comment.

But that won't work when compiling & crashing with `-fno-integrated-cc1`, would it? (or if building with `cmake ... -DCLANG_SPAWN_CC1=1`). In that case, normal crashes (not -gen-reproducer) won't go through the `CrashRecoveryContext`.
Try running:

  $ CCC_OVERRIDE_OPTIONS=+-fno-integrated-cc1
  $ py your_build_folder/bin/llvm-lit.py -vv -a clang/test/Driver/crash-report.c

See if the commands issued by the test display the "PLEASE submit a bug report" message.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81672/new/

https://reviews.llvm.org/D81672





More information about the cfe-commits mailing list