Menu

#109 file descriptors > 1024 -> crash in FD_ macros

0.9.3
closed
nobody
None
fixed,
2015-08-01
2015-07-30
Alec Leamas
No

when file descriptors becomes > 1024, the FD_ macros supporting select(2) behaviour are undefined (this is according to Posix). Recent versions of glibc are compiled using _FORTIFY_SOURCE and traps these descriptors before accessing memory outside buffers.

The correct solution seems to be using poll(2) instead.

Discussion

  • Alec Leamas

    Alec Leamas - 2015-07-30

    Note that is this is not about the number of open file descriptors, it's just the descriptor value.

     

    Last edit: Alec Leamas 2015-07-30
  • Alec Leamas

    Alec Leamas - 2015-08-01

    Fixed in multiple commits [970c47] .. [7bcf9b]. The lircd, lircrc and library parts have been pushed to the 0.9.3 release branch.

     

    Related

    Commit: [7bcf9b]
    Commit: [970c47]

  • Alec Leamas

    Alec Leamas - 2015-08-01
    • status: open --> closed
    • Resolution: na, --> fixed,
    • Milestone: Future --> 0.9.3
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.