http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58465
--- Comment #14 from Oleg Smolsky <oleg at smolsky dot net> --- The ASan issue was due to the memory limit applied via setrlimit(). The virtual size (in this -fPIC -pie build) is really huge and so memory allocations were failing. I'll confirm the TSan case in a bit. Thank you Kostya!