Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

katana v1.0.5 segfault while crawling 400K hosts #812

Closed
geeknik opened this issue Mar 19, 2024 · 1 comment · Fixed by #773
Closed

katana v1.0.5 segfault while crawling 400K hosts #812

geeknik opened this issue Mar 19, 2024 · 1 comment · Fixed by #773
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@geeknik
Copy link
Contributor

geeknik commented Mar 19, 2024

katana version:

1.0.5

Current Behavior:

Crawls around 1100 URLs before crashing.

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

goroutine 38710 [running]:
github.com/projectdiscovery/utils/url.(*URL).String(0x0)
	/home/runner/go/pkg/mod/github.com/projectdiscovery/utils@v0.0.72/url/url.go:98 +0x2c
github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Crawler).navigateRequest.func1(0xc005b6a8c0)
	/home/runner/work/katana/katana/pkg/engine/hybrid/crawl.go:68 +0x230
github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Hijack).Start.func2(0x0?)
	/home/runner/work/katana/katana/pkg/engine/hybrid/hijack.go:52 +0x28
reflect.Value.call({0x13905e0?, 0xc0024ac978?, 0x100c001654e40?}, {0x1572396, 0x4}, {0xc0108d3f58, 0x1, 0xc005b6a8c0?})
	/opt/hostedtoolcache/go/1.21.5/x64/src/reflect/value.go:596 +0xce7
reflect.Value.Call({0x13905e0?, 0xc0024ac978?, 0xc005b6a8c0?}, {0xc0108d3f58?, 0xc012755e00?, 0xc00cd546b8?})
	/opt/hostedtoolcache/go/1.21.5/x64/src/reflect/value.go:380 +0xb9
github.com/go-rod/rod.(*Browser).eachEvent.func1()
	/home/runner/go/pkg/mod/github.com/go-rod/rod@v0.114.1/browser.go:401 +0x3d9
github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Hijack).Start.func3()
	/home/runner/work/katana/katana/pkg/engine/hybrid/hijack.go:57 +0x22
created by github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Crawler).navigateRequest in goroutine 38195
	/home/runner/work/katana/katana/pkg/engine/hybrid/crawl.go:49 +0x51b

Expected Behavior:

No crash.

Steps To Reproduce:

katana -r resolvers.txt -d 5 -proxy http://localhost:3128 -u urls.txt -jc -aff -kf all -jsl -hl --no-sandbox -o katana.txt -ef png,gif,jpg,css,webp,jpeg

Anything else:

hi!

@geeknik geeknik added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Mar 19, 2024
@geeknik geeknik changed the title katana v1.0.5 segfault while crawlinging 400K hosts katana v1.0.5 segfault while crawling 400K hosts Mar 19, 2024
@dogancanbakir dogancanbakir linked a pull request Mar 19, 2024 that will close this issue
@dogancanbakir
Copy link
Member

This is fixed #767. The issue will be resolved in the upcoming release.

@dogancanbakir dogancanbakir self-assigned this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants