[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:46:28 PST 2024


llvm-ci wrote:

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

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

<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 ] LlvmLibcGetRandomTest.ReturnsSize (20 us)
[ RUN      ] LlvmLibcGetRandomTest.CheckValue
[       OK ] LlvmLibcGetRandomTest.CheckValue (5 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[4483/4918] 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
[4484/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[4485/4918] 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
[4486/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.msync_test.__build__
[4487/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mincore_test.__build__
[4488/4918] 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 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-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 (350 us)
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-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
[4489/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.remap_file_pages_test.__build__
[4490/4918] 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
[4491/4918] Running unit test libc.test.src.sys.mman.linux.msync_test
[==========] Running 4 tests from 1 test suite.
[ RUN      ] LlvmLibcMsyncTest.UnMappedMemory
[       OK ] LlvmLibcMsyncTest.UnMappedMemory (7 us)
[ RUN      ] LlvmLibcMsyncTest.LockedPage
[       OK ] LlvmLibcMsyncTest.LockedPage (179 us)
[ RUN      ] LlvmLibcMsyncTest.UnalignedAddress
[       OK ] LlvmLibcMsyncTest.UnalignedAddress (14 us)
[ RUN      ] LlvmLibcMsyncTest.InvalidFlag
[       OK ] LlvmLibcMsyncTest.InvalidFlag (12 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[4492/4918] Building CXX object projects/libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
[4493/4918] Running unit test libc.test.src.sys.mman.linux.mincore_test
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcMincoreTest.UnMappedMemory
[       OK ] LlvmLibcMincoreTest.UnMappedMemory (15 us)
[ RUN      ] LlvmLibcMincoreTest.UnalignedAddr
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcGetRandomTest.ReturnsSize (20 us)
[ RUN      ] LlvmLibcGetRandomTest.CheckValue
[       OK ] LlvmLibcGetRandomTest.CheckValue (5 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[4483/4918] 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
[4484/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[4485/4918] 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
[4486/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.msync_test.__build__
[4487/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.mincore_test.__build__
[4488/4918] 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 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-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 (350 us)
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-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
[4489/4918] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.remap_file_pages_test.__build__
[4490/4918] 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
[4491/4918] Running unit test libc.test.src.sys.mman.linux.msync_test
[==========] Running 4 tests from 1 test suite.
[ RUN      ] LlvmLibcMsyncTest.UnMappedMemory
[       OK ] LlvmLibcMsyncTest.UnMappedMemory (7 us)
[ RUN      ] LlvmLibcMsyncTest.LockedPage
[       OK ] LlvmLibcMsyncTest.LockedPage (179 us)
[ RUN      ] LlvmLibcMsyncTest.UnalignedAddress
[       OK ] LlvmLibcMsyncTest.UnalignedAddress (14 us)
[ RUN      ] LlvmLibcMsyncTest.InvalidFlag
[       OK ] LlvmLibcMsyncTest.InvalidFlag (12 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[4492/4918] Building CXX object projects/libc/test/src/sys/sendfile/CMakeFiles/libc.test.src.sys.sendfile.sendfile_test.__build__.dir/sendfile_test.cpp.o
[4493/4918] Running unit test libc.test.src.sys.mman.linux.mincore_test
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcMincoreTest.UnMappedMemory
[       OK ] LlvmLibcMincoreTest.UnMappedMemory (15 us)
[ RUN      ] LlvmLibcMincoreTest.UnalignedAddr

```

</details>

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


More information about the libc-commits mailing list