sanitizer_common: fix and re-enable signal_segv_handler test
authorDmitry Vyukov <dvyukov@google.com>
Mon, 29 Jun 2015 16:31:10 +0000 (16:31 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 29 Jun 2015 16:31:10 +0000 (16:31 +0000)
commit189f06135385965fd33dc06f5b1a059114a135cc
tree31a5634b1d94036a862e5c986da415e9015dbc4a
parent2d4920e1ee8db334f9c3eeb318c264c72a0fd53b
sanitizer_common: fix and re-enable signal_segv_handler test

struct sigaction was not initialized. As the result if SA_RESETHAND is set in sa_flags, then the handler is reset after first invocation leading to crash.
Initialize struct sigaction to zero.

Reviewed in http://reviews.llvm.org/D10803

llvm-svn: 240965
compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cc