Menu

threadsafety.py

2024-05-10
2025-05-02
  • Andrew C Aitchison

    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.

     
  • Daniel Marjamäki

    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.

     
  • Andrew C Aitchison

    glibc 2.32 came out in Aug 2020.
    I think it is now OK not to mark strerror as unsafe.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.