question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Native crash (SIGSEGV) on app startup

See original GitHub issue

I tried to integrate sonar into the app that I work on. On some phones with version 0.0.5 and 0.0.8, I noticed a crash in the native part of the code right on the app startup. It’s so quick that I’m not able to even get to the main activity or any point where I can attach the debugger.

Unfortunately, this does not reproduce 100% of the times on all phones. When you hit this, the only available option for me was to disable sonar. Uninstalling and reinstalling the app did not help. I was able to reproduce it on a Nexus 6P and a Google Pixel 2.

I’m attaching the stack trace below, I am not sure if it’s entirely helpful or if it points to the actual problem or not. Let me know if there is any debug option I can turn on to provide more useful logs.

Thank you.

06-29 16:33:05.376 22827-22851/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x16 in tid 22851 (lix.mediaclient), pid 22827 (lix.mediaclient)
06-29 16:33:05.440 22857-22857/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
   Build fingerprint: ‘google/walleye/walleye:8.1.0/OPM2.171026.006.C1/4769658:user/release-keys’
   Revision: ‘MP1’
   ABI: ‘arm’
   pid: 22827, tid: 22851, name: lix.mediaclient  >>> com.netflix.mediaclient <<<
   signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x16
   Cause: null pointer dereference
       r0 00000002  r1 d118de64  r2 d118debc  r3 00000000
       r4 00000002  r5 d118debc  r6 00002710  r7 d118df18
       r8 d118e010  r9 ed1331b0  sl 00000006  fp d118e0c8
       ip d147d724  sp d118de50  lr d14f0fd8  pc d14f0d40  cpsr 600e0010
06-29 16:33:05.441 22857-22857/? A/DEBUG: backtrace:
       #00 pc 0002fd40  /data/app/com.netflix.mediaclient-FYX3_ueYVM2-PK2yN2gG3g==/lib/arm/libssl.so (__gnu_Unwind_Resume+8)
       #01 pc 0002ffd4  /data/app/com.netflix.mediaclient-FYX3_ueYVM2-PK2yN2gG3g==/lib/arm/libssl.so (___Unwind_Resume+20)
06-29 16:33:06.477 873-873/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_00
06-29 16:33:06.495 1144-1184/? W/zygote64: kill(-20841, 9) failed: No such process

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:30 (18 by maintainers)

github_iconTop GitHub Comments

3reactions
ZacSweerscommented, Oct 22, 2018

I still get this on 0.9.0+

1reaction
rohandhruvacommented, Jul 4, 2018

@passy, I upgraded our dependency to 0.0.9, and it seems to be working fine on both Nexus 6P and Pixel 2. We don’t see any native crashes on startup. The crash was not a 100% repro on the 6P, so I’ll keep an eye out if it re-appears.

Thank you so much for updating OpenSSL – seems to have done the trick!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnosing Native Crashes | Android Open Source Project
Making code unreadable causes intentional and unintentional reads into memory segments marked execute-only to throw a SIGSEGV with code ...
Read more >
Easiest way to cause SIGSEGV (native crash) on Android?
I want to confirm that the 3rd party lib on an android app is working properly and catching all native crashes/reporting them.
Read more >
Android app crash on startup - SIGSEGV - Kivy/KivyMD - Reddit
One common reason for this kind of crash is using a thread incorrectly, ie updating a kivy property or other state from outside...
Read more >
Debugging Native Crashes in Android Apps | by Jackson Cheek
So, testing again… a native crash — finally! This is a segmentation fault ( SIGSEGV ) at virtual memory address 0xff799ffc , but...
Read more >
5.1 Determine Where the Crash Occurred
If the fatal error log indicates the problematic frame to be a native library, there might be a bug in native code or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found