[Bug network/22414] New: getaddrinfo() get wrong return value of gaih_inet() when system recovers from the exhaustion of the file descriptor

superlikex at gmail dot com sourceware-bugzilla@sourceware.org
Thu Nov 9 13:08:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=22414

            Bug ID: 22414
           Summary: getaddrinfo() get wrong return value of gaih_inet()
                    when system recovers from the exhaustion of the file
                    descriptor
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: superlikex at gmail dot com
  Target Milestone: ---

getaddrinfo () returns a wrong value if the system file descriptor runs out. 

But getaddrinfo () still returns the wrong value when the system is back to
normal.

By looking at the code, the value of h_errno is not updated when the system is
back to normal.

I found a mailing list with similar questions:
https://sourceware.org/ml/libc-alpha/2016-07/msg00341.html.
and a patch has been attached in this mailing list

But I tried this patch, it did not work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list