-
Notifications
You must be signed in to change notification settings - Fork 763
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
gopls: automated issue report (crash) #3108
Comments
Thanks for sharing the stack trace @nghtstr Looks like the gopls panic'ed during addFolders -> snapshot.Templates.func1 call. cc @findleyr @adonovan Can you take a look? I cannot find a similar issue in the gopls issue tracker yet.
|
This is another panic during
|
I suspect this is a compiler or runtime bug, not a bug in gopls, because of several suspicious things in the log. I've asked the compiler team to take a look, but in the meantime I suggest you build with the latest go1.22 release candidate. |
Change https://go.dev/cl/553475 mentions this issue: |
@prattmic says the trace is evidence of stack corruption, and wonders whether your machine has faulty memory. Can you check whether there are recent reports of memory errors by looking in dmesg for lines of the form "memory error", or in /var/log/mcelog (or run mcelog --client) for "Hardware event"? (I'm always wary of casting aspersions on hardware for crashes in my code, but in this case it was Michael's call!) |
Along a similar vane, I am curious if you also see crashes when building an older version of gopls, or using an older version of Go to build gopls? |
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.) |
gopls version: v0.14.2/go1.21.4
gopls flags:
update flags: proxy
extension version: 0.40.1
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Tue, 02 Jan 2024 01:15:35 GMT
restart history:
Tue, 02 Jan 2024 01:10:03 GMT: activation (enabled: true)
Tue, 02 Jan 2024 01:15:34 GMT: manual (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
The Go PLS service would not start even after using the "Go: Restart Language Server" from VS Code.
Please attach the stack trace from the crash.
A window with the error message should have popped up in the lower half of your screen.
Please copy the stack trace and error messages from that window and paste it in this issue.
... Including File for stack trace...
stack-trace.txt
The text was updated successfully, but these errors were encountered: