This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81493] python fails to load libtsan.so: cannot allocate memory in static TLS block
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jul 2017 12:13:57 +0000
- Subject: [Bug sanitizer/81493] python fails to load libtsan.so: cannot allocate memory in static TLS block
- Auto-submitted: auto-generated
- References: <bug-81493-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81493
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is a user bug, don't do it.
libtsan.so needs to be loaded early for the whole process, certainly before you
start creating threads etc.
You can LD_PRELOAD=libtsan.so or similar to eachive that.