[tor-bugs] #18079 [Stem]: stem can't parse output of resolver "ss -nput"

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jan 24 06:31:00 UTC 2016


#18079: stem can't parse output of resolver "ss -nput"
--------------------+--------------------------
 Reporter:  toralf  |          Owner:  atagar
     Type:  defect  |         Status:  reopened
 Priority:  Medium  |      Milestone:
Component:  Stem    |        Version:
 Severity:  Normal  |     Resolution:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
  Sponsor:          |
--------------------+--------------------------

Comment (by cypherpunks):

 Replying to [comment:10 atagar]:
 > The local address looks fine, but the remote is **2001:858:2:2:aabb** on
 port 44811. Am I missing something or it that missing quite a few digits?

 You are missing that netstat is a butt-ugly shitty fossil. Seriously, just
 look at the code if you dare.

 And yes it's missing digits. This is because netstat cannot into variable-
 length columns: it truncates ip:port to 22 chars (actually it truncates
 "ip" then appends ":port"). *facepalm*

 For quite a while Debian carried a patch that added option "-W|--wide"
 (off by default) that prevented the truncation. I believe it was merged
 upstream at some point. Not sure what the situation was/is on Gentoo;
 maybe toralf just needs to add "-W" to his command line.

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


More information about the tor-bugs mailing list