rustls / rustls/rustls-platform-verifier

Android: Panics with unhelpful message when used in Termux

Open
#247 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
158
Forks
60
Avg merge
5d 10h
Merged PRs (30d)
3

Description

I compiled for aarch64-linux-android and run as a standalone bnary directly from a Termux shell and got these panics

thread 'main' (25165) panicked at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-platform-verifier-0.7.0/src/android.rs:90:10:
Expect rustls-platform-verifier to be initialized
stack backtrace:
   0:       0x740830e2fc - <unknown>
   1:       0x74081a8ed4 - <unknown>
   2:       0x740830d1fc - <unknown>
   3:       0x740830cf64 - <unknown>
   4:       0x740832e11c - <unknown>
   5:       0x740832e0d8 - <unknown>
   6:       0x740832e59c - <unknown>
   7:       0x74081a8e74 - <unknown>
   8:       0x74081ad9c0 - <unknown>
   9:       0x7408305dec - <unknown>
  10:       0x7408305170 - <unknown>
  11:       0x74082f1920 - <unknown>
  12:       0x7408247d90 - <unknown>
  13:       0x740824b534 - <unknown>
  14:       0x740824d294 - <unknown>
  15:       0x7408244510 - <unknown>
  16:       0x7408251650 - <unknown>
  17:       0x740826aa6c - <unknown>
  18:       0x74082601cc - <unknown>
  19:       0x740825e064 - <unknown>
  20:       0x7408298404 - <unknown>
  21:       0x74082970b0 - <unknown>
  22:       0x740814475c - <unknown>
  23:       0x740814af80 - <unknown>
  24:       0x740815c228 - <unknown>
  25:       0x7408128a78 - <unknown>
  26:       0x740816b3a0 - <unknown>
  27:       0x7407cab94c - __libc_init
Aborted```


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Android verifier path associated with rustls-platform-verifier/src/android.rs:90:10 and reproduce the standalone aarch64-linux-android binary from a Termux shell. Determine how the initialization failure is surfaced; done means the Termux case no longer ends with an unhelpful panic message.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
mobile-dev, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.