Infinite restart loop when daemon crashes
On Ubuntu, using Tor from the official PPA, when the Tor daemon crashes (im my case because of this bug https://trac.torproject.org/projects/tor/ticket/23693), it is automatically restarted.
As a result Tor uses 100% CPU continuously because of its hopeless start->crash->start->crash... behavior.
A better behavior could be to detect the crash (SIGSEV, SIGABRT...) from the process return code and do not restart in that case.
The crash-restart loop behavior can also be dangerous security wise, because for example exploits against ASLR have a framework to do brute force attacks if the process automatically restarts.
I could not understand where this behavior comes from in the code, because the systemd service file in /lib/systemd/system/tor.service seem to be empty.