subfinder: panic while running job: runtime error: invalid memory address or nil pointer dereference

The application crashes with some domains, maybe invalid responses are not handled properly somewhere in code…

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: interface conversion: interface {} is runtime.errorString, not string
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x6b9d9b]

goroutine 36 [running]:
github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).subworker.func1(0xc420074af0)
        /home/ec2-user/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:61 +0x163
panic(0x717da0, 0x93b9f0)
        /usr/local/go/src/runtime/panic.go:502 +0x229
github.com/subfinder/subfinder/libsubfinder/sources/ipv4info.Query(0xc4200e6a60, 0x2, 0x2, 0x68c801, 0x101)
        /home/ec2-user/go/src/github.com/subfinder/subfinder/libsubfinder/sources/ipv4info/ipv4info.go:99 +0x8fb
github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).subworker(0xc420096b40, 0xc420074af0)
        /home/ec2-user/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:64 +0x6e
github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).worker(0xc420096b40, 0x11)
        /home/ec2-user/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:78 +0xb3
created by github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).Run
        /home/ec2-user/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:181 +0x7f

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Can confirm the same. Reverting to an older build does not solve the issue.

edit: temp fix: -exclude-sources dnsdb

Running enumeration on x
2018/08/17 22:22:02 panic while running job: runtime error: index out of range
panic: runtime error: index out of range [recovered]
	panic: interface conversion: interface {} is runtime.errorString, not string

goroutine 33 [running]:
github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).subworker.func1(0xc420074a00)
	/home/europa/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:61 +0x163
panic(0x716ea0, 0x93aa30)
	/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/subfinder/subfinder/libsubfinder/sources/dnsdb.Query(0xc4200e6a00, 0x2, 0x2, 0x68cc01, 0x101)
	/home/europa/go/src/github.com/subfinder/subfinder/libsubfinder/sources/dnsdb/dnsdb.go:53 +0x70e
github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).subworker(0xc420094c80, 0xc420074a00)
	/home/europa/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:64 +0x6e
github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).worker(0xc420094c80, 0xe)
	/home/europa/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:78 +0xb3
created by github.com/subfinder/subfinder/libsubfinder/helper.(*Pool).Run
	/home/europa/go/src/github.com/subfinder/subfinder/libsubfinder/helper/pool.go:181 +0x7f

Can you supply further information? The flags you were using as well as your GO version would greatly aid in diagnosing this.