From 479cd376d2733d1a1155377a929b74014bdc031b Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Mon, 27 Mar 2017 14:29:30 +1000 Subject: [PATCH] developing: Add advice for debugging hangs --- DEVELOPING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DEVELOPING.md b/DEVELOPING.md index b5bf9dc3..33f921c0 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -34,3 +34,12 @@ https://github.com/DanielOaks/irc-stress-test As well, there's a decent set of 'tests' here, which I like to run Oragono through now and then: https://github.com/DanielOaks/irctest + + +## Debugging Hangs + +To debug a hang, the best thing to do is to get a stack trace. Go's nice, and you can do so by running this: + + $ kill -ABRT + +This will kill Oragono and print out a stack trace for you to take a look at.