named-data / YaNFD

Yet another Named Data Networking Forwarding Daemon
https://pkg.go.dev/github.com/named-data/YaNFD
MIT License
12 stars 10 forks source link

error while receiving data from socket (End of file) #54

Closed radara09 closed 1 year ago

radara09 commented 1 year ago

when I check my nfdc route list it got output (the YaNFD running) error while receiving data from socket (End of file)

but when I enter the command nfdc route list the YaNFD stopped with this on log

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x792f8d]

goroutine 7 [running]:
github.com/named-data/YaNFD/mgmt.(*RIBModule).list(0xc00017d350, 0xc00021af00, {0xc000210498, 0x6, 0x6}, 0x18?)
        /home/radara09/YaNFD/mgmt/rib.go:242 +0x44d
github.com/named-data/YaNFD/mgmt.(*RIBModule).handleIncomingInterest(0xc00017d350, 0xc00021af00, {0xc000210498, 0x6, 0x6}, 0x0?)
        /home/radara09/YaNFD/mgmt/rib.go:52 +0xc9
github.com/named-data/YaNFD/mgmt.(*Thread).Run(0xc00007a320)
        /home/radara09/YaNFD/mgmt/thread.go:143 +0x6bb
created by github.com/named-data/YaNFD/executor.(*YaNFD).Start
        /home/radara09/YaNFD/executor/yanfd.go:121 +0x15e

Do you have any recommendations to solve this? Thank you