fcntl F_GETFD is used to look if a file descriptor number is valid, so --track-fds shouldn't produce an error when a "bad file descriptor" is used with F_GETFD. See also https://sourceforge.net/p/valgrind/mailman/message/59229815/