hanchenye-llvm-project/compiler-rt/test/sanitizer_common
Dmitry Vyukov 72f169797e tsan: fix signal handling during stop-the-world
Long story short: stop-the-world briefly resets SIGSEGV handler to SIG_DFL.
This breaks programs that handle and continue after SIGSEGV (namely JVM).
See the test and comments for details.

This is reincarnation of reverted r229678 (http://reviews.llvm.org/D7722).
Changed:
- execute TracerThreadDieCallback only on tracer thread
- reset global data in TracerThreadSignalHandler/TracerThreadDieCallback
- handle EINTR from waitpid

Add 3 new test:
- SIGSEGV during leak checking
- StopTheWorld operation during signal storm from an external process
- StopTheWorld operation when the program generates and handles SIGSEGVs

http://reviews.llvm.org/D8032

llvm-svn: 231367
2015-03-05 14:37:28 +00:00
..
TestCases tsan: fix signal handling during stop-the-world 2015-03-05 14:37:28 +00:00
Unit
CMakeLists.txt [Sanitizer] Run test/sanitizer_common lit tests on all supported architectures. 2015-03-02 22:03:52 +00:00
lit.common.cfg Add runtime flag 'symbolize_inline_frames' to disable symbolization of inlined frames done in llvm-symbolizer 2014-10-24 18:34:43 +00:00
lit.site.cfg.in [Sanitizer] Run test/sanitizer_common lit tests on all supported architectures. 2015-03-02 22:03:52 +00:00