Closed hussainmohd-a closed 6 months ago
05-22 21:24:28.437 9522 0 E Go : panic: runtime error: invalid memory address or nil pointer dereference
05-22 21:24:28.437 9522 0 E Go : [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x742f114a00]
05-22 21:24:28.437 9522 0 E Go :
05-22 21:24:28.437 9522 0 E Go : goroutine 47911 [running]:
05-22 21:24:28.439 9522 0 E Go : github.com/miekg/dns.(*Msg).CopyTo(0x0, 0x4008f0a510)
05-22 21:24:28.439 9522 0 E Go : /tmp/gomobile-work-2622969469/pkg/mod/github.com/miekg/dns@v1.1.49/msg.go:1059 +0x20
05-22 21:24:28.439 9522 0 E Go : github.com/miekg/dns.(*Msg).Copy(...)
05-22 21:24:28.439 9522 0 E Go : /tmp/gomobile-work-2622969469/pkg/mod/github.com/miekg/dns@v1.1.49/msg.go:1055
05-22 21:24:28.439 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*cres).copy(0x4008bcab40)
05-22 21:24:28.439 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:125 +0x3c
05-22 21:24:28.439 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*ctransport).fetch.func1(0x4008327b80)
05-22 21:24:28.439 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:334 +0x310
05-22 21:24:28.439 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*ctransport).fetch(0x40084423c0, {0x4007a12840, 0x8}, {0x400861c000, 0x26, 0x800}, 0x400037b320, 0x4008327b80, 0x4008769ae0, {0x4009333398, ...})
05-22 21:24:28.439 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:402 +0x624
05-22 21:24:28.439 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*ctransport).Query(0x40084423c0, {0x4007a12840, 0x8}, {0x400861c000, 0x26, 0x800}, 0x4008327b80)
05-22 21:24:28.439 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:428 +0x1d0
05-22 21:24:28.440 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.Req({0x742f54fac8?, 0x40084423c0?}, {0x4007a12840?, 0x742f641aff?}, {0x400861c000?, 0x742eecef1c?, 0x400870f678?}, 0x742eecef10?)
05-22 21:24:28.440 9522 0 E Go : /home/jitpack/build/intra/dnsx/alg.go:899 +0xa4
05-22 21:24:28.440 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*dnsgateway).q(0x4000176120, {0x742f54fac8, 0x40084423c0}, {0x0, 0x0}, {0x4008f781d8, 0x0, 0x1}, {0x4007a12840, 0x8}, ...)
05-22 21:24:28.440 9522 0 E Go : /home/jitpack/build/intra/dnsx/alg.go:255 +0x200
05-22 21:24:28.440 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*resolver).forward(0x40000c6210, {0x400861c000, 0x26, 0x800}, {0x0, 0x0, 0x0})
05-22 21:24:28.440 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:387 +0xa60
05-22 21:24:28.441 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*resolver).dnsudp(0x5?, {0x400861c000?, 0x0?, 0x4008ada660?}, {0x7758b5f0a8, 0x40085c7c80})
05-22 21:24:28.441 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:520 +0x38
05-22 21:24:28.441 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*resolver).reply.func2()
05-22 21:24:28.441 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:560 +0x74
05-22 21:24:28.441 9522 0 E Go : created by github.com/celzero/firestack/intra/dnsx.(*resolver).reply in goroutine 47890
05-22 21:24:28.441 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:570 +0x7c
05-22 21:24:28.449 9522 0 E Go : panic: runtime error: invalid memory address or nil pointer dereference
05-22 21:24:28.449 9522 0 E Go : [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x742f114a00]
05-22 21:24:28.449 9522 0 E Go :
05-22 21:24:28.449 9522 0 E Go : goroutine 47987 [running]:
05-22 21:24:28.449 9522 0 E Go : github.com/miekg/dns.(*Msg).CopyTo(0x0, 0x4000160ab0)
05-22 21:24:28.449 9522 0 E Go : /tmp/gomobile-work-2622969469/pkg/mod/github.com/miekg/dns@v1.1.49/msg.go:1059 +0x20
05-22 21:24:28.449 9522 0 E Go : github.com/miekg/dns.(*Msg).Copy(...)
05-22 21:24:28.449 9522 0 E Go : /tmp/gomobile-work-2622969469/pkg/mod/github.com/miekg/dns@v1.1.49/msg.go:1055
05-22 21:24:28.449 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*cres).copy(0x4008bcab40)
05-22 21:24:28.449 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:125 +0x3c
05-22 21:24:28.449 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*ctransport).fetch.func1(0x400838f130)
05-22 21:24:28.449 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:334 +0x310
05-22 21:24:28.449 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*ctransport).fetch(0x40084423c0, {0x4008bf9da8, 0x8}, {0x400861d800, 0x26, 0x800}, 0x4008f8ca20, 0x400838f130, 0x4008769ae0, {0x4008a1a918, ...})
05-22 21:24:28.449 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:402 +0x624
05-22 21:24:28.449 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*ctransport).Query(0x40084423c0, {0x4008bf9da8, 0x8}, {0x400861d800, 0x26, 0x800}, 0x400838f130)
05-22 21:24:28.449 9522 0 E Go : /home/jitpack/build/intra/dnsx/cacher.go:428 +0x1d0
05-22 21:24:28.449 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.Req({0x742f54fac8?, 0x40084423c0?}, {0x4008bf9da8?, 0x742f641aff?}, {0x400861d800?, 0x742eecef1c?, 0x4009049678?}, 0x742eecef10?)
05-22 21:24:28.450 9522 0 E Go : /home/jitpack/build/intra/dnsx/alg.go:899 +0xa4
05-22 21:24:28.450 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*dnsgateway).q(0x4000176120, {0x742f54fac8, 0x40084423c0}, {0x0, 0x0}, {0x40001a0180, 0x0, 0x1}, {0x4008bf9da8, 0x8}, ...)
05-22 21:24:28.450 9522 0 E Go : /home/jitpack/build/intra/dnsx/alg.go:255 +0x200
05-22 21:24:28.450 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*resolver).forward(0x40000c6210, {0x400861d800, 0x26, 0x800}, {0x0, 0x0, 0x0})
05-22 21:24:28.450 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:387 +0xa60
05-22 21:24:28.450 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*resolver).dnsudp(0x5?, {0x400861d800?, 0x40003000c0?, 0x4008efcb90?}, {0x7758b5f0a8, 0x40085c7c80})
05-22 21:24:28.450 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:520 +0x38
05-22 21:24:28.450 9522 0 E Go : github.com/celzero/firestack/intra/dnsx.(*resolver).reply.func2()
05-22 21:24:28.450 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:560 +0x74
05-22 21:24:28.450 9522 0 E Go : created by github.com/celzero/firestack/intra/dnsx.(*resolver).reply in goroutine 47890
05-22 21:24:28.450 9522 0 E Go : /home/jitpack/build/intra/dnsx/transport.go:570 +0x7c
05-22 21:24:28.450 9522 27473 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 27473 (Thread-74), pid 9522 (elzero.bravedns)
05-22 21:24:28.590 9522 11258 D BatchLogger: signal wait over, sz(b: 1, u: 0) / cur-buf(577)
The above crash was fixed in v055j
: https://github.com/celzero/firestack/issues/49