sourcegraph / lsif-go

Language Server Indexing Format (LSIF) generator for Go
https://lsif.dev/
MIT License
116 stars 20 forks source link

Segfaults when running over go-ethereum #201

Open tjdevries opened 3 years ago

tjdevries commented 3 years ago
go-ethereum on  master via 🐹 v1.16.6 on 🐳 v20.10.8
[I] ➜ lsif-go-impl --no-animation
Resolving module name
Listing dependencies
Loading packages
Emitting documents
Emitting import references and definitions
panic: assignment to entry in nil map

goroutine 13582 [running]:
github.com/sourcegraph/lsif-go/internal/indexer.(*Indexer).ensureRangeFor(0xc00000c1e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa60a08,
5d0b7aa0, 0x0, 0x0)
        /home/tjdevries/sourcegraph/lsif-go.git/implementations/internal/indexer/indexer.go:1355 +0x3bb
github.com/sourcegraph/lsif-go/internal/indexer.(*Indexer).emitImportMonikerReference(0xc00000c1e0, 0xc00129c140, 0xc00061
 0xc01d7a4270)
        /home/tjdevries/sourcegraph/lsif-go.git/implementations/internal/indexer/indexer.go:417 +0x233
github.com/sourcegraph/lsif-go/internal/indexer.(*Indexer).emitImportsForPackage(0xc00000c1e0, 0xc00129c140)
        /home/tjdevries/sourcegraph/lsif-go.git/implementations/internal/indexer/indexer.go:387 +0x13b
github.com/sourcegraph/lsif-go/internal/indexer.(*Indexer).visitEachPackage.func1.1()
        /home/tjdevries/sourcegraph/lsif-go.git/implementations/internal/indexer/visit.go:65 +0x47
github.com/sourcegraph/lsif-go/internal/parallel.Run.func1(0xc05b93a730, 0xc02ad7b0e0, 0xc05b93a720)
        /home/tjdevries/sourcegraph/lsif-go.git/implementations/internal/parallel/parallel.go:24 +0x67
created by github.com/sourcegraph/lsif-go/internal/parallel.Run
        /home/tjdevries/sourcegraph/lsif-go.git/implementations/internal/parallel/parallel.go:20 +0xa6