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: 2026-01-12 10:21 MSK (History)
5 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?
Comment 3 Alexander Makeenkov 2025-04-01 17:47:22 MSK
Версия пакета: systemd-tests-255.18-alt1.x86_64

На данный момент тест падает так:

UID 3 is no longer referenced, cleaning up its IPC.
GID 4 is no longer referenced, cleaning up its IPC.
        PID: 8312
        Start Timestamp: Tue 2025-04-01 17:45:06 MSK
        Exit Timestamp: Tue 2025-04-01 17:45:06 MSK
        Exit Code: exited
        Exit Status: 1
src/test/test-execute.c:976:test_exec_dynamicuser: exec-dynamicuser-fixeduser-adm.service: can_unshare=yes: exit status 1, expected 0
(test-execute-root) terminated by signal ABRT.
Assertion 'r >= 0' failed at src/test/test-execute.c:1403, function prepare_ns(). Aborting.

Система загружена с psi=1.
Comment 4 Artem Varaksa 2025-06-24 13:24:45 MSK
Актуально для systemd-tests-255.21-alt1.x86_64.
Comment 5 Alexander Makeenkov 2025-07-27 12:41:38 MSK
Актуально для systemd-257.7-alt1.x86_64:

src/test/test-execute.c:1015:test_exec_dynamicuser: exec-dynamicuser-fixeduser-adm.service: can_unshare=yes: exit status 1, expected 0
(test-execute-root) terminated by signal ABRT.
src/test/test-execute.c:1447: Assertion failed: expected "r" to succeed, but got error: Ошибка протокола
Comment 6 Алексей Горячев 2025-10-01 14:53:04 MSK
Актуально для systemd-257.9-alt1.x86_64
Comment 7 Alexey Shabalin 2025-10-08 15:34:33 MSK
Попробуйте еще поставить пакет sysctl-conf-userns.
Comment 8 obidinog@basealt.ru 2026-01-12 10:21:12 MSK
Актуально для systemd-258.3-alt1.x86_64, установка пакета sysctl-conf-userns-0.2-alt1.noarch не помогла

src/test/test-execute.c:1034:test_exec_dynamicuser: exec-dynamicuser-fixeduser-adm.service: can_unshare=yes: exit status 1, expected 0
(test-execute-root) terminated by signal ABRT.
src/test/test-execute.c:1470: Assertion failed: Expected "r" to succeed, but got error: -71/EPROTO
Аварийный останов (образ памяти сброшен на диск)