HomePhabricator

[TSAN] Fix tsan on FreeBSD after D54889

Description

[TSAN] Fix tsan on FreeBSD after D54889

Summary:
It appears that since https://reviews.llvm.org/D54889, BackgroundThread()
crashes immediately because cur_thread()-> will return a null pointer
which is then dereferenced. I'm not sure why I only see this issue on
FreeBSD and not Linux since it should also be unintialized on other platforms.

Reviewers: yuri, dvyukov, dim, emaste

Subscribers: kubamracek, krytarowski, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

Details

Committed
arichardsonAug 6 2019, 3:30 PM
Differential Revision
D65705: [TSAN] Fix tsan on FreeBSD after D54889
Parents
rL368102: hwasan: Instrument globals.
Branches
Unknown
Tags
Unknown