-
Notifications
You must be signed in to change notification settings - Fork 104
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 after long running scan ( /24 and /26 with -p-) #89
Comments
I recognized I can't reproduce the error if I remove the progress function, so it maybe related to the progress channel. |
Hi @echox thanks for opening this issue! :) This sounds like a fun one to reproduce! 😄 The stack trace indeed does not really indicate the source of the error here, but simply says that the two goroutines were waiting while reading on channels when it crashed, AFAIK. Was this really the only output when it crashed? The exit status 2 most likely comes from I'll try to reproduce it when I have some time, but I'm on holidays currently (even if I still work a little bit) so it might take me a while unfortunately. I'd be very grateful to anyone willing to take a look. |
Hi, since I coded that method back in December 2020 I feel responsible for this issue. ;) @echox As a quick and dirty alternative you may do something like this by using the RunWithStreamer method and parsing the progress yourself. The output should be grepable with a regular expression. |
So I took your code @echox and opened the debugger in my IntelliJ IDE. As far as I can tell the error you'll get is coming from the function I also ran a mass scan on my home-network, but I had to cancel it when I crashed my entire infastructure.:see_no_evil: Could you please tell which Go version you use? |
Thanks for the help so far, no need to hurry and it might a somewhat slow progress anyway :) @elivlo I've run into this on the following two versions:
I've striped down my example code and started a scan against the Thanks! |
I get reproducible crashes after scanning a large number of hosts, for example a /24 network.
I'm using
-sSV -p-
so the scan will take a while.After ~ 1 hour the application simply exits with the following errors:
main.go:139 does contain the progress function.
The code (the progress if statement is not the most elegant but shouldn't be the cause of the error I guess :)):
I'm not sure if this is a bug in the library, a frozen nmap process or anything else...
Doing a fast-mode scan with the same settings works fine (which is obviously faster ;-)).
I would appreciate any hints for debugging this further because I guess the pasted errors are not that helpful and I have no experience debugging these kind of errors in the go ecosystem.
The text was updated successfully, but these errors were encountered: