SUMMARY STEPS TO REPRODUCE 1. Copy code from examples https://www.man7.org/linux/man-pages/man2/copy_file_range.2.html 2. Compile with clang 3. valgrind --verbose --log-file=valgrind-out.txt ./exec a.txt b.txt OBSERVED RESULT copy_file_range: Function not implemented EXPECTED RESULT Nothing SOFTWARE/OS VERSIONS NAME="Ubuntu" VERSION="20.04.2 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.2 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal valgrind 1:3.15.0-1ubuntu9.1 ADDITIONAL INFORMATION --2193160-- WARNING: unhandled amd64-linux syscall: 326 ==2193160== at 0x4B6A14A: copy_file_range (copy_file_range.c:29) ==2193160== by 0x10A7A8: main (main.cpp:39) --2193160-- You may be able to write your own handler. --2193160-- Read the file README_MISSING_SYSCALL_OR_IOCTL. --2193160-- Nevertheless we consider this a bug. Please report --2193160-- it at http://valgrind.org/support/bug_reports.html.
*** This bug has been marked as a duplicate of bug 407218 ***