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

Richard Smith richard at metafoo.co.uk
Wed May 29 15:59:46 PDT 2013


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

> On Wed, 29 May 2013 15:27:01 -0700, Richard Smith said:
>
> >> 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.
>
> Awesome, thanks!  The word "recover" does not appear here BTW:
>
> <http://clang.llvm.org/docs/UsersManual.html>


Good point. Fixed, thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130529/603e1162/attachment.html>


More information about the cfe-dev mailing list