llvm-project/compiler-rt/lib/scudo
Kostya Kortchinsky db18e4d993 [scudo] Check the return values of the pthread_* functions
Summary:
Currently we are not enforcing the success of `pthread_once`, and
`pthread_setspecific`. Errors could lead to harder to debug issues later in
the thread's life. This adds checks for a 0 return value for both.
If `pthread_setspecific` fails in the teardown path, opt for an immediate
teardown as opposed to a fatal failure.

Reviewers: alekseyshl, kcc

Reviewed By: alekseyshl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33555

llvm-svn: 303998
2017-05-26 15:39:22 +00:00
..
CMakeLists.txt [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_allocator.cpp [scudo] Use our own combined allocator 2017-05-11 21:40:45 +00:00
scudo_allocator.h [sanitizer] Change SizeClassAllocator32 to accept just one template 2017-05-15 14:47:19 +00:00
scudo_allocator_combined.h [scudo] Use our own combined allocator 2017-05-11 21:40:45 +00:00
scudo_allocator_secondary.h [scudo] Use our own combined allocator 2017-05-11 21:40:45 +00:00
scudo_crc32.cpp [scudo] CRC32 optimizations 2017-05-09 15:12:38 +00:00
scudo_crc32.h [scudo] CRC32 optimizations 2017-05-09 15:12:38 +00:00
scudo_flags.cpp [scudo] lower quarantine default sizes 2017-05-18 20:47:35 +00:00
scudo_flags.h [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_flags.inc [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
scudo_interceptors.cpp [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_new_delete.cpp [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_termination.cpp [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_tls.h [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_tls_android.cpp [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_tls_android.inc [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_tls_context_android.inc [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_tls_context_linux.inc [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_tls_linux.cpp [scudo] Check the return values of the pthread_* functions 2017-05-26 15:39:22 +00:00
scudo_tls_linux.inc [scudo] Add Android support 2017-05-05 21:38:22 +00:00
scudo_utils.cpp [scudo] Move thread local variables into their own files 2017-04-27 20:21:16 +00:00
scudo_utils.h [scudo] CRC32 optimizations 2017-05-09 15:12:38 +00:00