Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2019-01-28 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:  new
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 2016-bug-retrospective,  |  Actual Points:
  needs-insight needs-analysis maybe-logs-   |
  would-help |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by arma):

 {{{
 Jan 27 00:07:39.416 [notice] Tor 0.4.0.1-alpha (git-77712a5fa29f135e)
 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1a, Zlib 1.2.11,
 Liblzma N/A, and Libzstd N/A.
 [...]
 Jan 27 18:07:40.446 [notice] Heartbeat: Tor's uptime is 18:00 hours, with
 0 circuits open. I've sent 315 kB and received 2.75 MB.
 Jan 27 23:02:41.006 [notice] No user activity in a long time: becoming
 dormant.
 Jan 28 00:07:40.544 [notice] Heartbeat: Tor's uptime is 22:55 hours, with
 1 circuits open. I've sent 361 kB and received 4.01 MB.
 Jan 28 00:07:40.544 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 Jan 28 00:07:40.544 [notice]   #0 created at 2019-01-27 22:55:41. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Dirty since 2019-01-27 22:55:42 (4318 seconds vs 600-second
 cutoff).
 Jan 28 00:07:40.544 [notice] It has been 3906 seconds since I last called
 circuit_expire_old_circuits_clientside().
 Jan 28 06:07:40.640 [notice] Heartbeat: Tor's uptime is 22:55 hours, with
 1 circuits open. I've sent 361 kB and received 4.05 MB.
 Jan 28 06:07:40.640 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 Jan 28 06:07:40.640 [notice]   #0 created at 2019-01-27 22:55:41. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Dirty since 2019-01-27 22:55:42 (25918 seconds vs
 600-second cutoff).
 Jan 28 06:07:40.640 [notice] It has been 25506 seconds since I last called
 circuit_expire_old_circuits_clientside().
 }}}

 Running as just a standard client.

 For extra fun, I seem to still have an OR connection open, and be sending
 / receiving keepalive cells on it. Even though Tor said it was going
 dormant, is surprised that it still has a circuit open, etc.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2018-09-11 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:  new
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 2016-bug-retrospective,  |  Actual Points:
  needs-insight needs-analysis maybe-logs-   |
  would-help |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by mikeperry):

 If we fix this by closing edge connections when dirconns close, we
 shouldn't mark the edge conn, and instead use connection_edge_end(),
 because technically the other side will keep it open and we should be
 ready for half-opened cells (as per #25573 -- connection_edge_end() adds
 the stream id to the half-closed list)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2018-09-11 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:  new
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 2016-bug-retrospective,  |  Actual Points:
  needs-insight needs-analysis maybe-logs-   |
  would-help |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by mikeperry):

 This bug could be caused by the fact that we don't close underlying edge
 connections when the dirconn times out/closes. Then the circuit will
 always have a stream on it, and never close.

 This same issue applies to any HSDIR activity as well (since those are
 also linked dirconns).

 See also https://trac.torproject.org/projects/tor/ticket/27241#comment:8

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2018-02-22 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:  new
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 2016-bug-retrospective,  |  Actual Points:
  needs-insight needs-analysis maybe-logs-   |
  would-help |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by asn):

 Got it on my hsv3 HS:
 {{{
 Feb 22 09:53:43.000 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 Feb 22 09:53:43.000 [notice]   #0 created at 2018-02-22 09:20:08. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Not marked dirty.
 Feb 22 09:53:43.000 [notice] It has been 23 seconds since I last called
 circuit_expire_old_circuits_clientside().
 }}}

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2017-12-05 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:  new
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 2016-bug-retrospective,  |  Actual Points:
  needs-insight needs-analysis maybe-logs-   |
  would-help |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by cypherpunks):

 I use tor just as client (not a relay, not a HS service). Recently during
 my work with some HS I got it (linux, 64 bit, 0.3.1.9):

 {{{
 Dec 06 02:03:03.000 [notice] Heartbeat: Tor's uptime is XX:XX hours, with
 XX circuits open. I've sent XX.XX MB and received XX.XX GB.
 Dec 06 02:03:03.000 [notice] Average packaged cell fullness: 65.XXX%. TLS
 write overhead: 4%
 Dec 06 02:03:03.000 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 Dec 06 02:03:03.000 [notice]   #0 created at 2017-12-06 01:10:06. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Dirty since 2017-12-06 01:56:04 (4XX seconds vs 600-second
 cutoff).
 Dec 06 02:03:03.000 [notice] It has been 2 seconds since I last called
 circuit_expire_old_circuits_clientside().
 }}}

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2017-05-30 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:  new
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 2016-bug-retrospective,  |  Actual Points:
  needs-insight needs-analysis maybe-logs-   |
  would-help |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-
Changes (by nickm):

 * keywords:  tor-client, 2016-bug-retrospective =>
 tor-client, 2016-bug-retrospective, needs-insight needs-analysis
 maybe-logs-would-help
 * status:  needs_information => new


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2017-05-05 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:
 |  needs_information
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 025-triaged, |  Actual Points:
  027-triaged-1-out, 2016-bug-retrospective, |
  tor-03-unspecified-201612  |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by cypherpunks):

 I found this in my logs :

 {{{
 May 04 16:08:02.000 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 May 04 16:08:02.000 [notice]   #0 created at 2017-05-04 15:26:07. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Dirty since 2017-05-04 15:58:06 (596 seconds vs 600-second
 cutoff).
 May 04 16:08:02.000 [notice] It has been 23 seconds since I last called
 circuit_expire_old_circuits_clientside().
 }}}

 on Tor 0.3.1.0-alpha-dev (git-b8f7488e94f2cb83) ; tor client only on
 debian unstable 32bit.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2017-04-20 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:
 |  needs_information
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 025-triaged, |  Actual Points:
  027-triaged-1-out, 2016-bug-retrospective, |
  tor-03-unspecified-201612  |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by tom):

 I got some of these too on some eotk hidden service testing I've been
 doing.

 {{{
 Apr 19 03:02:40.000 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 Apr 19 03:02:40.000 [notice]   #0 created at 2017-04-19 02:29:44. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Not marked dirty.
 Apr 19 03:02:40.000 [notice] It has been 27 seconds since I last called
 circuit_expire_old_circuits_clientside().
 }}}

 This is on Tor version 0.2.9.10 (git-1f6c8eda0073f464).

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2017-03-29 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:
 |  needs_information
 Priority:  High |  Milestone:  Tor:
 |  unspecified
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 025-triaged, |  Actual Points:
  027-triaged-1-out, 2016-bug-retrospective, |
  tor-03-unspecified-201612  |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by s7r):

 Hmm this looks old but here's what I got today:
 {{{
 Mar 29 15:12:11.000 [notice] Diagnostic for issue 8387: Found 1 one-hop
 circuits more than 1800 seconds old! Logging 1...
 Mar 29 15:12:11.000 [notice]   #0 created at 2017-03-29 14:26:57. open,
 General-purpose client. Not marked for close. Package window: 1000. usable
 for new conns. Not marked dirty.
 Mar 29 15:12:11.000 [notice] It has been 3 seconds since I last called
 circuit_expire_old_circuits_clientside().
 }}}

 On Tor `0.3.0.2-alpha-dev (git-0f79fb51e5653cbc+f6d2aaa)`.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2016-11-08 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:
 |  needs_information
 Priority:  High |  Milestone:  Tor:
 |  0.2.???
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 025-triaged, |  Actual Points:
  027-triaged-1-out 2016-bug-retrospective   |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by teor):

 Replying to [comment:50 pastly]:
 > I'm getting output related to this ticket every heartbeat it looks like.
 Running 0294-alpha as a single onion service.
 >
 > The real-time up-to-date log is http://bh2lpa5qyawryvk2.onion/log
 >
 > Tor 0.2.9.4-alpha (git-8b0755c9bb296ae2) running on Linux with Libevent
 2.0.10-stable, OpenSSL 1.0.1t and Zlib 1.2.8.
 >
 > Snippit:
 >
 > {{{
 > ...
 > Nov 07 07:50:00.000 [notice] Diagnostic for issue 8387: Found 3 one-hop
 circuits more than 1800 seconds old! Logging 3...
 > Nov 07 07:50:00.000 [notice]   #0 created at 2016-11-06 23:49:39. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 > Nov 07 07:50:00.000 [notice]   #1 created at 2016-11-06 18:23:40. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 > Nov 07 07:50:00.000 [notice]   #2 created at 2016-11-07 05:29:55. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 > ...
 > }}}

 There was a time when only directory connections were one-hop, and they
 were expected to finish up quickly.

 With single onion services, the `Hidden service: Introduction point`
 circuits are intentionally long-term, one-hop circuits.

 I've split off this specific issue into #20613.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #8387 [Core Tor/Tor]: Unbuilt one-hop circuits sometimes hang around forever

2016-11-08 Thread Tor Bug Tracker & Wiki
#8387: Unbuilt one-hop circuits sometimes hang around forever
-+-
 Reporter:  mikeperry|  Owner:  nickm
 Type:  defect   | Status:
 |  needs_information
 Priority:  High |  Milestone:  Tor:
 |  0.2.???
Component:  Core Tor/Tor |Version:
 Severity:  Normal   | Resolution:
 Keywords:  tor-client, 025-triaged, |  Actual Points:
  027-triaged-1-out 2016-bug-retrospective   |
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+-

Comment (by pastly):

 I'm getting output related to this ticket every heartbeat it looks like.
 Running 0294-alpha as a single onion service.

 The real-time up-to-date log is http://bh2lpa5qyawryvk2.onion/log

 Tor 0.2.9.4-alpha (git-8b0755c9bb296ae2) running on Linux with Libevent
 2.0.10-stable, OpenSSL 1.0.1t and Zlib 1.2.8.

 Snippit:

 {{{
 Nov 07 07:50:00.000 [notice] Heartbeat: Tor's uptime is 9 days 11:59
 hours, with 10 circuits open. I've sent 38.40 MB and received 122.33 MB.
 Nov 07 07:50:00.000 [notice] Diagnostic for issue 8387: Found 3 one-hop
 circuits more than 1800 seconds old! Logging 3...
 Nov 07 07:50:00.000 [notice]   #0 created at 2016-11-06 23:49:39. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 07:50:00.000 [notice]   #1 created at 2016-11-06 18:23:40. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 07:50:00.000 [notice]   #2 created at 2016-11-07 05:29:55. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 07:50:00.000 [notice] It has been 11 seconds since I last called
 circuit_expire_old_circuits_clientside().
 Nov 07 10:07:03.000 [warn] Giving up launching first hop of circuit to
 rendezvous point [scrubbed] for service bh2lpa5qyawryvk2.
 Nov 07 10:07:14.000 [warn] Giving up launching first hop of circuit to
 rendezvous point [scrubbed] for service bh2lpa5qyawryvk2.
 Nov 07 10:07:44.000 [warn] Giving up launching first hop of circuit to
 rendezvous point [scrubbed] for service bh2lpa5qyawryvk2.
 Nov 07 10:08:23.000 [warn] Giving up launching first hop of circuit to
 rendezvous point [scrubbed] for service bh2lpa5qyawryvk2.
 Nov 07 13:50:00.000 [notice] Heartbeat: Tor's uptime is 9 days 17:59
 hours, with 6 circuits open. I've sent 39.17 MB and received 124.90 MB.
 Nov 07 13:50:00.000 [notice] Diagnostic for issue 8387: Found 3 one-hop
 circuits more than 1800 seconds old! Logging 3...
 Nov 07 13:50:00.000 [notice]   #0 created at 2016-11-06 23:49:39. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 13:50:00.000 [notice]   #1 created at 2016-11-06 18:23:40. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 13:50:00.000 [notice]   #2 created at 2016-11-07 05:29:55. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 13:50:00.000 [notice] It has been 4 seconds since I last called
 circuit_expire_old_circuits_clientside().
 Nov 07 19:01:32.000 [warn] connection_edge_process_relay_cell (at origin)
 failed.
 Nov 07 19:50:00.000 [notice] Heartbeat: Tor's uptime is 9 days 23:59
 hours, with 6 circuits open. I've sent 40.01 MB and received 128.15 MB.
 Nov 07 19:50:00.000 [notice] Diagnostic for issue 8387: Found 3 one-hop
 circuits more than 1800 seconds old! Logging 3...
 Nov 07 19:50:00.000 [notice]   #0 created at 2016-11-06 23:49:39. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 19:50:00.000 [notice]   #1 created at 2016-11-07 16:01:03. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 19:50:00.000 [notice]   #2 created at 2016-11-07 05:29:55. open,
 Hidden service: Introduction point. Not marked for close. Package window:
 1000. usable for new conns. Not marked dirty.
 Nov 07 19:50:00.000 [notice] It has been 28 seconds since I last called
 circuit_expire_old_circuits_clientside().
 Nov 08 01:50:00.000 [notice] Heartbeat: Tor's uptime is 10 days 5:59
 hours, with 7 circuits open. I've sent 40.93 MB and received 131.47 MB.
 Nov 08 01:50:00.000 [notice] Diagnostic for