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

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

Closed
GDATTACKER-RESEARCHER opened this issue Feb 18, 2024 · 2 comments · Fixed by #773
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@GDATTACKER-RESEARCHER
Copy link

command used: cat subdomains.txt |katana -jc -d 5 -headless -o katana.txt
katana version: v1.0.5

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

goroutine 49479 [running]:
github.com/projectdiscovery/utils/url.(*URL).String(0x0)
/home/gdattacker/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(0xc0083e8b40)
/home/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/crawl.go:68 +0x230
github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Hijack).Start.func2(0x0?)
/home/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/hijack.go:52 +0x28
reflect.Value.call({0x13905e0?, 0xc018f737d0?, 0x100c010bcf640?}, {0x1572398, 0x4}, {0xc00188df58, 0x1, 0xc0083e8b40?})
/usr/local/go/src/reflect/value.go:596 +0xce7
reflect.Value.Call({0x13905e0?, 0xc018f737d0?, 0xc0083e8b40?}, {0xc00188df58?, 0xc00c4b2330?, 0x707260?})
/usr/local/go/src/reflect/value.go:380 +0xb9
github.com/go-rod/rod.(*Browser).eachEvent.func1()
/home/gdattacker/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/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/hijack.go:57 +0x22
created by github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Crawler).navigateRequest in goroutine 49419
/home/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/crawl.go:49 +0x51b

@GDATTACKER-RESEARCHER GDATTACKER-RESEARCHER added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Feb 18, 2024
@dogancanbakir dogancanbakir self-assigned this Feb 19, 2024
@dogancanbakir
Copy link
Member

Thank you for opening this issue. I have made a minor modification in #773. Kindly retry with this change and let us know if the issue has been resolved.

@GDATTACKER-RESEARCHER
Copy link
Author

still

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

goroutine 105348 [running]:
github.com/projectdiscovery/utils/url.(*URL).String(0x0)
/home/gdattacker/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(0xc0016d6aa0)
/home/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/crawl.go:68 +0x230
github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Hijack).Start.func2(0x0?)
/home/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/hijack.go:52 +0x28
reflect.Value.call({0x13905e0?, 0xc001d44018?, 0x100c001faf640?}, {0x1572398, 0x4}, {0xc002623f58, 0x1, 0xc0016d6aa0?})
/usr/local/go/src/reflect/value.go:596 +0xce7
reflect.Value.Call({0x13905e0?, 0xc001d44018?, 0xc0016d6aa0?}, {0xc002623f58?, 0xc001164d80?, 0xc002266ad8?})
/usr/local/go/src/reflect/value.go:380 +0xb9
github.com/go-rod/rod.(*Browser).eachEvent.func1()
/home/gdattacker/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/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/hijack.go:57 +0x22
created by github.com/projectdiscovery/katana/pkg/engine/hybrid.(*Crawler).navigateRequest in goroutine 105330
/home/gdattacker/go/pkg/mod/github.com/projectdiscovery/katana@v1.0.5/pkg/engine/hybrid/crawl.go:49 +0x51b

@ehsandeep ehsandeep linked a pull request Feb 24, 2024 that will close this issue
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. 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.

4 participants