nuclei icon indicating copy to clipboard operation
nuclei copied to clipboard

[BUG] Fatal error: thread exhaustion

Open Sh4d0wHunt3rX opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Current Behavior

I'm currently testing different templates and have 100k in my folder. So, when I run a scan, I get this error.

Expected Behavior

Should start the scan without any error

Steps To Reproduce

nuclei -u LINK -t DIRECTORY

Relevant log output

No response

Environment

- OS: Ubuntu 22.01
- Nuclei: v3.3.1
- Go: 1.22.0

Anything else?

image image image image

Sh4d0wHunt3rX avatar Sep 05 '24 12:09 Sh4d0wHunt3rX

It's limited by resource - https://stackoverflow.com/questions/32042048/go-runtime-program-exceeds-10000-thread-limit, it's simply not possible to run that much of template.

ehsandeep avatar Sep 05 '24 15:09 ehsandeep

It's possible via:

debug.SetMaxThreads(...)

Probably we can add this to utils

Mzack9999 avatar Sep 05 '24 15:09 Mzack9999

similar situation turned out to be a issue with setup/os rather than nuclei https://github.com/orgs/projectdiscovery/discussions/4767

tarunKoyalwar avatar Nov 12 '24 23:11 tarunKoyalwar