Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821523 - sys-apps/sandbox-3.1: breaks dev-lang/go bootstrapping
Summary: sys-apps/sandbox-3.1: breaks dev-lang/go bootstrapping
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 879087
Blocks:
  Show dependency tree
 
Reported: 2021-11-03 20:50 UTC by Georgy Yakovlev
Modified: 2022-11-02 00:50 UTC (History)
4 users (show)

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


Attachments
emerge --info output and basic process info (buginfo.txt,8.57 KB, text/plain)
2021-11-03 20:51 UTC, Georgy Yakovlev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2021-11-03 20:50:34 UTC
on fresh system,
portage installed dev-lang/go-bootstrap and using it to install dev-lang/go

hangs in go version
Comment 1 Georgy Yakovlev archtester gentoo-dev 2021-11-03 20:51:27 UTC
Created attachment 748329 [details]
emerge --info output and basic process info

emerge --info output and basic process info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-03 22:24:52 UTC
app-emulation/docker-cli-20.10.10 seems to hang for me too when it calls Go(?). I can file a new bug but I figure I'd let some investigation happen here first rather than have a load of dupes:

2021/11/03 22:23:11 WARN: /var/tmp/portage/app-emulation/docker-cli-20.10.10/work/docker-cli-20.10.10/src/github.com/docker/cli/man/src/volume/rm.md does not exist, skipping
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
 * Unable to trace children due to YAMA ptrace_scope=1
Comment 3 Larry the Git Cow gentoo-dev 2021-11-04 00:32:38 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(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-04 00:59:57 UTC
I've masked for now just to avoid getting loads more dupes - we had a bunch more reports on #gentoo and the (new) Firefox bug may well be a dupe of this too. Just looking to avoid too much chaos while we figure out what's going on.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-04 01:06:23 UTC
(In reply to Sam James from comment #4)
> I've masked for now just to avoid getting loads more dupes - we had a bunch
> more reports on #gentoo and the (new) Firefox bug may well be a dupe of this
> too. Just looking to avoid too much chaos while we figure out what's going
> on.

(and obviously feel free to drop it when you think it's fixed)
Comment 6 SpanKY gentoo-dev 2021-11-04 12:16:30 UTC
hmm, i handle fork & clone in the same way, but that was before trying to release them as untraceable.  i wonder if these programs are using threads and the tracer is getting into a bad state as a result.  prob should decode the clone flags and not do anything special if it's just creating a thread ... so use the one-to-many model for threads since they should have the same PID.
Comment 7 SpanKY gentoo-dev 2021-11-06 04:36:19 UTC
i read the docs & played with debug logic a bit more, and i think it's actually OK as-is.  from ptrace pov, everything operates on TIDs, not PIDs.

i'm able to repro the failure with dev-lang/go inconsistently, so that's annoying.  still trying to get a better handle of where it's going wrong.

i might put this behind a knob disabling to off until i can, that way we don't block other features & fixes rolling in.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-01 08:08:33 UTC
(In reply to SpanKY from comment #7)
> i might put this behind a knob disabling to off until i can, that way we
> don't block other features & fixes rolling in.

would you mind looking into that that if possible?
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-22 05:46:30 UTC
(In reply to Sam James from comment #8)
> (In reply to SpanKY from comment #7)
> > i might put this behind a knob disabling to off until i can, that way we
> > don't block other features & fixes rolling in.
> 
> would you mind looking into that that if possible?

also, i've lost track to be honest, but are we at a point where we reckon 2.29 is ok to stable?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-13 02:50:52 UTC
(In reply to Sam James from comment #9)
> (In reply to Sam James from comment #8)
> > (In reply to SpanKY from comment #7)
> > > i might put this behind a knob disabling to off until i can, that way we
> > > don't block other features & fixes rolling in.
> > 
> > would you mind looking into that that if possible?
> 
> also, i've lost track to be honest, but are we at a point where we reckon
> 2.29 is ok to stable?

ping