public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
* nncp-toss segfault
@ 2021-07-12 16:23 John Goerzen
  2021-07-12 16:30 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: John Goerzen @ 2021-07-12 16:23 UTC (permalink / raw)
  To: nncp-devel

Hello,

This occurred while investigating why my upgraded NNCP files 
weren't coming in.  Apologies if it's been fixed since 7.1.1, but 
I thought I'd make sure to report it:

$ nncp-toss -progress
2021-07-12T16:21:25Z Rx file VFU6TOW77JIWMEGT..M2OAW6B44O6SDZBA 
1.1 MiB/1.1 MiB 100% (186 MiB/sec)
2021-07-12T16:21:25Z Got file nncp-7.3.0.tar.xz (1.1 MiB) from 
[redacted]
panic: runtime error: invalid memory address or nil pointer 
dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 
pc=0x5dd024]

goroutine 67 [running]:
go.cypherpunks.ru/nncp/v7.jobProcess.func1(0xc0002b8000, 0x5, 0x5, 
0xc0000926c0, 0x3)
        /usr/local/nncp/build/nncp-7.1.1/src/toss.go:98 +0x44
go.cypherpunks.ru/nncp/v7.(*Ctx).LogE(0xc000105040, 0x645a42, 0xc, 
0xc0000926c0, 0x3, 0x5, 0x685c60, 0xc0002b4000, 0xc0002af900)
        /usr/local/nncp/build/nncp-7.1.1/src/log.go:118 +0x1d6
go.cypherpunks.ru/nncp/v7.jobProcess(0xc000105040, 0xc000090030, 
0xc00007c9c8, 0x34, 0xc0000926c0, 0x3, 0x3, 0x0, 0xe0, 0xe1dc4, 
...)
        /usr/local/nncp/build/nncp-7.1.1/src/toss.go:97 +0x8eb4
go.cypherpunks.ru/nncp/v7.(*Ctx).Toss.func3(0xc000092780, 
0xc000105040, 0xc000090030, 0xc00007c9c8, 0x34, 0xc0000926c0, 0x3, 
0x3, 0xc00017ea20, 0xc00016cc60, ...)
        /usr/local/nncp/build/nncp-7.1.1/src/toss.go:925 +0x1c5
created by go.cypherpunks.ru/nncp/v7.(*Ctx).Toss
        /usr/local/nncp/build/nncp-7.1.1/src/toss.go:924 +0x865

All systems involved are amd64.  nncp-check is not reporting any 
issues with the packet.

- John

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

* Re: nncp-toss segfault
  2021-07-12 16:23 nncp-toss segfault John Goerzen
@ 2021-07-12 16:30 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2021-07-12 16:30 UTC (permalink / raw)
  To: nncp-devel

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

Greetings!

*** John Goerzen [2021-07-12 11:23]:
>/usr/local/nncp/build/nncp-7.1.1/src/toss.go:98 +0x44

It should be fixed in the commit included in 7.2.0:
http://www.git.cypherpunks.ru/?p=nncp.git;a=commitdiff;h=9c70a8054e60010ad69699ad8532d4a3be06ea41

-- 
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-07-12 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 16:23 nncp-toss segfault John Goerzen
2021-07-12 16:30 ` Sergey Matveev