diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-11-16 14:29:02 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-11-16 16:43:09 +0100 |
| commit | c7081b5b4cb57f27e6a075e1b5a63b7951cd8a7a (patch) | |
| tree | 19c7d493f7d889a33c9903b3f74c58d24077aa09 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | 50acc6d0f7dd120a1de589d241423fe5bdf54add (diff) | |
| download | llvm-c7081b5b4cb57f27e6a075e1b5a63b7951cd8a7a.zip llvm-c7081b5b4cb57f27e6a075e1b5a63b7951cd8a7a.tar.gz llvm-c7081b5b4cb57f27e6a075e1b5a63b7951cd8a7a.tar.bz2 | |
tsan: fix crash during thread exit
Use of gethostent provokes caching of some resources inside of libc.
They are freed in __libc_thread_freeres very late in thread lifetime,
after our ThreadFinish. __libc_thread_freeres calls free which
previously crashed in malloc hooks.
Fix it by setting ignore_interceptors for finished threads,
which in turn prevents malloc hooks.
Reviewed By: melver
Differential Revision: https://reviews.llvm.org/D113989
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
