Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support libraries mapped from within APKs on Android #79

Closed
gabrielesvelto opened this issue May 3, 2023 · 1 comment · Fixed by #117
Closed

Support libraries mapped from within APKs on Android #79

gabrielesvelto opened this issue May 3, 2023 · 1 comment · Fixed by #117

Comments

@gabrielesvelto
Copy link
Contributor

We've started encountering minidumps coming from Android builds of Firefox where the shared libraries have been mapped directly from an APK (which is just a ZIP file, so they're probably stored uncompressed). The relevant mappings look like this:

7e042700c000-7e042700e000 r--p 00001000 fd:20 7315                       /data/app/org.mozilla.geckoview.test_runner-1/split_config.x86_64.apk
7e042700f000-7e042707e000 r-xp 00002000 fd:20 7315                       /data/app/org.mozilla.geckoview.test_runner-1/split_config.x86_64.apk
7e042707e000-7e04270af000 r--p 00071000 fd:20 7315                       /data/app/org.mozilla.geckoview.test_runner-1/split_config.x86_64.apk
7e04270b0000-7e04270b2000 r--p 000a2000 fd:20 7315                       /data/app/org.mozilla.geckoview.test_runner-1/split_config.x86_64.apk
7e04270b2000-7e04270b3000 rw-p 000a4000 fd:20 7315                       /data/app/org.mozilla.geckoview.test_runner-1/split_config.x86_64.apk

Since we record the module name we find in the mappings the minidumps are unusable, as we can't symbolicate them.

We look for the SONAME in the mapped ELF file so we should be finding it, but chances are that we are failing to open the underlying file here.

So this could be related to issue #71, because we'd be certainly capable of finding the SONAME within the crashed process' memory. If we switch reading the build ID from there, reading the SONAME would be a trivial addition.

@gabrielesvelto
Copy link
Contributor Author

This is how these crashes look like in the wild

afranchuk added a commit to afranchuk/minidump-writer that referenced this issue Apr 19, 2024
When this fails, it falls back to the previous behavior of trying to
open the mapped file name directly.

Cloes rust-minidump#79.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant