Skip to content

android: create and upload debug symbols #15210

@kari-ts

Description

@kari-ts

What is the issue?

one of the top crashes on Play Console does not have a useful stack trace because we don't have debug symbols uploaded:

https://play.google.com/console/u/0/developers/4997631118413301346/app/4972583840157056115/vitals/crashes/854f9b9165629bf9c2316d08919b004c/details?days=28
`*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 29743 >>> com.tailscale.ipn <<<

backtrace:
#00 pc 0x00000000004b1bd8 /data/app/~~qZnEmSi0Qlg1StbgKCkXzQ==/com.tailscale.ipn-Qi2gw6JMeaWEUUGEWDc5Xw==/split_config.arm64_v8a.apk!libgojni.so (runtime.raise.abi0+16384) (BuildId: dccb3ed5fa8ab389912f03d958ee4b98)`

We are building our native library using -w to omit the DWARF symbol table from the final binary; this reduces the app size (by about 4MB on my debug build). We can create a symbols file by producing an unstripped version and a stripped version so that we create the debug symbols file, upload the stripped version so we aren't increasing app size, and use Google Play Developer API to upload the native symbols file.

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

No response

OS version

No response

Tailscale version

No response

Other software

No response

Bug report

No response

Metadata

Metadata

Assignees

Labels

OS-androidIssues involving Tailscale for AndroidbugBug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions