hostbyname() uses gethostbyname() function, which is not thread-safe on Linux

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.4.4
    • Component/s: None
    • None
    • Environment:
      Linux
    • Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      hostbyname() in src/util.cpp uses gethostbyname() function, which is not thread-safe on Linux. Should be gethostbyname_r(); This could return the invalid results, and sometimes causes SEGV in ScopedDbConnection.

      This is only for the current stable version. Not for the git HEAD, because it already changed to use getaddrinfo().

      Please close the issue if this is not important because this was fixed in HEAD.

            Assignee:
            Mathias Stearn
            Reporter:
            Kazuki Ohta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: