golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.06k stars 17.68k forks source link

gccgo compiled app fails with: fatal error: schedule: spinning with local work #56147

Open psumbera opened 2 years ago

psumbera commented 2 years ago

What version of Go are you using (go version)?

go version go1.14.6 gccgo (GCC) 10.4.0 solaris/sparc64

Does this issue reproduce with the latest release?

Don't know.

What did you do?

gccgo built application sometimes ends with:

fatal error: schedule: spinning with local work 

https://github.com/golang/go/blob/master/src/runtime/proc.go#L3338

Any comment or suggestion how to debug it is welcome!

ianlancetaylor commented 2 years ago

That clearly shouldn't happen. It's worth trying a newer version (I believe the current version is 12.2).

I'm not sure what to suggest for debugging this. You could start by editing the code to print out information about the goroutines on the local run queue. Then try to figure out how they got there.

I really don't know what is going on here, sorry. Is it possible to share code that can be used to reproduce the problem?

psumbera commented 2 years ago

I don't have myself access to problematic app. I was just told that the problem appears about once per two days.