Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #93

@sinhakiara

Description

@sinhakiara

Command: ./crawley -all -user-agent "Mozilla/5.0" -subdomains -headless -depth -1 -silent -skip-ssl -workers 50 -timeout 10s -robots crawl https://target.tld

ERROR:

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

goroutine 44 [running]:
net/url.(*URL).ResolveReference(0xc0004b2750, 0x0)
/opt/hostedtoolcache/go/1.22.3/x64/src/net/url/url.go:1087 +0x32
github.com/s0rg/crawley/internal/crawler.(*Crawler).process.func1({0xc0005e2000, 0x556d})
/home/runner/work/crawley/crawley/internal/crawler/crawler.go:332 +0xd2
github.com/s0rg/crawley/internal/links.ExtractCSS({0x7f05a3350028?, 0xc00068e680?}, 0xc0002c9de0)
/home/runner/work/crawley/crawley/internal/links/css.go:26 +0x65
github.com/s0rg/crawley/internal/crawler.(*Crawler).process(0xc0000b2780, {0x752b20?, 0xc0004ca4d0?}, {0x751a08?, 0xc00013a000?}, 0xc0008b6900, {0xc00077c500, 0x59})
/home/runner/work/crawley/crawley/internal/crawler/crawler.go:355 +0x431
github.com/s0rg/crawley/internal/crawler.(*Crawler).worker(0xc0000b2780, {0x751a08, 0xc00013a000})
/home/runner/work/crawley/crawley/internal/crawler/crawler.go:390 +0x496
created by github.com/s0rg/crawley/internal/crawler.(*Crawler).Run in goroutine 1
/home/runner/work/crawley/crawley/internal/crawler/crawler.go:104 +0x31a

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