Hi! Here is updated patch, I've added also -fno-builtin which cured some failures (will need to analyze exactly later on if it is just assumptions of the test that are not valid with optimized memory/string etc. builtins or if we have issues on the GCC side), the only change in the imported files besides the two line header changes is a temporary change in the ManyThreads test, and had to tweak slightly also the symbolizer if asan prints [stack] in its backtrace, because that results in tcl errors.
OT, seems e.g. the pthread_create interceptor doesn't use ENSURE_ASAN_INITED(), so when one links a threaded program not compiled with -fsanitize=address and just LD_PRELOADs libasan.so.0 (or links against it), then asan crashes. Jakub