The thread safety addon addons/threadsafety.py
contains a list of system library functions which Linux man pages mark as MT-Unsafe
- functions are not safe to call in multithreaded programs.
On function listed is strerror(). The new man pages with Ubuntu Noble 24.04 now shows strerror as
MT-Safe, but says
Before glibc 2.32, strerror() is not MT-Safe.
I do not intent to update addons/threadsafety.py, since we should alert developers to code which whilst safe on their system, is unsafe on other current or recent systems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The thread safety addon addons/threadsafety.py
contains a list of system library functions which Linux man pages mark as MT-Unsafe
- functions are not safe to call in multithreaded programs.
On function listed is strerror(). The new man pages with Ubuntu Noble 24.04 now shows strerror as
MT-Safe, but says
Before glibc 2.32, strerror() is not MT-Safe.
I do not intent to update addons/threadsafety.py, since we should alert developers to code which whilst safe on their system, is unsafe on other current or recent systems.
ok thanks..
Spontanously I am skeptic about this warning. This warning will not age well if we keep it. In couple of years no recent distro will be unsafe.
glibc 2.32 came out in Aug 2020.
I think it is now OK not to mark strerror as unsafe.