[issue37681] warning: ‘no_sanitize_thread’

Ronald Oussoren report at bugs.python.org
Tue Jul 30 14:25:17 EDT 2019


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

A GCC export should be able to tell more, but the warning should be harmless.

Objects/obmalloc.c says that the thread sanitizer is available from GCC 4.8, but for some reason it isn't on your system. This seems to be a bug in obmalloc.c:  The GCC 4.8.5 docs don't mention this attribute [1], while the 5.5 docs do [2]

[1] https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Function-Attributes.html#Function-Attributes
[2] https://gcc.gnu.org/onlinedocs/gcc-5.5.0/gcc/Function-Attributes.html#Function-Attributes

There's a couple of releases between 4.8.5 and 5.5.0, I don't know which one introduces this function attribute. Once that version is know it should be fairly easy to provide a patch that only uses the attribute for new enough compilers.

----------
stage:  -> needs patch
type:  -> compile error
versions: +Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37681>
_______________________________________


More information about the Python-bugs-list mailing list