Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 821532

Summary: www-client/firefox-94.0 build stalls with sandbox (Unable to trace children due to YAMA ptrace_scope=1)
Product: Portage Development Reporter: Pascal Jäger <pascal.jaeger>
Component: SandboxAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED FIXED    
Severity: normal CC: jasmin+gentoo, mozilla, sam
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=821403
https://bugs.gentoo.org/show_bug.cgi?id=821526
https://bugs.gentoo.org/show_bug.cgi?id=821523
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=www-client/firefox-94.0::gentoo
emerge -pqv '=www-client/firefox-94.0::gentoo
firefox 94.0 build.log

Description Pascal Jäger 2021-11-03 21:56:52 UTC
When I emerge firefox with 
sysctl kernel.yama.ptrace_scope=1 
the build stalls at a random point. In the build log I see several massages saying 
Unable to trace children due to YAMA ptrace_scope=1
I do not know if this has something to do with it, though.

Reproducible: Always

Steps to Reproduce:
1.sysctl kernel.yama.ptrace_scope=1 
2. emerge firefox
Actual Results:  
Firefox build stalls

Expected Results:  
Firefox build is succesful
Comment 1 Pascal Jäger 2021-11-03 21:57:17 UTC
Created attachment 748338 [details]
emerge --info '=www-client/firefox-94.0::gentoo
Comment 2 Pascal Jäger 2021-11-03 21:58:10 UTC
Created attachment 748341 [details]
emerge -pqv '=www-client/firefox-94.0::gentoo
Comment 3 Pascal Jäger 2021-11-03 22:05:56 UTC
Created attachment 748356 [details]
firefox 94.0 build.log
Comment 4 Larry the Git Cow gentoo-dev 2021-11-04 00:32:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0410a141e0a13133097d422078f5edaf2894dc1a

commit 0410a141e0a13133097d422078f5edaf2894dc1a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-04 00:31:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-04 00:32:13 +0000

    profiles: mask newer sandbox versions w/ ptrace issues
    
    Masking for now to avoid duplicate reports of known issues;
    hangs when emerging e.g. Firefox and seemingly anything Go
    based are nasty.
    
    One of the bugs (821403) should be OK now but tagging
    anyway for reference.
    
    Bug: https://bugs.gentoo.org/821532
    Bug: https://bugs.gentoo.org/821523
    Bug: https://bugs.gentoo.org/821403
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 8 ++++++++
 1 file changed, 8 insertions(+)