[libc-commits] [libc] [libc] Implement process_mrelease (PR #117851)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Wed Nov 27 17:30:39 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-riscv32-qemu-yocto-fullbuild-dbg` running on `rv32gc-qemu-system` while building `libc` at step 4 "annotate".

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

<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)
...
Ran 2 tests.  PASS: 2  FAIL: 0
[3769/3897] Running unit test libc.test.src.sys.mman.linux.posix_madvise_test
sh: line 1: /timer.26955: Permission denied
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcPosixMadviseTest.NoError
[       OK ] LlvmLibcPosixMadviseTest.NoError (1 ms)
[ RUN      ] LlvmLibcPosixMadviseTest.Error_BadPtr
[       OK ] LlvmLibcPosixMadviseTest.Error_BadPtr (105 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[3770/3897] 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/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/libcrv32buildbot/cross.sh /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
sh: line 1: /timer.26968: Permission denied
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcProcessMReleaseTest.NoError
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:46: FAILURE
Failed to match LIBC_NAMESPACE::process_mrelease(pidfd, 0) against Succeeds().
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to "Success" but got "No such process".
[  FAILED  ] LlvmLibcProcessMReleaseTest.NoError
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNotKilled
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNotKilled (845 us)
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd (88 us)
Ran 3 tests.  PASS: 2  FAIL: 1
[3771/3897] Running unit test libc.test.src.sys.mman.linux.mlock_test
sh: line 1: /timer.26962: Permission denied
[==========] Running 5 tests from 1 test suite.
[ RUN      ] LlvmLibcMlockTest.UnMappedMemory
[       OK ] LlvmLibcMlockTest.UnMappedMemory (587 us)
[ RUN      ] LlvmLibcMlockTest.Overflow
[       OK ] LlvmLibcMlockTest.Overflow (2 ms)
[ RUN      ] LlvmLibcMlockTest.MLock2
[       OK ] LlvmLibcMlockTest.MLock2 (1 ms)
[ RUN      ] LlvmLibcMlockTest.InvalidFlag
[       OK ] LlvmLibcMlockTest.InvalidFlag (490 us)
[ RUN      ] LlvmLibcMlockTest.MLockAll
[       OK ] LlvmLibcMlockTest.MLockAll (33 ms)
Ran 5 tests.  PASS: 5  FAIL: 0
[3772/3897] Running unit test libc.test.src.inttypes.strtoumax_test.__unit__
sh: line 1: /timer.26799: Permission denied
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcStrtoumaxTest.InvalidBase
[       OK ] LlvmLibcStrtoumaxTest.InvalidBase (579 us)
[ RUN      ] LlvmLibcStrtoumaxTest.CleanBaseTenDecode
[       OK ] LlvmLibcStrtoumaxTest.CleanBaseTenDecode (1 ms)
[ RUN      ] LlvmLibcStrtoumaxTest.MessyBaseTenDecode
[       OK ] LlvmLibcStrtoumaxTest.MessyBaseTenDecode (1 ms)
[ RUN      ] LlvmLibcStrtoumaxTest.DecodeInOtherBases
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
Ran 2 tests.  PASS: 2  FAIL: 0
[3769/3897] Running unit test libc.test.src.sys.mman.linux.posix_madvise_test
sh: line 1: /timer.26955: Permission denied
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcPosixMadviseTest.NoError
[       OK ] LlvmLibcPosixMadviseTest.NoError (1 ms)
[ RUN      ] LlvmLibcPosixMadviseTest.Error_BadPtr
[       OK ] LlvmLibcPosixMadviseTest.Error_BadPtr (105 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[3770/3897] 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/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/libcrv32buildbot/cross.sh /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
sh: line 1: /timer.26968: Permission denied
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcProcessMReleaseTest.NoError
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:46: FAILURE
Failed to match LIBC_NAMESPACE::process_mrelease(pidfd, 0) against Succeeds().
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to "Success" but got "No such process".
[  FAILED  ] LlvmLibcProcessMReleaseTest.NoError
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNotKilled
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNotKilled (845 us)
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd (88 us)
Ran 3 tests.  PASS: 2  FAIL: 1
[3771/3897] Running unit test libc.test.src.sys.mman.linux.mlock_test
sh: line 1: /timer.26962: Permission denied
[==========] Running 5 tests from 1 test suite.
[ RUN      ] LlvmLibcMlockTest.UnMappedMemory
[       OK ] LlvmLibcMlockTest.UnMappedMemory (587 us)
[ RUN      ] LlvmLibcMlockTest.Overflow
[       OK ] LlvmLibcMlockTest.Overflow (2 ms)
[ RUN      ] LlvmLibcMlockTest.MLock2
[       OK ] LlvmLibcMlockTest.MLock2 (1 ms)
[ RUN      ] LlvmLibcMlockTest.InvalidFlag
[       OK ] LlvmLibcMlockTest.InvalidFlag (490 us)
[ RUN      ] LlvmLibcMlockTest.MLockAll
[       OK ] LlvmLibcMlockTest.MLockAll (33 ms)
Ran 5 tests.  PASS: 5  FAIL: 0
[3772/3897] Running unit test libc.test.src.inttypes.strtoumax_test.__unit__
sh: line 1: /timer.26799: Permission denied
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcStrtoumaxTest.InvalidBase
[       OK ] LlvmLibcStrtoumaxTest.InvalidBase (579 us)
[ RUN      ] LlvmLibcStrtoumaxTest.CleanBaseTenDecode
[       OK ] LlvmLibcStrtoumaxTest.CleanBaseTenDecode (1 ms)
[ RUN      ] LlvmLibcStrtoumaxTest.MessyBaseTenDecode
[       OK ] LlvmLibcStrtoumaxTest.MessyBaseTenDecode (1 ms)
[ RUN      ] LlvmLibcStrtoumaxTest.DecodeInOtherBases

```

</details>

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


More information about the libc-commits mailing list