[tor-bugs] #11090 [Torsocks]: torsocks should log errors to stderr and not stdout

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 25 14:41:27 UTC 2015


#11090: torsocks should log errors to stderr and not stdout
---------------------------+----------------------
     Reporter:  infinity0  |      Owner:  dgoulet
         Type:  defect     |     Status:  assigned
     Priority:  normal     |  Milestone:
    Component:  Torsocks   |    Version:
   Resolution:             |   Keywords:
Actual Points:             |  Parent ID:
       Points:             |
---------------------------+----------------------
Changes (by intrigeri):

 * owner:  intrigeri => dgoulet


Comment:

 OK, I can reproduce that. Thanks!

 On current Debian unstable, after breaking torsocks.conf like infinity0
 did:


 {{{
 $ torsocks gpg --recv-keys A63BB098
 gpg: requesting key A63BB098 from hkps server hkps.pool.sks-keyservers.net
 [Apr 25 16:34:44] PERROR torsocks[1923]: socks5 libc connect: Connection
 refused (in socks5_connect() at socks5.c:185)
 gpgkeys: HTTP fetch error 6: Could not resolve host: hkps.pool.sks-
 keyservers.net
 gpg: no valid OpenPGP data found.
 gpg: Total number processed: 0
 toto at sid-desktop:~$ torsocks gpg --recv-keys A63BB098 2>/dev/null
 [Apr 25 16:34:54] PERROR torsocks[1927]: socks5 libc connect: Connection
 refused (in socks5_connect() at socks5.c:185)
 gpgkeys: HTTP fetch error 6: Could not resolve host: hkps.pool.sks-
 keyservers.net
 }}}

 and:

 {{{
 $ torsocks gpg --recv-keys A63BB098 2>/dev/null
 [Apr 25 16:37:50] PERROR torsocks[2168]: socks5 libc connect: Connection
 refused (in socks5_connect() at socks5.c:185)
 gpgkeys: HTTP fetch error 6: Could not resolve host: hkps.pool.sks-
 keyservers.net
 }}}

 So it looks like both torsocks and gpgkeys send some error output to
 stdout, and parcimonie isn't at fault here => reassigning to David.

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


More information about the tor-bugs mailing list