dt icon indicating copy to clipboard operation
dt copied to clipboard

panic in SOACheck

Open Niko78 opened this issue 2 years ago • 1 comments

hi, great app and hope to get update soon with more features ;-)

When I check an internal domain I get a panic in soacheck

... panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x69e069]

goroutine 1 [running]: github.com/42wim/dt/check.(*SOACheck).Values(0xc000198460, 0x0, 0x0, 0x0) /root/go/src/github.com/42wim/dt/check/soa.go:154 +0xe9 github.com/42wim/dt/check.(*SOACheck).CreateReport(0xc000198460, 0x7ffeb60f3697, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0) /root/go/src/github.com/42wim/dt/check/soa.go:193 +0x13b main.execCheckers(0xc00004a860, 0x7ffeb60f3697, 0x12, 0xc0000bee00, 0x2, 0x2, 0xc00009cd90) /root/go/src/github.com/42wim/dt/main.go:107 +0x413 main.doDomainReport(0xc00004a860, 0x7ffeb60f3697, 0x12, 0xc0000bee00, 0x2, 0x2, 0xc00009cd90) /root/go/src/github.com/42wim/dt/main.go:125 +0x1c0 main.main() /root/go/src/github.com/42wim/dt/main.go:91 +0x1ea

thanks

Niko78 avatar Jul 21 '23 13:07 Niko78

Same issue here!

$ ~/go/bin/dt -scan -resolver 127.0.0.53 pappacoda.it      
using 127.0.0.53 as resolver

NS                       |IP             |LOC |ASN     |ISP               |rtt   |Serial
rory.ns.cloudflare.com.  |162.159.44.166 |US  |AS13335 |CLOUDFLARENET, US |error |error |error |
april.ns.cloudflare.com. |172.64.32.66   |US  |AS13335 |CLOUDFLARENET, US |error |error |error |

NS |IP |Version |DNSSEC |ValidFrom |ValidUntil
...panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x646c6b]

goroutine 1 [running]:
github.com/42wim/dt/check.(*SOACheck).Values(0xc00010fb20)
	/home/tachi/go/pkg/mod/github.com/42wim/[email protected]/check/soa.go:154 +0x8b
github.com/42wim/dt/check.(*SOACheck).CreateReport(0xc00010fb20, {0x7ffe73b2907e?, 0xc?})
	/home/tachi/go/pkg/mod/github.com/42wim/[email protected]/check/soa.go:193 +0x178
main.execCheckers(0xc00002c160, {0x7ffe73b2907e, 0xc}, {0xc000188a80, 0x2, 0x2}, 0xc00010eb60)
	/home/tachi/go/pkg/mod/github.com/42wim/[email protected]/main.go:107 +0x4f5
main.doDomainReport(0xc00002c160?, {0x7ffe73b2907e, 0xc}, {0xc00011ac00?, 0x2?, 0x440f3c?}, 0xc00010eb60)
	/home/tachi/go/pkg/mod/github.com/42wim/[email protected]/main.go:125 +0x198
main.main()
	/home/tachi/go/pkg/mod/github.com/42wim/[email protected]/main.go:91 +0x205

Tachi107 avatar Feb 27 '24 08:02 Tachi107