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.
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
Downstream crash report: https://bugzilla.redhat.com/show_bug.cgi?id=1175600
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]