Skip to content

CRITICAL: Goroutine leak in lifecycle_worker - missing wg.Done() #676

Description

@poyrazK

Why is this an issue?

In internal/workers/lifecycle_worker.go:41-45, the startup goroutine does not call wg.Done(), causing a goroutine leak.

What is causing it?

wg.Add(1)
go func() {
    defer wg.Done()  // MISSING
    w.processRules(ctx)
}()

How can it be solved?

Add defer wg.Done() inside the goroutine.

Category

  • Small
  • Medium
  • Large

Severity

  • Low
  • Medium
  • High
  • Critical

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions