Bug 41332 - Не проходит тест test-execute
Summary: Не проходит тест test-execute
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: systemd-tests (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-11 20:46 MSK by Alexander Makeenkov
Modified: 2024-03-05 19:12 MSK (History)
2 users (show)

See Also:


Attachments
test-execute-log (45.01 KB, text/plain)
2021-11-11 20:46 MSK, Alexander Makeenkov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?