Opened 4 years ago

Closed 4 years ago

#18335 closed defect (duplicate)

arm crashes after Tor update to 0.2.7.6

Reported by: torland Owned by:
Priority: Medium Milestone:
Component: Core Tor/Tor Version: Tor: 0.2.7.6
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Hi,

I just updated Tor to 0.2.7.6. When I connected arm, it crashed with the following backtrace

user@host:~$ arm -i 127.0.0.1:5678
Traceback (most recent call last):

File "/usr/share/arm/starter.py", line 534, in <module>

controller.init(conn)

File "/usr/share/arm/util/torTools.py", line 670, in init

self._exitPolicyChecker = self.getExitPolicy()

File "/usr/share/arm/util/torTools.py", line 1345, in getExitPolicy

result = ExitPolicy(entry, result)

File "/usr/share/arm/util/torTools.py", line 2611, in init

self.ipAddressBin += "".join([str((int(octet) >> y) & 1) for y in range(7, -1, -1)])

ValueError: invalid literal for int() with base 10: 'abcd'

The tor instance is IPv6 enabled and in my exit policy there are reject6 entries:

ExitPolicy reject6 abcd::123:4567:89ab:cdef/64:*

After commenting the line the crash disappeared.

Thanks/Regards

torland

Child Tickets

Change History (1)

comment:1 Changed 4 years ago by atagar

Resolution: duplicate
Status: newclosed

Arm predates IPv6 support so no surprise at all that it's sad. Next release of arm which should be in a few months is modernizing it. This particular gotcha is still an issue, but we have another ticket to track it...

https://trac.torproject.org/projects/tor/ticket/16053

Note: See TracTickets for help on using tickets.