---
id: 1812
title: "Discovering goroutine leaks with Semgrep"
source_domain: blog.trailofbits.com
source_url: "https://blog.trailofbits.com/2021/11/08/discovering-goroutine-leaks-with-semgrep/"
published_at: "2021-11-09T04:28:45Z"
tags: ["go", "static-analysis", "concurrency", "code-audit", "semgrep", "goroutine-leaks"]
phying_url: "https://phying.com/item/1812"
lang: en
---

# Discovering goroutine leaks with Semgrep

## Summary

Go's go keyword makes concurrency easy but leaks silently: thousands of hanging goroutines can slow or crash an app. This post shares a Semgrep rule that catches a common goroutine leak pattern.

## Intelligence Metadata

- **Sources:** blog.trailofbits.com
- **Published:** 2021-11-09T04:28:45Z
- **Original:** https://blog.trailofbits.com/2021/11/08/discovering-goroutine-leaks-with-semgrep/
- **Phying News:** https://phying.com/item/1812
