anacrolix / dht

dht is used by anacrolix/torrent, and is intended for use as a library in other projects both torrent related and otherwise
Mozilla Public License 2.0
313 stars 66 forks source link

invalid memory address or nil pointer dereference #68

Closed ucwong closed 1 year ago

ucwong commented 1 year ago
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8d8778]

goroutine 49 [running]:
github.com/anacrolix/dht/v2.(*Server).handleQuery(0xc00025e000, {0x1741be0, 0xc00c3e13c0}, {{0xc0155e7337, 0x3}, 0xc00f23dc20, {0xc0155e733c, 0x4}, {0xc0155e7342, 0x1}, ...})
        /root/go/pkg/mod/github.com/anacrolix/dht/v2@v2.19.2/server.go:582 +0x7f8
github.com/anacrolix/dht/v2.(*Server).processPacket(0xc00025e000, {0xc0007de000, 0x40d, 0x10000}, {0x1741be0?, 0xc00c3e13c0})
        /root/go/pkg/mod/github.com/anacrolix/dht/v2@v2.19.2/server.go:318 +0x350
github.com/anacrolix/dht/v2.(*Server).serve(0xc00025e000)
        /root/go/pkg/mod/github.com/anacrolix/dht/v2@v2.19.2/server.go:375 +0x15b
github.com/anacrolix/dht/v2.(*Server).serveUntilClosed(0xc00025e000)
        /root/go/pkg/mod/github.com/anacrolix/dht/v2@v2.19.2/server.go:247 +0x33
created by github.com/anacrolix/dht/v2.NewServer
        /root/go/pkg/mod/github.com/anacrolix/dht/v2@v2.19.2/server.go:242 +0x79c
image