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

SIGSEGV signal 11 #3431

Closed
BWMuller opened this issue Sep 13, 2016 · 22 comments
Closed

SIGSEGV signal 11 #3431

BWMuller opened this issue Sep 13, 2016 · 22 comments

Comments

@BWMuller
Copy link

BWMuller commented Sep 13, 2016

Getting a sigsegv signal 11 when attempting to open the app on a Xiaomi Redmi Note 2

Goal

Use the library

Expected Results

No sigsegv

Actual Results

09-13 13:30:34.252 12167-12167/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-13 13:30:34.252 12167-12167/? I/DEBUG: Build fingerprint: 'Xiaomi/hermes/hermes:5.0.2/LRX22G/V8.0.1.0.LHMMIDG:user/release-keys'
09-13 13:30:34.252 12167-12167/? I/DEBUG: Revision: '0'
09-13 13:30:34.252 12167-12167/? I/DEBUG: ABI: 'arm64'
09-13 13:30:34.252 12167-12167/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
09-13 13:30:34.270 12167-12167/? I/DEBUG: x0 0000000000000000 x1 00000000186a3793 x2 00000055797cc018 x3 00000055797cc0e8
09-13 13:30:34.270 12167-12167/? I/DEBUG: x4 0000000000000000 x5 00000000000010f0 x6 0000000000000006 x7 0000007f7d712000
09-13 13:30:34.270 12167-12167/? I/DEBUG: x8 00000000000010f0 x9 0000000000000090 x10 0000007f7d712e18 x11 0000000000000001
09-13 13:30:34.270 12167-12167/? I/DEBUG: x12 0000000000000001 x13 0000000000000000 x14 0000000000000000 x15 0000007f7d712e18
09-13 13:30:34.270 12167-12167/? I/DEBUG: x16 0000007f7d70bb08 x17 0000007f7d68cee0 x18 0000000000000000 x19 0000000000070000
09-13 13:30:34.270 12167-12167/? I/DEBUG: x20 00000055797cac08 x21 00000000186a3793 x22 00000000000000d6 x23 00000055797cac08
09-13 13:30:34.270 12167-12167/? I/DEBUG: x24 0000000000000000 x25 0000000000000000 x26 0000000000000000 x27 0000000000000002
09-13 13:30:34.270 12167-12167/? I/DEBUG: x28 0000000000000001 x29 0000007ff6088e90 x30 0000007f62f6b3a4
09-13 13:30:34.270 12167-12167/? I/DEBUG: sp 0000007ff6088e90 pc 0000007f62f9066c pstate 0000000060000000
09-13 13:30:34.271 12167-12167/? I/DEBUG: backtrace:
09-13 13:30:34.271 12167-12167/? I/DEBUG: #00 pc 000000000006866c /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #1 pc 00000000000433a0 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #2 pc 0000000000071ac0 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #3 pc 00000000000ba1b4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #4 pc 0000000000121cd4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #5 pc 00000000000ba7a4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #6 pc 0000000000121cd4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #7 pc 00000000000ba7ec /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #8 pc 0000000000121cd4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #9 pc 00000000000ba7ec /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #10 pc 0000000000121cd4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #11 pc 00000000000ba7a4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #12 pc 0000000000121cd4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #13 pc 00000000000ba7a4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #14 pc 0000000000121cd4 /data/app/.../lib/arm64/librealm-jni.so
09-13 13:30:34.271 12167-12167/? I/DEBUG: #15 pc 000000000003ee00 /data/app/.../lib/arm64/librealm-jni.so (Java_io_realm_internal_Group_nativeGetTableNativePtr+420)

Steps & Code to Reproduce

Open the app

Version of Realm and tooling

Realm version(s): 1.2.0

Android Studio version: 2.1.3

Which Android version and device: Xiaomi Redmi Note 2, Android 5.0.2, Api 21

@Zhuinden
Copy link
Contributor

Did this happen on first install? If not, it might be corruption, in which case it'd be nice to have the Realm file

@BWMuller
Copy link
Author

This happens on first install as well as later on. Our realm file is encrypted

@kneth
Copy link
Contributor

kneth commented Sep 15, 2016

Does it work if you disable encryption?

@Zhuinden
Copy link
Contributor

@denis-stepushchik this looks like a crash related to audio recording, and not Realm

@Zhuinden
Copy link
Contributor

@denis-stepushchik well I'm pretty sure Realm doesn't record audio 😄

09-19 09:25:36.101 26300-26300/? A/DEBUG: #16 pc 000000000001d9fc /system/lib64/libc.so (__start_thread+16)
09-19 09:25:36.150 517-26306/? E/audio_route: unable to find path 'set-capture-format-default'
09-19 09:25:36.845 21801-24945/? E/AudioRecord-JNI: Error -4 during AudioRecord native read

And this is quite specifically "AudioRecord-JNI".

@denis-stepushchik-mobexs
Copy link

denis-stepushchik-mobexs commented Sep 20, 2016

@Zhuinden sorry for this

@Zhuinden
Copy link
Contributor

That's okay

@beeender
Copy link
Contributor

@denis-stepushchik It seems the problem is not related with Realm. I am closing this issue now. Feel free to reopen it if needed.

@Zhuinden
Copy link
Contributor

@beeender technically we were waiting for the original poster to answer if it works without encryption, but that never happened

@beeender
Copy link
Contributor

HA, OK. Then i will just reopen this and continue waiting.

@BWMuller
Copy link
Author

Currently waiting to get the device again on which it happened to test a unencrypted version. Should be at last on Tuesday.

@r-cohen
Copy link

r-cohen commented Sep 27, 2016

+1

crash:
SIGSEGV SEGV_MAPERR 0x0000000000000008
librealm-jni.so
Java_io_realm_internal_Group_nativeGetTableNativePtr

We do use encryption, and don't want to disable it for obvious reasons.

@BWMuller
Copy link
Author

Retested. Even when running the app without encryption enabled it still crashes.

@kneth
Copy link
Contributor

kneth commented Sep 28, 2016

Do you only see the crash on Xiaomi Redmi Note 2? It is possible to share your code or apk with? You can do it privately by sending an email to help@realm.io.

@r-cohen
Copy link

r-cohen commented Sep 28, 2016

I noticed this crash on other devices (SM-G920V). I cannot share my code/apk unfortunatly.

@kneth
Copy link
Contributor

kneth commented Sep 29, 2016

Is it possible for you to upgrade to version 2.0.0 and report back. Many of the native calls have been changed, and we would like to know if the changes are for the better.

@r-cohen
Copy link

r-cohen commented Sep 29, 2016

We upgraded to 2.0.0 and reverted back to 1.2.0 because there is a crash on connectivity change. Will wait for it to be fixed before upgrading, and then let you know.

@BWMuller
Copy link
Author

Upgraded to 2..0.0, not getting the connectivity crash myself. Will do another test once I have the crashing device again

@cmelchior
Copy link
Contributor

@BWMuller We haven't released the fix for the connectivity crash yet. So it it still there

@BWMuller
Copy link
Author

BWMuller commented Sep 29, 2016

@cmelchior I am aware of this, all I get in reference to the network state receiver not being there is the added error, but it hasn't caused a crash for me

UALib: ManifestUtils - Unable to find class: io.realm.internal.network.NetworkStateReceiver
java.lang.ClassNotFoundException: io.realm.internal.network.NetworkStateReceiver
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:308)
at java.lang.Class.forName(Class.java:272)
at com.urbanairship.util.ManifestUtils.validateManifest(ManifestUtils.java:81)
at com.urbanairship.UAirship.executeTakeOff(UAirship.java:348)
at com.urbanairship.UAirship.access$000(UAirship.java:42)
at com.urbanairship.UAirship$2.run(UAirship.java:304)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn't find class "io.realm.internal.network.NetworkStateReceiver" on path:
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at java.lang.Class.classForName(Native Method) 
at java.lang.Class.forName(Class.java:308) 
at java.lang.Class.forName(Class.java:272) 
at com.urbanairship.util.ManifestUtils.validateManifest(ManifestUtils.java:81) 
at com.urbanairship.UAirship.executeTakeOff(UAirship.java:348) 
at com.urbanairship.UAirship.access$000(UAirship.java:42) 
at com.urbanairship.UAirship$2.run(UAirship.java:304) 
at java.lang.Thread.run(Thread.java:818) 
Suppressed: java.lang.ClassNotFoundException: io.realm.internal.network.NetworkStateReceiver
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 9 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

@kneth
Copy link
Contributor

kneth commented Oct 7, 2016

@BWMuller Please try to upgrade to 2.0.2 and see if your issue is solved.

@kneth
Copy link
Contributor

kneth commented Oct 24, 2016

If upgrading to latest version didn't help you, please reopen the issue.

@kneth kneth closed this as completed Oct 24, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants