[Xcb] [Bug 20335] New: select() crashes with large file descriptors

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 26 12:16:41 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20335

           Summary: select() crashes with large file descriptors
           Product: XCB
           Version: 1.1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: most at museresearch.com


If you call _xcb_conn_wait or read_block in an application that has more than
FD_SETSIZE files already open, the select() calls they make will corrupt that
stack and crash the app.

This is the old poll() vs select() bug. Replacing select() with poll() fixes
it.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Xcb mailing list