Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #9258

Closed (moved)
Open
Opened Jul 15, 2013 by weasel (Peter Palfrader)@weasel

Breaks in non-obvious ways when control socket path has no slashes

Hi,

I made a torrc and I wanted to run tor with it but it didn't work and didn't say why:

weasel@defiant:~/tmp/tor$ tor -f torrc 
Jul 15 10:39:06.382 [notice] Tor v0.2.4.14-alpha (git-da7587e870f422a6) running on Linux with Libevent 2.0.19-stable and OpenSSL 1.0.1e.
Jul 15 10:39:06.382 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 15 10:39:06.383 [notice] This version is not a stable Tor release. Expect more bugs than usual.
Jul 15 10:39:06.383 [notice] Read configuration file "/home/weasel/.temp/2013-06-28/tor/torrc".
Jul 15 10:39:06.390 [notice] Opening Socks listener on 127.0.0.1:9913
Jul 15 10:39:06.390 [notice] Closing partially-constructed Socks listener on 127.0.0.1:9913
Jul 15 10:39:06.391 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Jul 15 10:39:06.391 [err] Reading config failed--see warnings above.

My torrc:

DataDirectory .
SocksPort 9913
PidFile pid
log debug stderr
SafeLogging 0
ControlSocket sock
StrictNodes 1

Turns out that in get_parent_directory, called via retry_listener_ports connection_listener_new check_location_for_unix_socket get_parent_directory the path "sock" gets rejected, but nobody bothers logging about it.

connection_listener_new returns a NULL conn and we tear down stuff again.

It works if I specify ControlSocket ./sock.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.5.x-final
Milestone
Tor: 0.2.5.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#9258