<p>Have you set a proxy?</p>

<p>From my experience slow shutdown seems to have to do with slow proxies (for example, Tor).
There is an issue for this: <a href="https://github.com/bitcoin/bitcoin/issues/2954" rel="nofollow">https://github.com/bitcoin/bitcoin/issues/2954</a></p>

<p>If it is not the network thread that hangs, but database synchronization, then killing with -9 can be dangerous. </p>

<p>I'd suggest debugging this by running in gdb, Ctrl-Cing when it hangs, and then getting backtraces for every still-running thread.</p>

CC BY-SA 3.0
2014-03-17T18:34:14.590Z
No, no proxies.
Tony
CC BY-SA 3.0
2014-03-17T15:28:14.243Z
2014-03-17T15:28:14.243Z
laanwj
<p>I am running Ubuntu 12.04. When I close bitcoin-qt (or any of its derivatives, like litecoin-qt or dogecoin-qt), sometimes it does not completely exit. I then have to run <code>killall -9 bitcoin-qt</code>, or sometimes when even that doesn't work, <code>killall -9 bitcoin-shutoff</code> (apparently the client calls a <code>bitcoin-shutoff</code> process to shut itself down). I am wondering if there is a fix for this, to prevent the client from refusing to close in the future.</p>

CC BY-SA 3.0
2014-03-19T17:13:55.653Z
When you check your processes - does it appear as zombie? Does it respond to plain "kill" or remains unresponsive unless you go with "kill -9"?
Joe Pineda
CC BY-SA 3.0
2014-03-19T22:47:22.563Z
It does not respond to kill, only kill -9.
Tony
CC BY-SA 3.0
2014-08-31T12:05:22.577Z
you need to post debug log, so we can understand what's up with client
rustylife
<bitcoin-core><linux><litecoin-qt>
Qt client not exiting on Linux
Tony
# Qt client not exiting on Linux

(Asked by: username_0 on 2014-03-17)

I am running Ubuntu 12.04. When I close bitcoin-qt (or any of its derivatives, like litecoin-qt or dogecoin-qt), sometimes it does not completely exit. I then have to run `killall -9 bitcoin-qt`, or sometimes when even that doesn't work, `killall -9 bitcoin-shutoff` (apparently the client calls a `bitcoin-shutoff` process to shut itself down). I am wondering if there is a fix for this, to prevent the client from refusing to close in the future.

**Tags:** bitcoin-core, linux, litecoin-qt

> **Comments:**
> **username_1**: When you check your processes - does it appear as zombie? Does it respond to plain "kill" or remains unresponsive unless you go with "kill -9"?  
> **username_0**: It does not respond to kill, only kill -9.  
> **username_2**: you need to post debug log, so we can understand what's up with client  

---

## 1 answers

### Answer by username_3 on 2014-03-17. Score: 1

Have you set a proxy?

From my experience slow shutdown seems to have to do with slow proxies (for example, Tor).
There is an issue for this: <https://github.com/bitcoin/bitcoin/issues/2954>

If it is not the network thread that hangs, but database synchronization, then killing with -9 can be dangerous.

I'd suggest debugging this by running in gdb, Ctrl-Cing when it hangs, and then getting backtraces for every still-running thread.

> **Comments:**
> **username_0**: No, no proxies.  

---

