Why the application reports "cannot allocate memeory in static TLS block" when using Tsan?
1,568 views
Skip to first unread message
ran...@gmail.com
unread,
May 16, 2017, 1:32:14 PM5/16/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to thread-sanitizer
Hi everyone,
When i compiles dynamic library with -fsanitize=thread -fPIC -pie and links with -fsanitize=thread -fPIC -ltsan, the generated application will report a error like "XXX/lib64/libtsan.so.0:cannot allocate memory in static TLS block".
gcc version : 5.3
glibc version:2.18
linux version: suse linux 2.6.32.12-0.7-default
Dmitry Vyukov
unread,
May 16, 2017, 1:53:36 PM5/16/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Generally, updating your software can help. E.g. 2.6.32 was released
long before we even started thinking about creating any of sanitizers.
We never tested on 2.6.32.