[tor-bugs] #7704 [Tor]: Tor NT service: control request exceptions

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Dec 11 16:15:37 UTC 2012


#7704: Tor NT service: control request exceptions
-------------------------------------------------------+--------------------
 Reporter:  AdamColligan                               |          Owner:               
     Type:  defect                                     |         Status:  new          
 Priority:  minor                                      |      Milestone:               
Component:  Tor                                        |        Version:  Tor: 0.2.3.25
 Keywords:  NT, service, exception, mapaddress, torrc  |         Parent:               
   Points:                                             |   Actualpoints:               
-------------------------------------------------------+--------------------
 Setup:
 -Tor expert (0.2.3.25-win32-1)
 -Win7 Ultimate x64
 -Deviations from default config are multiple SOCKS Ports and one mapped
 .onion address

 ---------

 Error configuration A:
 -No running tor processes

 -Command (in elevated CMD): "tor --service install -options socksport ####
 socksport #### [...] mapaddress 10.40.40.40 somehiddenservice.onion
 -Result: "Service installed successfully
 Service failed to start : An exception occurred in the service when
 handling the control request."

 Alternately -
 -Command (in elevated CMD): "tor --service install -options socksport ####
 socksport #### [... NO mapaddress option appended]
 -Result: Service installs and runs successfully and listens on all
 requested SOCKS ports.

 ---------

 Error configuration B:
 -No running tor processes

 -Pre-customized torrc file is located at the end of the paths specified.
 In this case, it does not make a difference whether the torrc contains
 only extra SOCKSPort lines or also contains the mapaddress line.

 -Command (in elevated CMD): "tor --service install -options -f
 C:\users\personalusername\appdata\roaming\tor\torrc"
 -Result: "Service installed successfully
 Service failed to start : An exception occurred in the service when
 handling the control request."

 or

 -Command (in elevated CMD): "tor --service install -options -f C:\torrc"
 -Result: "Service installed successfully
 Service failed to start : An exception occurred in the service when
 handling the control request."

 Alternately -
 -Command (in elevated CMD): "tor --service install -options -f
 C:\users\default\appdata\roaming\tor\torrc"
 -Result: Service installs and runs successfully, including listening on
 all requested SOCKS Ports and successfully mapping the .onion address.

 ---------

 Conclusions:
 (1) The Tor NT service apparently cannot start due to a control exception
 if there is a mapaddress option appended to the installation command.
 (2) The Tor NT service apparently cannot start due to a control exception
 if it is directed to a torrc file anywhere other than the "default" user's
 appdata folder, regardless of the contents of the torrc.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7704>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list