[cfe-dev] getting both log and crash from ubsan?

Richard Smith richard at metafoo.co.uk
Wed May 29 15:27:01 PDT 2013


On Wed, May 29, 2013 at 1:21 PM, Sean McBride <sean at rogue-research.com>wrote:

> Hi all,
>
> When using ubsan it seems one has a choice of getting nice output like:
>
>  runtime error: shift exponent -1 is negative
>
> or a SIGILL crash.
>
> Is it possible to have both?
>

Yes. Use -fno-sanitize-recover instead of
-fsanitize-undefined-trap-on-error.


> I think it would be useful for automated nightly buildbots.  The crash is
> useful because any test rig worth its salt will flag a crash as a failed
> test.  But without the log in addition, you're left with either nothing or
> a backtrace if you're lucky (ctest/cdash for example don't gather crash
> backtraces).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130529/b04455c6/attachment.html>


More information about the cfe-dev mailing list