[PATCH] D75693: [GWP-ASan] Fix thread ID.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 5 09:50:58 PST 2020


hctim created this revision.
hctim added a reviewer: eugenis.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
hctim edited reviewers, added: morehouse; removed: eugenis.
hctim edited subscribers, added: eugenis; removed: morehouse.

GWP-ASan currently reports <unknown> thread ID, as the crash handler
merge dropped the include. Oops.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75693

Files:
  compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
  compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp


Index: compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
===================================================================
--- compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
+++ compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
@@ -15,7 +15,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/mman.h>
-#include <sys/syscall.h>
 #include <sys/types.h>
 #include <unistd.h>
 
Index: compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
===================================================================
--- compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
+++ compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
@@ -8,6 +8,9 @@
 
 #include "gwp_asan/common.h"
 
+#include <sys/syscall.h>
+#include <unistd.h>
+
 namespace gwp_asan {
 
 uint64_t getThreadID() {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75693.248517.patch
Type: text/x-patch
Size: 879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200305/dcc32bc4/attachment.bin>


More information about the llvm-commits mailing list