[llvm-commits] [PATCH] asan-rt: discover main thread stack limits without pthread

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Dec 21 04:04:09 PST 2011


Hi,

if __asan_init is called from .preinit_array, pthread_getattr_np may
become unsafe. This patch adds a different way of locating the stack
of the main thread with a combination of getlrimit() and
/proc/self/maps.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stacksize.patch
Type: text/x-patch
Size: 2847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111221/61818618/attachment.bin>


More information about the llvm-commits mailing list