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
Downloads broken in tor-0.2.4.10-alpha #117
Comments
|
So, it looks like the fileclient has a socks connection error on the first download, which starts at virtual time 0:25:0:0. Before creating the circuit for the web server download, the router connects to a directory mirror, downloads and verifies the consensus, and then prints this: Thats the last activity at the client until 120 seconds later, when this is printed: @kloesing any ideas? Did a microdescriptor circuit policy change or something? |
|
I can reproduce the problem, but unfortunately I don't have any good ideas for fixing it. A few thoughts:
|
|
FYI, I'm not getting CIRC FAILED or the make_socket_reuseable warnings on tor-0.2.4.10-alpha, which is where the problem first appeared. |
|
I narrowed down the problem to the changes between b415aba (works fine) and dfbd19d (first commit that doesn't work anymore): https://gitweb.torproject.org/gitweb.pl?p=tor.git;a=commitdiff;hp=b415aba;h=dfbd19d The MaxOnionsPending torrc option has been replaced by the MaxOnionQueueDelay option. (Unfortunately, setting MaxOnionQueueDelay in all torrc's didn't do the trick. Would have been too easy.) When I run dfbd19d, I get lots of CIRC FAILED events with REMOTE_REASON=RESOURCELIMIT or with REASON=NOPATH. I uploaded the scallion.log file here: https://people.torproject.org/~karsten/volatile/scallion-dfbd19d-2013-05-14.log.gz Is there maybe anything in the diff that affects Shadow but does not affect normal execution outside of Shadow? I can apply any patch to dfbd19d that you think might fix the problem. |
the cpuworker implementation slightly changed again. this adds support for those changes in scallion. its best to use this on tor-0.2.4.12-alpha and later, as tor-0.2.4.10-alpha and tor-0.2.4.11-alpha are known to have bugs that break shadow. refs #117
|
Thanks @kloesing !! Your last comment gave me the perfect information to develop a fix:-) I verified that shadow at commit 8c1c194 works again with tor-0.2.4.12-alpha. (tor-0.2.4.10-alpha and tor-0.2.4.11-alpha both have the "UseEntryGuardsAsDirGuards 0" problem, so I was planning to ignore them.) I also verified that it was fixed with Tor at commit dfbd19d, but in that case you'll need to make the following changes: diff --git a/src/plugins/scallion/CMakeLists.txt b/src/plugins/scallion/CMakeLists.txt
index 3b4f274..d5d94c1 100644
--- a/src/plugins/scallion/CMakeLists.txt
+++ b/src/plugins/scallion/CMakeLists.txt
@@ -39,9 +39,9 @@ endif()
# version >= 0.2.4.10
if((${TOR_VERSION_A} EQUAL 0 AND ${TOR_VERSION_B} EQUAL 2 AND ${TOR_VERSION_C} EQUAL 4 AND ${TOR_VERSION_D} GREATER 9) OR
(${TOR_VERSION_A} GREATER -1 AND ${TOR_VERSION_B} GREATER 1 AND ${TOR_VERSION_C} GREATER 4))
- add_definitions(-DSCALLION_USEV2CPUWORKERTIMING)
- message(STATUS "Added definition SCALLION_USEV2CPUWORKERTIMING")
endif()
+add_definitions(-DSCALLION_USEV2CPUWORKERTIMING)
+message(STATUS "Added definition SCALLION_USEV2CPUWORKERTIMING")
# version >= 0.2.4.11
if((${TOR_VERSION_A} EQUAL 0 AND ${TOR_VERSION_B} EQUAL 2 AND ${TOR_VERSION_C} EQUAL 4 AND ${TOR_VERSION_D} GREATER 10) OR
(${TOR_VERSION_A} GREATER -1 AND ${TOR_VERSION_B} GREATER 1 AND ${TOR_VERSION_C} GREATER 4))Can you double check my fix? Then we can close this issue. |
|
Hooray! Yes, I can confirm that the issue is fixed now. Feel free to close the issue! Thanks. :) |
In the minimal experiment, the client is unable to complete any downloads starting with 0.2.4.10-alpha (including master), where this worked fine on 0.2.4.9-alpha and earlier.
This should produce an output of
10indicating the client successfully downloaded 10 files as instructed.The text was updated successfully, but these errors were encountered: