[libc-commits] [libc] [libc] Implement process_mrelease. (PR #117503)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Tue Nov 26 14:44:14 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-fullbuild-dbg` running on `libc-aarch64-ubuntu` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/71/builds/11380

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[       OK ] LlvmLibcMsyncTest.LockedPage (54 us)
[ RUN      ] LlvmLibcMsyncTest.UnalignedAddress
[       OK ] LlvmLibcMsyncTest.UnalignedAddress (6 us)
[ RUN      ] LlvmLibcMsyncTest.InvalidFlag
[       OK ] LlvmLibcMsyncTest.InvalidFlag (6 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[3512/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[3513/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.madvise_test.__build__.dir/madvise_test.cpp.o
[3514/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mprotect_test.__build__
[3515/3915] Running unit test libc.test.src.sys.mman.linux.process_mrelease_test
FAILED: projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcMProcessMReleaseTest.NoError
[       OK ] LlvmLibcMProcessMReleaseTest.NoError (186 us)
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:63: FAILURE
      Expected: __llvm_libc_20_0_0_git::process_mrelease(pidfd, 0)
      Which is: -1
To be equal to: 22
      Which is: 22
[  FAILED  ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNonExistingPidfd
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:71: FAILURE
      Expected: __llvm_libc_20_0_0_git::process_mrelease(-1, 0)
      Which is: -1
To be equal to: 9
      Which is: 9
[  FAILED  ] LlvmLibcMProcessMReleaseTest.ErrorNonExistingPidfd
Ran 3 tests.  PASS: 1  FAIL: 2
[3516/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.shm_test.__build__
[3517/3915] Running unit test libc.test.src.sys.mman.linux.mprotect_test
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcMProtectTest.NoError
[       OK ] LlvmLibcMProtectTest.NoError (25 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[3518/3915] Building CXX object projects/libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
[3519/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mmap_test.__build__
[3520/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mincore_test.__build__.dir/mincore_test.cpp.o
[3521/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.posix_madvise_test.__build__.dir/posix_madvise_test.cpp.o
[3522/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.madvise_test.__build__
[3523/3915] Building CXX object projects/libc/test/src/sys/select/CMakeFiles/libc.test.src.sys.select.select_ui_test.dir/select_ui_test.cpp.o
[3524/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mlock_test.__build__.dir/mlock_test.cpp.o
[3525/3915] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/getrandom_test.cpp.o
[3526/3915] Building CXX object projects/libc/test/src/sys/resource/CMakeFiles/libc.test.src.sys.resource.getrlimit_setrlimit_test.__build__.dir/getrlimit_setrlimit_test.cpp.o
[3527/3915] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__build__.dir/getrandom_test.cpp.o
[3528/3915] Building CXX object projects/libc/test/src/sys/socket/linux/CMakeFiles/libc.test.src.sys.socket.linux.socket_test.__build__.dir/socket_test.cpp.o
[3529/3915] Building CXX object projects/libc/test/src/sys/select/CMakeFiles/libc.test.src.sys.select.select_failure_test.__build__.dir/select_failure_test.cpp.o
[3530/3915] Building CXX object projects/libc/test/src/sys/socket/linux/CMakeFiles/libc.test.src.sys.socket.linux.bind_test.__build__.dir/bind_test.cpp.o
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcMsyncTest.LockedPage (54 us)
[ RUN      ] LlvmLibcMsyncTest.UnalignedAddress
[       OK ] LlvmLibcMsyncTest.UnalignedAddress (6 us)
[ RUN      ] LlvmLibcMsyncTest.InvalidFlag
[       OK ] LlvmLibcMsyncTest.InvalidFlag (6 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[3512/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[3513/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.madvise_test.__build__.dir/madvise_test.cpp.o
[3514/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mprotect_test.__build__
[3515/3915] Running unit test libc.test.src.sys.mman.linux.process_mrelease_test
FAILED: projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcMProcessMReleaseTest.NoError
[       OK ] LlvmLibcMProcessMReleaseTest.NoError (186 us)
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:63: FAILURE
      Expected: __llvm_libc_20_0_0_git::process_mrelease(pidfd, 0)
      Which is: -1
To be equal to: 22
      Which is: 22
[  FAILED  ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNonExistingPidfd
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:71: FAILURE
      Expected: __llvm_libc_20_0_0_git::process_mrelease(-1, 0)
      Which is: -1
To be equal to: 9
      Which is: 9
[  FAILED  ] LlvmLibcMProcessMReleaseTest.ErrorNonExistingPidfd
Ran 3 tests.  PASS: 1  FAIL: 2
[3516/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.shm_test.__build__
[3517/3915] Running unit test libc.test.src.sys.mman.linux.mprotect_test
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcMProtectTest.NoError
[       OK ] LlvmLibcMProtectTest.NoError (25 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[3518/3915] Building CXX object projects/libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
[3519/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mmap_test.__build__
[3520/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mincore_test.__build__.dir/mincore_test.cpp.o
[3521/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.posix_madvise_test.__build__.dir/posix_madvise_test.cpp.o
[3522/3915] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.madvise_test.__build__
[3523/3915] Building CXX object projects/libc/test/src/sys/select/CMakeFiles/libc.test.src.sys.select.select_ui_test.dir/select_ui_test.cpp.o
[3524/3915] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mlock_test.__build__.dir/mlock_test.cpp.o
[3525/3915] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/getrandom_test.cpp.o
[3526/3915] Building CXX object projects/libc/test/src/sys/resource/CMakeFiles/libc.test.src.sys.resource.getrlimit_setrlimit_test.__build__.dir/getrlimit_setrlimit_test.cpp.o
[3527/3915] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__build__.dir/getrandom_test.cpp.o
[3528/3915] Building CXX object projects/libc/test/src/sys/socket/linux/CMakeFiles/libc.test.src.sys.socket.linux.socket_test.__build__.dir/socket_test.cpp.o
[3529/3915] Building CXX object projects/libc/test/src/sys/select/CMakeFiles/libc.test.src.sys.select.select_failure_test.__build__.dir/select_failure_test.cpp.o
[3530/3915] Building CXX object projects/libc/test/src/sys/socket/linux/CMakeFiles/libc.test.src.sys.socket.linux.bind_test.__build__.dir/bind_test.cpp.o

```

</details>

https://github.com/llvm/llvm-project/pull/117503


More information about the libc-commits mailing list