Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#5796 closed defect (fixed)

Crashing Tor with SETCIRCUITPURPOSE

Reported by: mickeyc Owned by: aagbsn
Priority: High Milestone: Tor: 0.2.2.x-final
Component: Core Tor/Tor Version: Tor: 0.2.3.15-alpha
Severity: Keywords: tor-client
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I seem to be able to consistently crash Tor, with nothing being added to the log file by doing the following:

alfa:~# telnet localhost 9051
Trying 127.0.0.1...
Connected to localhost.
Escape character is ']'.
AUTHENTICATE
250 OK
EXTENDCIRCUIT 0
250 EXTENDED 24
SETCIRCUITPURPOSE 24 general
Connection closed by foreign host.
alfa:~# telnet localhost 9051
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
alfa:~#

Child Tickets

Change History (7)

comment:1 Changed 8 years ago by nickm

Component: TorctlTor Client

comment:2 Changed 8 years ago by nickm

Milestone: Tor: 0.2.2.x-final
Status: newneeds_review

Thanks for the bug report!

Possible fix in branch bug5796_022 in my public git repository. Needs review.

comment:3 Changed 8 years ago by arma

When I run that branch and say "setcircuitpurpose 11 general", it says nothing in return.

Seems like we want a connection_printf_to_buf() of some sort here too.

comment:4 Changed 8 years ago by nickm

Added a squash! commit. Better now?

comment:5 Changed 8 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed

Assuming so. Still looks ok to me. Merged and pushed.

comment:6 Changed 7 years ago by nickm

Keywords: tor-client added

comment:7 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.