Bug 41332

Summary: Не проходит тест test-execute
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: systemd-testsAssignee: Alexey Shabalin <shaba>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: arseny, shaba
Version: unstable   
Hardware: x86_64   
OS: Linux   
Attachments:
Description Flags
test-execute-log none

Description Alexander Makeenkov 2021-11-11 20:46:22 MSK
Created attachment 9928 [details]
test-execute-log

Шаги воспроизведения:
# apt-get install systemd-tests
# /usr/lib/systemd/tests/run-unit-tests.py
либо запустить только этот тест:
# /usr/lib/systemd/tests/test-execute

Тест падает с ошибкой:
exec-capabilityboundingset-simple.service: About to execute /bin/sh -x -c 'c=$$(capsh --print | grep "Bounding set "); test "$$c" = "Bounding set =cap_fowner,cap_kill"'
exec-capabilityboundingset-simple.service: Forked /bin/sh as 8431
exec-capabilityboundingset-simple.service: Changed dead -> start
Received SIGCHLD from PID 8431 (sh).
Child 8431 (sh) died (code=exited, status=1/FAILURE)
exec-capabilityboundingset-simple.service: Failed to read oom_kill field of memory.events cgroup attribute: No such file or directory
exec-capabilityboundingset-simple.service: Child 8431 belongs to exec-capabilityboundingset-simple.service.
exec-capabilityboundingset-simple.service: Main process exited, code=exited, status=1/FAILURE
exec-capabilityboundingset-simple.service: Failed with result 'exit-code'.
exec-capabilityboundingset-simple.service: Service will not restart (restart setting)
exec-capabilityboundingset-simple.service: Changed start -> failed
exec-capabilityboundingset-simple.service: Unit entered failed state.
src/test/test-execute.c:718:test_exec_capabilityboundingset: exec-capabilityboundingset-simple.service: exit status 1, expected 0

Полный лог теста во вложении.

Отмечу, что в Fedora 35 с systemd-249.6-2.fc35 данный тест проходит успешно.
Comment 1 Alexander Makeenkov 2024-01-24 11:41:35 MSK
Воспроизводится на версии systemd-254.7-alt1.x86_64
Comment 2 Alexey Shabalin 2024-03-05 19:12:45 MSK
а если при загрузке ядру передать psi=1?