Deadlog
almost drop-in mutex for debugging Go deadlocks
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
I've done this same println debugging thing so many times, along with some sed/awk stuff to figure out which call was causing the issue. Now it's a small Go package.With some `runtime.Callers` I can usually find the spot by just swapping the existing Mutex or RWMutex for this one.Sometimes I switch the mu.Lock() defer mu.Unlock() with the LockFunc/RLockFunc to get more detail defer mu.LockFunc()() I almost always initialize it with `deadlog.New(deadlog.WithTrace(1))` and that's plenty.Not the most polished library, but it's not supposed to land in any commit, just a temporary debugging aid. I find it useful.
HN · launched Feb 10, 2026 · 30 upvotes (top 26%) · 0 views
Niche: software debugging tools · 80 launches, 5 in the last 7 days ▼ -50% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 80 launches in software debugging tools →
Could you build this?
Yes It is a small Go debugging package that wraps sync.Mutex and sync.RWMutex with runtime stack trace captures to identify deadlocks.
Discussion
1 comment analyzed.
Competitors mentioned: synctest
Competitors
Other products that read as similar to this one : 99 launches clear the similarity bar, closest 8 shown.
Attention rank: #33 of 100 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 98 days after the earliest competitor.
- dllog · github · 2026-09-11 · 7 upvotes · similarity 0.52
- Fatal Core Dump · hn · 2026-03-14 · 68 upvotes · similarity 0.46
- Logged · ph · 2026-10-22 · 2 upvotes · similarity 0.43
- I built a post-mortem debugger for native Windows x64/x86 crashes · hn · 2026-09-23 · 37 upvotes · similarity 0.40
- lockwatch · github · 2026-09-30 · 9 upvotes · similarity 0.38
- C++, Java and C# light-weight-logger · hn · 2026-06-30 · 12 upvotes · similarity 0.38
- deadlock-rpocket-team-server-orchestrator · github · 2026-10-26 · 56 upvotes · similarity 0.37
- Should · hn · 2026-04-21 · 8 upvotes · similarity 0.37
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.