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

Sean McBride sean at rogue-research.com
Wed May 29 15:29:56 PDT 2013


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>

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada






More information about the cfe-dev mailing list