Skip to content

报错问题1 #99

@AmShadows

Description

@AmShadows

Start 40 Spider...
Spider OK

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

goroutine 1 [running]:
github.com/pingc0y/URLFinder/util.GetProtocol({0xc0000d09f0, 0x22})
/home/runner/work/URLFinder/URLFinder/util/utils.go:122 +0xc9
github.com/pingc0y/URLFinder/crawler.Run()
/home/runner/work/URLFinder/URLFinder/crawler/run.go:138 +0x990
main.main()
/home/runner/work/URLFinder/URLFinder/main.go:15 +0x37

例如我使用-s all -m 3 -d "***.cn" -ff all.txt -o result.html,当跑了十几个后中间遇到一个无法访问或者302的url跳转时就会以上报错。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions