Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: go build -gcflags "all=-N -l" runtime.inHeapOrStack: nosplit stack overflow #39323
What version of Go are you using (
I don't think there is much that we can do here. The failure is occurring because some code in gvisor.dev/gvisor/pkg/abi/linux is marked nosplit. I guess that is working for normal compilation, but when you disable optimizations and inlining the code takes up too much stack space.
The only fix for this is for the nosplit code to use less stack space when not optimizing. It looks like the biggest culprit is
In order for this to work that function, and perhaps others, will need to be simplified. Or not marked as nosplit, but presumably there is a good reason for it to be nosplit. But that function is not part of the Go project, so there isn't anything that the Go project can do about it.
So I'm going to close this issue since I don't see any action that we can take. Please comment if you disagree.