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

runtime: detect zombie goroutines #5308

dvyukov opened this Issue Apr 17, 2013 · 4 comments


None yet
2 participants

dvyukov commented Apr 17, 2013

Runtime can detect goroutines blocked on unreachable chans/mutexes/etc and report such
This needs an interface in http/pprof to query zombie goroutines on running services.
And probably testing package integration to test for absence of zombie goroutines.

This comment has been minimized.


rsc commented Jul 30, 2013

Comment 1:

Sounds halting problem-esque to me.

Status changed to Invalid.


This comment has been minimized.


dvyukov commented Jul 30, 2013

Comment 2:

The idea is as follows:
Do GC-like scan of memory, but do not consider stacks of goroutines blocked on channels
as roots. If a channel is marked as reachable, make all goroutines blocked on it as
reachable and include their stacks into roots. At the end of the scan goroutines not
marked as reachable are reported as dead.
This can be extended to other synchronization primitives and timers (timer which Time
chan is not reachable other than from the timer is dead).

Status changed to Accepted.


This comment has been minimized.


rsc commented Dec 4, 2013

Comment 3:

Labels changed: added repo-main.


This comment has been minimized.


rsc commented Mar 3, 2014

Comment 4:

Adding Release=None to all Priority=Someday bugs.

Labels changed: added release-none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment