Summary: | app-shells/bash with FEATURES="pid-sandbox": Test suite makes entire emerge process hang in background | ||
---|---|---|---|
Product: | Portage Development | Reporter: | tka <tka> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, bertrand |
Priority: | Normal | Keywords: | InVCS, REGRESSION, TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 704498, 671498 | ||
Attachments: | build.log |
Description
tka
2019-01-19 18:35:45 UTC
Does this problem occur in =app-shells/bash-4.4*? Does this problem occur with FEATURES="-ipc-sandbox"? Does this problem occur with FEATURES="-network-sandbox"? Does this problem occur with FEATURES="-pid-sandbox"? (In reply to Arfrever Frehtes Taifersar Arahesis from comment #1) > Does this problem occur in =app-shells/bash-4.4*? Yes. > Does this problem occur with FEATURES="-ipc-sandbox"? Yes. > Does this problem occur with FEATURES="-network-sandbox"? Yes. > Does this problem occur with FEATURES="-pid-sandbox"? No. sys-apps/portage-2.3.57 contains some FEATURES="pid-sandbox"-related changes. Please check if this bug still occurs in this version. It still hangs with portage-2.3.57. When I run `ebuild bash-5.0.ebuild test`, I see the ebuild process receive some kin of stop signal like SIGSTOP or similar, just as though ^Z has been typed at the terminal. Then, if I use `fg` to send SIGCONT, the test phase completes successfully. This issue is suppressed by calling os.setsid() in the pd-ns-init preexec_fn. Patch send for review: https://archives.gentoo.org/gentoo-portage-dev/message/54145344f0b673558ca5bac2f43554f1 https://github.com/gentoo/portage/pull/404 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=37e4dc5ae842afa03849a47b123345906fdd81a2 commit 37e4dc5ae842afa03849a47b123345906fdd81a2 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-01-22 07:17:18 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-01-23 04:47:25 +0000 pid-sandbox: pid-ns-init setsid support (bug 675870) Use setsid to isolate the parent process from signals sent to the process group, and forward signals to the entire process group with kill(0, signum). Bug: https://bugs.gentoo.org/675870 Signed-off-by: Zac Medico <zmedico@gentoo.org> bin/pid-ns-init | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) Confirmed: the process no longer hangs with portage-2.3.58. |