-
Notifications
You must be signed in to change notification settings - Fork 760
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) #3534
Milestone
Comments
The offending line of code is: func (an *analysisNode) typeCheck(parsed []*parsego.File) *analysisPackage {
...
for _, path := range paths {
dep, ok := an.allDeps[path]
if !ok {
log.Fatalf("%s: missing dependency: %q", an, path)
}
fmt.Fprintf(hash, "%s %s\n", dep.mp.PkgPath, dep.summary.DeepExportHash) // <--- SIGSEGV
an.exportDeps[path] = dep
} There are several possible dereference operations on that line. Building the executable with GOTOOLCHAIN=go1.22.6 GOOS=darwin GOARCH=arm64 shows that it is the summary field that is nil:
So, this is a dup of golang/go#66732. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gopls version: v0.16.2/go1.22.6
gopls flags:
update flags: proxy
extension version: 0.42.0
environment: Cursor darwin
initialization error: undefined
issue timestamp: Wed, 11 Sep 2024 17:58:43 GMT
restart history:
Tue, 10 Sep 2024 16:14:34 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
gopls stats -anon
{ "DirStats": { "Files": 100255, "TestdataFiles": 7, "GoFiles": 5012, "ModFiles": 4, "Dirs": 13214 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.6", "GoplsVersion": "v0.16.2", "InitialWorkspaceLoadDuration": "2.385167916s", "MemStats": { "HeapAlloc": 136284960, "HeapInUse": 192028672, "TotalAlloc": 2049657912 }, "WorkspaceStats": { "Files": { "Total": 5341, "Largest": 13374010, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.6", "AllPackages": { "Packages": 1029, "LargestPackage": 636, "CompiledGoFiles": 5456, "Modules": 164 }, "WorkspacePackages": { "Packages": 40, "LargestPackage": 16, "CompiledGoFiles": 210, "Modules": 1 }, "Diagnostics": 109 } ] } }OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.
NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.
<OPTIONAL: ATTACH LOGS HERE>
The text was updated successfully, but these errors were encountered: