This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/25192] getaddrinfo can cause crash in the application.


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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-11-14
                 CC|                            |fweimer at redhat dot com
     Ever confirmed|0                           |1

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
A crash like this indicates that there is a file descriptor race somewhere in
your process: another thread has closed the descriptor that getaddrinfo is
using.

We currently do not know of any such races within glibc itself.  Note that such
races could be anywhere: code you have written, a library you are using has an
internal bug, or you are using a library interface incorrectly.

If you can reproduce this reliably, I'd suggest to set a breakpoint on close,
trying to catch the last close before the clash.  It's possible that you have
to use a Systemtap probe to avoid obscuring the race.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]