public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
* SIGSEGV in nncp-daemon
@ 2021-05-08 20:07 John Goerzen
  2021-05-11 10:49 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: John Goerzen @ 2021-05-08 20:07 UTC (permalink / raw)
  To: nncp-devel

Hi,

I observed this behavior when, it seems, two processes on a remote 
machine tried to call the daemon at the same time:

May 08 15:01:06 nncp nncp-daemon[14379]: 2021-05-08T20:01:06Z 
ERROR SP nice MAX: waiting for first message: EOF
May 08 15:01:06 nncp nncp-daemon[14379]: panic: runtime error: 
invalid memory address or nil pointer dereference
May 08 15:01:06 nncp nncp-daemon[14379]: [signal SIGSEGV: 
segmentation violation code=0x1 addr=0x0 pc=0x61b195]
May 08 15:01:06 nncp nncp-daemon[14379]: goroutine 130 [running]:
May 08 15:01:06 nncp nncp-daemon[14379]: 
main.performSP.func3(0xc00062a100, 0x2, 0x2, 0x1, 0xc00000e5a0)
May 08 15:01:06 nncp nncp-daemon[14379]: 
/tmp/nncp-6.4.0/src/cmd/nncp-daemon/main.go:121 +0x25
May 08 15:01:06 nncp nncp-daemon[14379]: 
go.cypherpunks.ru/nncp/v6.(*Ctx).LogI(0xc0000dd730, 0x6920e6, 0xc, 
0xc00000e5a0, 0x1, 0x1, 0xc0000c7d98)
May 08 15:01:06 nncp nncp-daemon[14379]: 
/tmp/nncp-6.4.0/src/log.go:108 +0x14f
May 08 15:01:06 nncp nncp-daemon[14379]: 
main.performSP(0xc0000dd730, 0x7fbc8daaf048, 0xc00062c2a0, 0xff, 
0xc00062e360)
May 08 15:01:06 nncp nncp-daemon[14379]: 
/tmp/nncp-6.4.0/src/cmd/nncp-daemon/main.go:118 +0x269
May 08 15:01:06 nncp nncp-daemon[14379]: created by 
main.main.func2
May 08 15:01:06 nncp nncp-daemon[14379]: 
/tmp/nncp-6.4.0/src/cmd/nncp-daemon/main.go:230 +0xaf

This is:

NNCP version 6.4.0 built with go1.14

on amd64.

Thanks,

- John

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

* Re: SIGSEGV in nncp-daemon
  2021-05-08 20:07 SIGSEGV in nncp-daemon John Goerzen
@ 2021-05-11 10:49 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2021-05-11 10:49 UTC (permalink / raw)
  To: nncp-devel

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

Greetings!

*** John Goerzen [2021-05-08 15:07]:
>go.cypherpunks.ru/nncp/v6.(*Ctx).LogI(0xc0000dd730, 0x6920e6, 0xc,
>0xc00000e5a0, 0x1, 0x1, 0xc0000c7d98)

Fixed in http://www.git.cypherpunks.ru/?p=nncp.git;a=commitdiff;h=fd6a79c14ead6eefcb0bc327ea67687952b7ed3a
Will appear in the nearest release tarball. Thanks for the report!

-- 
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-05-11 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 20:07 SIGSEGV in nncp-daemon John Goerzen
2021-05-11 10:49 ` Sergey Matveev