Bug 241587 - dns/dnscrypt-proxy2 - [panic] runtime error: invalid memory address or nil pointer dereference
Summary: dns/dnscrypt-proxy2 - [panic] runtime error: invalid memory address or nil po...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2019-10-30 11:53 UTC by Yani Karydis
Modified: 2022-10-12 00:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yani Karydis 2019-10-30 11:53:02 UTC
Hi,

I'm received the following error on FreeBSD 11.3 (amd64) and also on FreeBSD 12.0 (arm7).

[2019-10-30 13:46:39] [NOTICE] dnscrypt-proxy 2.0.29
[2019-10-30 13:46:39] [NOTICE] Network connectivity detected
[2019-10-30 13:46:39] [NOTICE] Source [public-resolvers.md] loaded
[2019-10-30 13:46:39] [NOTICE] Now listening to 127.0.0.1:5353 [UDP]
[2019-10-30 13:46:39] [NOTICE] Now listening to 127.0.0.1:5353 [TCP]
panic: runtime error: invalid memory address or nil pointer dereference
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x765ad8]

goroutine 7 [running]:
main.(*PluginsState).ApplyLoggingPlugins(0xc0001f40d0, 0xc00011a290, 0x0, 0x0)
        /tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-proxy/plugins.go:323 +0x48
panic(0x7d2b80, 0xb5ac90)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
main.(*PluginsState).ApplyQueryPlugins(0xc0001f40d0, 0xc00011a290, 0xc000117000, 0x4d, 0xfff, 0x84d82a, 0x1, 0x0, 0x0, 0x0, ...)
        /tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-proxy/plugins.go:233 +0x5c
main.(*Proxy).processIncomingQuery(0xc00011a000, 0x0, 0x84db1d, 0x3, 0x84db1d, 0x3, 0xc000117000, 0x4d, 0xfff, 0xc0001b53e0, ...)
        /tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-proxy/proxy.go:385 +0x2c0
main.(*Proxy).udpListener.func1(0xc00011a000, 0xc000117000, 0x4d, 0xfff, 0xc0001b53e0, 0xc000010010)
        /tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-proxy/proxy.go:237 +0x17f
created by main.(*Proxy).udpListener
        /tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-proxy/proxy.go:230 +0x68


On FreeBSD 12.0 (armv7), the error is similar:


[2019-10-30 13:46:03] [NOTICE] dnscrypt-proxy 2.0.29
[2019-10-30 13:46:03] [NOTICE] Network connectivity detected
[2019-10-30 13:46:03] [NOTICE] Source [public-resolvers.md] loaded
[2019-10-30 13:46:03] [NOTICE] Now listening to 127.0.0.1:5353 [UDP]
[2019-10-30 13:46:03] [NOTICE] Now listening to 127.0.0.1:5353 [TCP]
[2019-10-30 13:46:03] [NOTICE] [arvind-io] OK (DNSCrypt) - rtt: 209ms
[2019-10-30 13:46:03] [NOTICE] [securedns] OK (DNSCrypt) - rtt: 70ms
[2019-10-30 13:46:04] [NOTICE] [cloudflare] OK (DoH) - rtt: 27ms
[2019-10-30 13:46:04] [NOTICE] Sorted latencies:
[2019-10-30 13:46:04] [NOTICE] -    27ms cloudflare
[2019-10-30 13:46:04] [NOTICE] -    70ms securedns
[2019-10-30 13:46:04] [NOTICE] -   209ms arvind-io
[2019-10-30 13:46:04] [NOTICE] Server with the lowest initial latency: cloudflare (rtt: 27ms)
[2019-10-30 13:46:04] [NOTICE] dnscrypt-proxy is ready - live servers: 3
panic: runtime error: invalid memory address or nil pointer dereference
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x2fbcac]

goroutine 38 [running]:
main.(*PluginsState).ApplyLoggingPlugins(0x3106e000, 0x30c9c858, 0x0, 0x0)
        /home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/plugins.go:323 +0x2c
panic(0x356838, 0x6517d8)
        /home/travis/.gimme/versions/go1.13.3.linux.amd64/src/runtime/panic.go:679 +0x194
main.(*PluginsState).ApplyQueryPlugins(0x3106e000, 0x30c9c858, 0x30da6000, 0x52, 0xfff, 0x30d004fd, 0x9, 0x0, 0x0, 0x0, ...)
        /home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/plugins.go:233 +0x3c
main.(*Proxy).processIncomingQuery(0x30c9c6c0, 0x30c8a5a0, 0x3a0845, 0x3, 0x3a0845, 0x3, 0x30da6000, 0x52, 0xfff, 0x30cdbad0, ...)
        /home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/proxy.go:385 +0x17c
main.(*Proxy).udpListener.func1(0x30c9c6c0, 0x30da6000, 0x52, 0xfff, 0x30cdbad0, 0x30d9a010)
        /home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/proxy.go:237 +0xe4
created by main.(*Proxy).udpListener
        /home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/proxy.go:230 +0x4c