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: File Already Closed Error in Nuclei v3.3.5 with Stats Tag #5773

Closed
1 task done
dogancanbakir opened this issue Oct 26, 2024 · 0 comments · Fixed by #5774
Closed
1 task done

Panic: File Already Closed Error in Nuclei v3.3.5 with Stats Tag #5773

dogancanbakir opened this issue Oct 26, 2024 · 0 comments · Fixed by #5774
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone

Comments

@dogancanbakir
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

$ go run -tags=stats . -u honey.scanme.sh -stats 

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.3.5

                projectdiscovery.io

[INF] Current nuclei version: v3.3.5 (latest)
[INF] Current nuclei-templates version: v10.0.2 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 68
[INF] Templates loaded for current scan: 8655
[INF] Executing 8456 signed templates from projectdiscovery/nuclei-templates
[WRN] Loading 199 unsigned templates for scan. Use with caution.
[INF] Targets loaded for current scan: 1
[INF] Running httpx on input host
[INF] Found 1 URL from httpx
[INF] Templates clustered: 1615 (Reduced 1518 Requests)
panic: write nuclei-stats-20241027002356/events.jsonl: file already closed

goroutine 9445 [running]:
github.com/projectdiscovery/nuclei/v3/pkg/scan/events.(*ScanStatsWorker).AddScanEvent(0x14009c229f0, {{0x0, 0x0}, {0x102960c60, 0x4}, {0x14002a83a90, 0xc}, {0x140000e12c0, 0x42}, 0x1, ...})
        /Users/dogancanbakir/Projects/nuclei/pkg/scan/events/stats_build.go:71 +0x13c
github.com/projectdiscovery/nuclei/v3/pkg/scan/events.AddScanEvent(...)
        /Users/dogancanbakir/Projects/nuclei/pkg/scan/events/stats_build.go:80
github.com/projectdiscovery/nuclei/v3/pkg/tmplexec.(*TemplateExecuter).Execute(0x14003897f00, 0x1401f53f680)
        /Users/dogancanbakir/Projects/nuclei/pkg/tmplexec/exec.go:104 +0x184
github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeAllSelfContained.func1(0x1400786a008)
        /Users/dogancanbakir/Projects/nuclei/pkg/core/executors.go:38 +0x128
created by github.com/projectdiscovery/nuclei/v3/pkg/core.(*Engine).executeAllSelfContained in goroutine 1
        /Users/dogancanbakir/Projects/nuclei/pkg/core/executors.go:24 +0x48
exit status 2

Expected Behavior

no panic

Steps To Reproduce

go run -tags=stats . -u honey.scanme.sh -stats

Relevant log output

No response

Environment

  • OS:
  • Nuclei:
  • Go:

Anything else?

No response

@dogancanbakir dogancanbakir added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 26, 2024
@dogancanbakir dogancanbakir self-assigned this Oct 26, 2024
@ehsandeep ehsandeep added this to the Nuclei v3.3.6 milestone Oct 28, 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.

2 participants