This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 973
Tor process remains alive after crash #14636
Labels
feature/tor
OS/macOS
priority/P2
Crashes. Loss of data. Severe memory leak.
QA/checked-macOS
QA/test-plan-specified
release/not-blocking
release-notes/include
Milestone
Comments
We made some attempt to kill the process, but apparently the Chromium @darkdh We need some way to make sure the process gets killed on macOS too. |
Also we handle it in normal exit by |
We will see if a signal handler in the utility process is enough to make sure we kill the tor process. |
Note for QA, this can only reproduce on Mac but you can always check on platforms
|
alexwykoff
modified the milestones:
0.23.x Release 5,
0.23.x Release 4 w/ Chromium 68 (BETA Channel)
Jul 17, 2018
srirambv
added
QA/checked-Win64
QA/test-plan-specified
and removed
QA/checked-Win64
labels
Jul 21, 2018
darkdh
added a commit
to brave/muon
that referenced
this issue
Jul 25, 2018
…lity process fix brave/browser-laptop#14636 SuicideOnChannelErrorFilter calls exit in OnChannelError() this will cause other endpoints listener can't finish their cleanup when pipe error happens(browser process crashed or be killed) and SuicideOnChannelErrorFilter::OnChannelError happens to be called before others. This should be fine for most of the cases but not tor_launcher service. `TorLauncher` requires StrongBinding::OnConnectionError to delete itself so that `~TorLauncher` will get called and terminate tor process. This should only happens on MacOS, SuicideOnChannelErrorFilter is guarded by OS_POSIX and Linux has `prctl(PR_SET_PDEATHSIG, SIGKILL)` so tor process will receive SIGKILL when tor_launcher utility process terminates prematurely Auditors: @riastradh-brave, @bridiver, @bbondy
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
feature/tor
OS/macOS
priority/P2
Crashes. Loss of data. Severe memory leak.
QA/checked-macOS
QA/test-plan-specified
release/not-blocking
release-notes/include
Test plan
See #14636 (comment)
Description
I just had my Brave installation crash and realized it wouldn't make any connection to the Tor network on startup anymore. Took a quick look at the processes alive, and surely enough, tor was still sitting there. Unfortunately, I haven't had a chance to look at the code but I'm blind guessing when the browser is re-launched, it doesn't look to see if the tor process was properly killed or if it's still running and attach to it, instead of trying to re-run the same instance of tor, most likely resulting in the "Tor is already running" error but the browser wouldn't know what to do with it. Again, just blind guessing before actually reading the code :)
Steps to Reproduce
Actual result:
Brave returns error as if we weren't able to connect to the Tor network, while firewall shows Tor is communicating with the network and is alive. Clicking on "retry Tor connection" doesn't fix it either.
Expected result:
Reproduces how often:
Only tried it once.
Brave Version
The text was updated successfully, but these errors were encountered: