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: sync: WaitGroup is reused before previous Wait has returned #5167

Closed
oscarintherocks opened this issue May 10, 2024 · 0 comments · Fixed by #5168
Closed

panic: sync: WaitGroup is reused before previous Wait has returned #5167

oscarintherocks opened this issue May 10, 2024 · 0 comments · Fixed by #5168
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone

Comments

@oscarintherocks
Copy link
Contributor

Nuclei version:

3.2.6

Current Behavior:

Getting panic error:

{"duration":"1:02:30","errors":"10183","hosts":"706","matched":"248","percent":"1","requests":"164712","rps":"43","startedAt":"2024-05-10T03:05:36.132371577+02:00","templates":"7906","total":"8894188"}
 panic: sync: WaitGroup is reused before previous Wait has returned
 
 goroutine 1154 [running]:
 sync.(*WaitGroup).Wait(0x2316fe9?)
 	sync/waitgroup.go:118 +0x74
 github.com/projectdiscovery/utils/sync.(*AdaptiveWaitGroup).Wait(...)
 	github.com/projectdiscovery/utils@v0.0.92/sync/adaptivewaitgroup.go:89
 github.com/projectdiscovery/nuclei/v3/pkg/core.(*WorkPool).Wait(0xc000e975c0)
 	github.com/projectdiscovery/nuclei/v3/pkg/core/workpool.go:48 +0x25
 github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeTemplatesOnTarget(0xc0013d8900, {0x35b7598?, 0x4d6ede0}, {0xc009042000, 0x15fe, 0x0?}, 0xc001062900, 0xc005e4c0ec)
 	github.com/projectdiscovery/nuclei/v3/pkg/core/executors.go:213 +0x225
 github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeHostSpray.func1.1(0x5?)
 	github.com/projectdiscovery/nuclei/v3/pkg/core/execute_options.go:157 +0x6f
 created by github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeHostSpray.func1 in goroutine 1
 	github.com/projectdiscovery/nuclei/v3/pkg/core/execute_options.go:155 +0x1a5

Running with this config (only relevant parts shared):

# Rate Limit configuration
rate-limit: 150 # requests/sec
bulk-size: 50 # Max Number of targets to scan in parallel
concurrency: 100 # Max Number of templates to use in parallel while scanning

# Optimizations
timeout: 3
retries: 1
max-host-error: 10
stream: true # start elaborating without sorting the input
scan-strategy: host-spray # Scan Strategy to Use (auto/host-spray/template-spray)

# Debug - Enable only if errors detected
hang-monitor: true

Expected Behavior:

Don get the panic error or handle the error to don't stop the scan

Steps To Reproduce:

scan launched with severity: critical,high,medium,low,info,unknown with 706 hosts

Anything else:

Maybe related to #3140

@oscarintherocks oscarintherocks added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label May 10, 2024
@Mzack9999 Mzack9999 self-assigned this May 10, 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.

3 participants