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

crash - invalid memory address or nil pointer dereference #977

Closed
deadjdona opened this issue Feb 12, 2023 · 2 comments · Fixed by #1033
Closed

crash - invalid memory address or nil pointer dereference #977

deadjdona opened this issue Feb 12, 2023 · 2 comments · Fixed by #1033
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.
Milestone

Comments

@deadjdona
Copy link

deadjdona commented Feb 12, 2023

httpx version:

httpx@v1.2.7

Current Behavior:

httpx -u https._tcp.cloud.asdf.com -pa

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/              v1.2.7

		projectdiscovery.io

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

goroutine 86 [running]:
github.com/projectdiscovery/httpx/runner.(*Runner).targets.func1()
	/home/runner/work/httpx/httpx/runner/runner.go:1008 +0x208
created by github.com/projectdiscovery/httpx/runner.(*Runner).targets
	/home/runner/work/httpx/httpx/runner/runner.go:973 +0x104
@deadjdona deadjdona added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Feb 12, 2023
@ehsandeep
Copy link
Member

@deadjdona can you provider curl or any other example showing _tcp.cloud.asdf.com can be accessed?

@ehsandeep ehsandeep added Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all. and removed Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Feb 25, 2023
@ehsandeep ehsandeep changed the title [DBG] failed to parse url https._tcp.cloud.asdf.com got [urlutil:RUNTIME] failed to parse url https._tcp.cloud.asdf.com got empty host in unsafe:false failed to parse url _tcp.cloud.asdf.com Feb 25, 2023
@deadjdona
Copy link
Author

deadjdona commented Feb 28, 2023

There's no problem with _tcp.cloud.asdf.com, problem is here:

/home/user/go/bin/httpx -u https._tcp.cloud.asdf.com -location -server -td -ip -cname -cdn -pa -csp-probe -o gr-httpx.txt -r r.conf -fr -stats -ec -v -debug

PS edited title, sorry.

@deadjdona deadjdona changed the title failed to parse url _tcp.cloud.asdf.com failed to parse url https._tcp.cloud.asdf.com Feb 28, 2023
@ehsandeep ehsandeep changed the title failed to parse url https._tcp.cloud.asdf.com crash - invalid memory address or nil pointer dereference Mar 5, 2023
@ehsandeep ehsandeep added Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. and removed Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all. labels Mar 5, 2023
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Mar 13, 2023
@ehsandeep ehsandeep added this to the httpx v1.2.9 milestone Mar 14, 2023
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.

2 participants