gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

Support pthread_setname_np #244

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The interceptor was disabled in asan in:
http://llvm.org/viewvc/llvm-project?view=revision&revision=194711

due to:
 #define COMMON_INTERCEPTOR_SET_THREAD_NAME(ctx, name) SetThreadName(name)
+// Should be asanThreadRegistry().SetThreadNameByUserId(thread, name)
+// But asan does not remember UserId's for threads (pthread_t);
+// and remembers all ever existed threads, so the linear search by UserId
+// can be slow.

We need to fix the 2 issues and reenable the interceptor.

Original issue reported on code.google.com by dvyu...@google.com on 15 Nov 2013 at 7:58