public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
* Panic in nncp-daemon
@ 2021-08-08  4:09 John Goerzen
  2021-08-08 12:31 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: John Goerzen @ 2021-08-08  4:09 UTC (permalink / raw)
  To: nncp-devel

Hi Sergey,

Got another panic for you, this time in nncp-daemon.

I am wanting to set up a nncp-daemon that knows about a bunch of 
peers, but only is willing to talk directly to a few.  Following 
the hint at http://www.nncpgo.org/CfgNeigh.html, I removed 
noisepub from all those that I don't wish to be able to speak 
with.

Unfortunately, even a connection from one I DO with to be able to 
speak with caused this, if other nodes in the config have no 
noisepub:

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

goroutine 21 [running]:
go.cypherpunks.ru/nncp/v7.(*SPState).StartR(0xc00016a000, 
0x7f5c6ffd51d8, 0xc000144510, 0x0, 0x0)
	/meta/j/jgoerzen/nncp-7.5.1/src/sp.go:552 +0x602
main.performSP(0xc0000cf360, 0x7f5c6ffd51d8, 0xc000144510, 
0xc0000dc438, 0x13, 0xff, 0xc0000962a0)
	/meta/j/jgoerzen/nncp-7.5.1/src/cmd/nncp-daemon/main.go:56 
	+0x11b
created by main.main.func2
	/meta/j/jgoerzen/nncp-7.5.1/src/cmd/nncp-daemon/main.go:244 
	+0x10e

Thanks,

John

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Panic in nncp-daemon
  2021-08-08  4:09 Panic in nncp-daemon John Goerzen
@ 2021-08-08 12:31 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2021-08-08 12:31 UTC (permalink / raw)
  To: nncp-devel

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

Greetings, John!

Thanks for reporting that issues! All of them fixed in 7.6.0.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-08 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-08  4:09 Panic in nncp-daemon John Goerzen
2021-08-08 12:31 ` Sergey Matveev