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

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


llvm-ci wrote:

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

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

<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)
...
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRemapFilePagesTest.NoError
[       OK ] LlvmLibcRemapFilePagesTest.NoError (157 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags (64 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress (5 us)
Ran 3 tests.  PASS: 3  FAIL: 0
[4093/4505] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[4094/4505] 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/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/libc_worker/libc-riscv64-debian/libc-riscv64-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 (446 us)
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
/home/libc_worker/libc-riscv64-debian/libc-riscv64-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/libc_worker/libc-riscv64-debian/libc-riscv64-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
[4095/4505] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.shm_test.__build__
[4096/4505] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__NO_FMA_OPT.__build__.dir/getrandom_test.cpp.o
[4097/4505] 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
[4098/4505] Linking CXX executable projects/libc/test/src/sys/random/linux/libc.test.src.sys.random.linux.getrandom_test.__build__
[4099/4505] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/getrandom_test.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc-unit-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 162, in step
    yield
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 135, in main
    run_command(['ninja', 'libc-unit-tests'])
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 177, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRemapFilePagesTest.NoError
[       OK ] LlvmLibcRemapFilePagesTest.NoError (157 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags (64 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress (5 us)
Ran 3 tests.  PASS: 3  FAIL: 0
[4093/4505] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[4094/4505] 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/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/projects/libc/test/src/sys/mman/linux && /home/libc_worker/libc-riscv64-debian/libc-riscv64-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 (446 us)
[ RUN      ] LlvmLibcMProcessMReleaseTest.ErrorNotKilled
/home/libc_worker/libc-riscv64-debian/libc-riscv64-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/libc_worker/libc-riscv64-debian/libc-riscv64-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
[4095/4505] Linking CXX executable projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.shm_test.__build__
[4096/4505] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__NO_FMA_OPT.__build__.dir/getrandom_test.cpp.o
[4097/4505] 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
[4098/4505] Linking CXX executable projects/libc/test/src/sys/random/linux/libc.test.src.sys.random.linux.getrandom_test.__build__
[4099/4505] Building CXX object projects/libc/test/src/sys/random/linux/CMakeFiles/libc.test.src.sys.random.linux.getrandom_test.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/getrandom_test.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc-unit-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 162, in step
    yield
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 135, in main
    run_command(['ninja', 'libc-unit-tests'])
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 177, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)

```

</details>

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


More information about the libc-commits mailing list