[PATCH] D11426: [asan] Make __asan_handle_no_return tolerate unregistered threads

Reid Kleckner rnk at google.com
Wed Jul 22 13:26:55 PDT 2015


rnk created this revision.
rnk added a reviewer: llvm-commits.
rnk added a subscriber: samsonov.

On Windows, thread injection by the kernel or other running processes is
a fairly common occurrence, so ASan should be resilient to it.  The
comments on GetCurrentThread() say that it can return null, so we
shouldn't be CHECK failing if it does.

Sending control-C is one way to get the kernel to inject a thread into
your process, so I wrote a test around it.

http://reviews.llvm.org/D11426

Files:
  lib/asan/asan_rtl.cc
  test/asan/TestCases/Windows/dll_control_c.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11426.30389.patch
Type: text/x-patch
Size: 5733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150722/29fd9b3e/attachment.bin>


More information about the llvm-commits mailing list