Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821418 - sys-apps/sandbox-3.1: test failure + hang when ptrace_scope=1
Summary: sys-apps/sandbox-3.1: test failure + hang when ptrace_scope=1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2021-11-03 07:26 UTC by Michał Górny
Modified: 2021-11-03 19:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps:sandbox-3.1:20211103-071710.log (sys-apps:sandbox-3.1:20211103-071710.log,734.26 KB, text/plain)
2021-11-03 07:26 UTC, Michał Górny
Details
emerge-info.txt (emerge-info.txt,6.88 KB, text/plain)
2021-11-03 07:27 UTC, Michał Górny
Details
/tmp/portage/sys-apps/sandbox-3.1/work/sandbox-3.1-abi_x86_64.amd64/tests/testsuite.log (testsuite.log,282.40 KB, text/plain)
2021-11-03 07:29 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-03 07:26:44 UTC
Created attachment 748167 [details]
sys-apps:sandbox-3.1:20211103-071710.log

The following test fails:

 75: script/17                                       FAILED (script.at:17)

The following test hanged and I had to SIGKILL it:

 66: script/8                                        FAILED (script.at:8)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-03 07:27:13 UTC
Created attachment 748170 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-03 07:29:21 UTC
Created attachment 748173 [details]
/tmp/portage/sys-apps/sandbox-3.1/work/sandbox-3.1-abi_x86_64.amd64/tests/testsuite.log
Comment 3 SpanKY gentoo-dev 2021-11-03 16:55:08 UTC
(In reply to Michał Górny from comment #2)
> Unable to trace children due to YAMA ptrace_scope=1

hmm i'll have to add some prechecks to some of these tests to skip them if yama is enabled in an incompatible way.
Comment 4 Larry the Git Cow gentoo-dev 2021-11-03 19:13:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=369fc5965ce5065f2653225627f61442641c5bef

commit 369fc5965ce5065f2653225627f61442641c5bef
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: 2021-11-03 19:11:33 +0000
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: 2021-11-03 19:11:33 +0000

    tests: skip static children tests when YAMA ptrace_scope is enabled
    
    Since we can't trace static children under certain YAMA ptrace_scope
    settings, skip tests that rely on that functionality.
    
    Closes: https://bugs.gentoo.org/821418
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

 tests/atlocal.in   | 9 +++++++++
 tests/script-17.sh | 8 +++++++-
 tests/script-8.sh  | 3 +++
 3 files changed, 19 insertions(+), 1 deletion(-)