Adds the flag handle_sigfpe that is default true to handle SIGFPE crashes same as SIGSEV crashes
https://groups.google.com/forum/#!topic/llvm-dev/4EMk1qijC84
Paths
| Differential D11726
[ASan] Add SIGFPE by default as deadly signal ClosedPublic Authored by skomski on Aug 3 2015, 11:25 AM.
Details
Summary Adds the flag handle_sigfpe that is default true to handle SIGFPE crashes same as SIGSEV crashes https://groups.google.com/forum/#!topic/llvm-dev/4EMk1qijC84
Diff Detail Event Timelineskomski updated this object. Comment Actions Looks almost good!
This revision is now accepted and ready to land.Aug 3 2015, 2:42 PM
Revision Contents
Diff 31260 lib/asan/asan_internal.h
lib/asan/asan_posix.cc
lib/asan/asan_report.h
lib/asan/asan_report.cc
lib/asan/asan_rtl.cc
lib/asan/asan_win.cc
lib/asan/tests/asan_test.cclib/sanitizer_common/sanitizer_flags.inc
lib/sanitizer_common/sanitizer_linux.cc
lib/sanitizer_common/sanitizer_posix_libcdep.cc
test/asan/TestCases/Posix/allow_user_segv.cc
test/sanitizer_common/TestCases/Linux/fpe.cc
|
Just in case, I would use volatile instead of attribute((optnone)
e.g.
volatile int one = 1;
volatile int zero = 0;
volatile int sink;
sink = one/zero