[tor-bugs] #32729 [Core Tor/Tor]: "hs_circuitmap_init: Assertion !the_hs_circuitmap failed" when repeating failed tests on Android

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 13 21:04:20 UTC 2019

#32729: "hs_circuitmap_init: Assertion !the_hs_circuitmap failed" when repeating
failed tests on Android
 Reporter:  eighthave                 |          Owner:  (none)
     Type:  defect                    |         Status:  new
 Priority:  Medium                    |      Milestone:  Tor: 0.4.3.x-final
Component:  Core Tor/Tor              |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  Android backport? crash?  |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:

Comment (by eighthave):

 I'm still seeing this crash occasionally when running the `TorService`
 test suite with multiple Tor start/stops (e.g. first running
 `testOverridingDefaultsTorrc` then `testBindService`).   I added logging
 of `hs_circuitmap_init` and `hs_circuitmap_free_all`, as well as the
 "clear between test runs" to the Android test runner:
         // The following argument makes the Android Test Orchestrator run
         // "pm clear" command after each test invocation. This command
         // that the app's state is completely cleared between tests. This
 is required
         // since there is no way to unset
         testInstrumentationRunnerArguments clearPackageData: 'true'

 Attached is the crash log from `adb logcat`, it does not seem to show
 double calls to `hs_circuitmap_init` or `hs_circuitmap_free_all`.  I think
 we might have to consider that Android will kill Tor without warning and
 reuse the process.

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

More information about the tor-bugs mailing list