Hello,
I am trying to build and run a thread sanitized mysqld binary. In the CMake configuration, I see the WITH_ASAN option, however, I do not see an option to build mysqld with the thread sanitizer.
After making some custom configurations, I was able to build a mysqld binary with the thread sanitizer (by linking static thread sanitizer), however, when trying to run it, I got the following error:
"ThreadSanitizer: sync allocator overflow (65536*1024). Dying."
This error seems to be coming from the tsan library and seems this error is caused by too many synchronizations [1]. Reducing the number of threads also didn't help me with this error.
So my questions to you experts:
1. Do you run mysqld with the thread sanitizer ?
2. If yes, could you please share the details. (e.g., CMake configurations, compiler/linker flags etc.)
3. If not, any suggestions to overcome the above error ?
Thank you.
Best Regards,
Thejaka Amila Kanewala, PhD