Changes between Initial Version and Version 1 of Ticket #64368


Ignore:
Timestamp:
Jan 6, 2022, 3:06:45 AM (3 years ago)
Author:
chrstphrchvz (Christopher Chavez)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64368 – Description

    initial v1  
    1 I observe that when building ports under trace mode, the file descriptors given to processes can reach/exceed the default value of `FD_SETSIZE`, which is 1024 when not manually defined before including <sys/select.h>. CMake—and possibly other programs—are compiled without manually defining `FD_SETSIZE` on macOS, and without defining `_DARWIN_UNLIMITED_SELECT` or `_DARWIN_C_SOURCE`. This leads to at least two problems using CMake under trace mode: `Error running link command: Invalid argument` being output; and out-of-bounds memory accesses, one effect being corruption of the `Invalid error` message.
     1I observe that when building ports under trace mode, the file descriptors given to processes can reach/exceed the default value of `FD_SETSIZE`, which is 1024 when not manually defined before including <sys/select.h>. CMake—and possibly other programs—are compiled without manually defining `FD_SETSIZE` on macOS, and without defining `_DARWIN_UNLIMITED_SELECT` or `_DARWIN_C_SOURCE`. This leads to at least two problems using CMake under trace mode: `Error running link command: Invalid argument` being output; and out-of-bounds memory accesses, one effect being corruption of the `Invalid argument` message.
    22
    33More detailed description: