Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2019 11:53:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 241587] [panic] runtime error: invalid memory address or nil pointer dereference
Message-ID:  <bug-241587-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241587

            Bug ID: 241587
           Summary: [panic] runtime error: invalid memory address or nil
                    pointer dereference
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yani@pi-greece.eu

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 derefer=
ence
[signal SIGSEGV: segmentation violation code=3D0x1 addr=3D0x8 pc=3D0x765ad8]

goroutine 7 [running]:
main.(*PluginsState).ApplyLoggingPlugins(0xc0001f40d0, 0xc00011a290, 0x0, 0=
x0)
=20=20=20=20=20=20=20
/tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-prox=
y/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, ...)
=20=20=20=20=20=20=20
/tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-prox=
y/plugins.go:233
+0x5c
main.(*Proxy).processIncomingQuery(0xc00011a000, 0x0, 0x84db1d, 0x3, 0x84db=
1d,
0x3, 0xc000117000, 0x4d, 0xfff, 0xc0001b53e0, ...)
=20=20=20=20=20=20=20
/tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-prox=
y/proxy.go:385
+0x2c0
main.(*Proxy).udpListener.func1(0xc00011a000, 0xc000117000, 0x4d, 0xfff,
0xc0001b53e0, 0xc000010010)
=20=20=20=20=20=20=20
/tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-prox=
y/proxy.go:237
+0x17f
created by main.(*Proxy).udpListener
=20=20=20=20=20=20=20
/tmp/usr/ports/dns/dnscrypt-proxy2/work/dnscrypt-proxy-2.0.29/dnscrypt-prox=
y/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 derefer=
ence
[signal SIGSEGV: segmentation violation code=3D0x1 addr=3D0x4 pc=3D0x2fbcac]

goroutine 38 [running]:
main.(*PluginsState).ApplyLoggingPlugins(0x3106e000, 0x30c9c858, 0x0, 0x0)
=20=20=20=20=20=20=20
/home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/p=
lugins.go:323
+0x2c
panic(0x356838, 0x6517d8)
=20=20=20=20=20=20=20
/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, ...)
=20=20=20=20=20=20=20
/home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/p=
lugins.go:233
+0x3c
main.(*Proxy).processIncomingQuery(0x30c9c6c0, 0x30c8a5a0, 0x3a0845, 0x3,
0x3a0845, 0x3, 0x30da6000, 0x52, 0xfff, 0x30cdbad0, ...)
=20=20=20=20=20=20=20
/home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/p=
roxy.go:385
+0x17c
main.(*Proxy).udpListener.func1(0x30c9c6c0, 0x30da6000, 0x52, 0xfff,
0x30cdbad0, 0x30d9a010)
=20=20=20=20=20=20=20
/home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/p=
roxy.go:237
+0xe4
created by main.(*Proxy).udpListener
=20=20=20=20=20=20=20
/home/travis/gopath/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy/p=
roxy.go:230
+0x4c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241587-7788>