[tor-bugs] #33924 [Core Tor/Tor]: Tor beginning with 0.4.1 seems to ignore SIGNAL SHUTDOWN on iOS
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Apr 21 14:07:45 UTC 2020
#33924: Tor beginning with 0.4.1 seems to ignore SIGNAL SHUTDOWN on iOS
--------------------------+------------------------------------
Reporter: tla | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.4.4.x-final
Component: Core Tor/Tor | Version: Tor: 0.4.1.5
Severity: Major | Resolution:
Keywords: backport? | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+------------------------------------
Comment (by tla):
With Tor 0.4.0.6:
{{{
Apr 21 15:59:50.160 [notice] Tor 0.4.0.6 (git-39344e410dca1dd4) running on
Darwin with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma
5.2.5, and Libzstd N/A.
...
[OnionManager] #stopTor
[Tor debug] conn_read_callback: socket 22 wants to read.
[Tor debug] read_to_chunk: Read 19 bytes. 19 on inbuf.
[Tor info] Interrupt: exiting cleanly.
Apr 21 16:00:02.000 [notice] Interrupt: exiting cleanly.
[Tor debug] pathbias_count_circs_in_states: Found opened circuit 2 in
path_state build succeeded
[Tor debug] pathbias_count_circs_in_states: Found opened circuit 3 in
path_state build succeeded
[Tor debug] pathbias_count_circs_in_states: Found opened circuit 4 in
path_state build succeeded
[Tor debug] pathbias_count_circs_in_states: Found opened circuit 5 in
path_state build succeeded
[Tor debug] pathbias_count_circs_in_states: Found opened circuit 6 in
path_state build succeeded
[Tor debug] tor_rename: Renaming
/Users/berhart/Library/Developer/CoreSimulator/Devices/9A372026-08DE-
4A3A-B991-C22918F0CAA5/data/Containers/Data/Application/0A10C106-1A8A-4674-BB70-6487F63D37EB/Library/Caches/tor/state.tmp
to /Users/berhart/Library/Developer/CoreSimulator/Devices/9A372026-08DE-
4A3A-B991-C22918F0CAA5/data/Containers/Data/Application/0A10C106-1A8A-4674-BB70-6487F63D37EB/Library/Caches/tor/state
[Tor info] or_state_save: Saved state to
"/Users/berhart/Library/Developer/CoreSimulator/Devices/9A372026-08DE-
4A3A-B991-C22918F0CAA5/data/Containers/Data/Application/0A10C106-1A8A-4674-BB70-6487F63D37EB/Library/Caches/tor/state"
[Tor info] circuit_free_: Circuit 0 (id: 2) has been freed.
[Tor info] circuit_free_: Circuit 0 (id: 6) has been freed.
[Tor info] circuit_free_: Circuit 0 (id: 5) has been freed.
[Tor info] circuit_free_: Circuit 0 (id: 4) has been freed.
[Tor info] circuit_free_: Circuit 0 (id: 3) has been freed.
[Tor debug] channel_tls_free_all: Shutting down TLS channels...
[Tor debug] channel_tls_free_all: Done shutting down TLS channels
[Tor debug] channel_free_all: Shutting down channels...
[Tor debug] channel_free_list: Cleaning up channel 0x7fd7e3a2e740 (global
ID 1) in state open (2)
[Tor debug] channel_remove_from_digest_map: Removed channel 0x7fd7e3a2e740
(global ID 1) from identity map in state open (2) with digest
92173C9F108197460307969D353333DACE9B9F09
[Tor debug] channel_mark_for_close: Closing channel 0x7fd7e3a2e740 (global
ID 1) by request
[Tor debug] channel_change_state_: Changing state of channel
0x7fd7e3a2e740 (global ID 1) from "open" to "closing"
[Tor debug] free_socket_info_by_chan: scheduler free socket info for
chan=1
[Tor debug] free_socket_info_by_ent: Freeing socket table entry from
chan=1
[Tor debug] scheduler_set_channel_state: chan 1 changed from scheduler
state WAITING_FOR_CELLS to IDLE
[Tor debug] connection_mark_for_close_internal_: Calling
connection_mark_for_close_internal_() on an OR conn at
src/core/or/connection_or.c:1623
[Tor debug] channel_force_xfree: Force-freeing channel 1 at 0x7fd7e3a2e740
[Tor debug] scheduler_set_channel_state: chan 1 changed from scheduler
state IDLE to IDLE
[Tor debug] channel_clear_remote_end: Clearing remote endpoint identity on
channel 0x7fd7e3a2e740 with global ID 1
[Tor debug] circuitmux_free_: Freeing cmux at 0x600003ffc050 with no
queued destroys, the cmux destroy balance was 0, global is 0
[Tor debug] channel_free_all: Freeing channel_identity_map
[Tor debug] channel_free_all: Freeing channel_gid_map
[Tor debug] channel_free_all: Done cleaning up after channels
[Tor debug] connection_free_minimal: closing fd 15.
[Tor debug] connection_free_minimal: closing fd 16.
[Tor debug] connection_free_minimal: closing fd 22.
[Tor debug] scheduler_free_all: Shutting down scheduler
[Tor info] tor_lockfile_unlock: Unlocking
"/Users/berhart/Library/Developer/CoreSimulator/Devices/9A372026-08DE-
4A3A-B991-C22918F0CAA5/data/Containers/Data/Application/0A10C106-1A8A-4674-BB70-6487F63D37EB/Library/Caches/tor/lock"
[Tor debug] subsystems_shutdown_downto: Shutting down btrack
[Tor debug] subsystems_shutdown_downto: Shutting down ocirc_event
[Tor debug] subsystems_shutdown_downto: Shutting down orconn_event
[Tor debug] subsystems_shutdown_downto: Shutting down process
[Tor debug] subsystems_shutdown_downto: Shutting down crypto
[Tor debug] subsystems_shutdown_downto: Shutting down network
[Tor debug] subsystems_shutdown_downto: Shutting down log
-> End
}}}
With Tor 0.4.2.7:
{{{
Apr 21 16:03:53.161 [notice] Tor 0.4.2.7 (git-74cad14699087b7e) running on
Darwin with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma
5.2.5, and Libzstd N/A.
...
[OnionManager] #stopTor
[Tor debug] conn_read_callback: socket 22 wants to read.
[Tor debug] read_to_chunk: Read 19 bytes. 19 on inbuf.
[Tor debug] conn_write_callback: socket 22 wants to write.
[Tor debug] conn_read_callback: socket 22 wants to read.
[Tor debug] read_to_chunk: Encountered eof on fd 22
[Tor info] connection_control_reached_eof: Control connection reached EOF.
Closing.
[Tor debug] conn_close_if_marked: Cleaning up connection (fd 22).
[Tor debug] connection_remove: removing socket 22 (type Control), n_conns
now 4
[Tor debug] connection_free_minimal: closing fd 22.
...
(and then: normal Tor operation continued)
}}}
Otherwise everything the same: Same libs, same way of calling signal
shutdown. Upper-/lowercase makes no difference, also arguments,
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33924#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list