-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: esbuild sometimes crashes with fatal: morestack on g0
on 64-bit Windows
#51266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
fatal: morestack on g0
on 64-bit Windows
fatal: morestack on g0
on 64-bit Windowsfatal: morestack on g0
on 64-bit Windows
I'm the user that reported this, but I don't use go directly. I'd be willing to add whatever instrumentation necessary if that's helpful however; I'm just somewhat out of my depth here. I don't know how to reproduce the issue consistently; it just ... rarely happens, but usually does not. |
Not sure what's going on with the first trace. It looks just like it is waiting for a file read, and the error happened in some other goroutine. We'd need more of the printed stack traces, I think. That second trace has more information. It's trying to do a string The Have you run this under the race detector? It would really help if you could catch this in the act under a debugger, so you can inspect the length of
Some debugging things you could do:
|
FYI the only dependency is on the |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, 1.17.7 is the latest release.
What operating system and processor architecture are you using (
go env
)?(this is the OS used to build the executable, but not to run it)
go env
OutputWhat did you do?
This is a new bug report as suggested by #39457 (comment). See this issue for full context: evanw/esbuild#2031. Specifically I'm the author of esbuild, a JavaScript build tool written in Go, and I have a user reporting intermittent crashes. The crashes either say
fatal: morestack on g0
or something like[signal 0xc0000005 code=0x0 addr=0xffffffffffffffff pc=0x512894]
.What did you expect to see?
I expect users to be able to run esbuild successfully without intermittent crashes.
What did you see instead?
The crashes look something like this (see evanw/esbuild#2031 for the full stack trace):
or like this:
The problem appears to happen on 64-bit Windows. Note that esbuild does not make use of cgo. The machine is "a 3970x, i.e. 32 cores, 64 threads" according to the user. I cannot reproduce this issue myself (I don't even have a Windows machine) so I can't help debug this myself.
The text was updated successfully, but these errors were encountered: