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

Samsung Tab 3 Lite 7 crashes on Realm 2.0.1 and 2.0.2 #3651

Closed
cmelchior opened this Issue Oct 18, 2016 · 174 comments

Comments

Projects
None yet
@cmelchior
Copy link
Contributor

cmelchior commented Oct 18, 2016

A Samsung Galaxy Tab 3 Lite 7 (SM-T111) crashes on startup with the below error (Android 4.2.2)
Has been confirmed working on Nexus 5, Nexus 4 and emulators 15, 19, 21, 22, 23, 24.

10-18 11:57:25.851 D/dalvikvm( 6127): Trying to load lib /data/app-lib/com.zt.android.test.realmio-1/librealm-jni.so 0x412e0568
10-18 11:57:25.851 D/dalvikvm( 6127): Added shared lib /data/app-lib/com.zt.android.test.realmio-1/librealm-jni.so 0x412e0568
10-18 11:57:25.859 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
10-18 11:57:25.859 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1521857752
10-18 11:57:25.867 I/v_hwc   (  112): hwc prepare: 3D composition
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1521857752
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeHasTable 1522273128
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeCloseSharedRealm 1522273128
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1521857752
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1521857752
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeBeginTransaction 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522276080
10-18 11:57:25.875 V/REALM   ( 6127):  --> Java_io_realm_internal_SharedRealm_nativeSetVersion 1522276080
10-18 11:57:25.875 F/libc    ( 6127): Fatal signal 11 (SIGSEGV) at 0x5ab3eff6 (code=2), thread 6127 (id.test.realmio)
10-18 11:57:25.882 F/libc    ( 6127): Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1), thread 6142 (id.test.realmio)
10-18 11:48:42.945 D/CrashAnrDetector(  484): Build: samsung/goya3gxx/goya3g:4.2.2/JDQ39/T111XXUAOC2:user/release-keys
10-18 11:48:42.945 D/CrashAnrDetector(  484): Hardware: PXA986
10-18 11:48:42.945 D/CrashAnrDetector(  484): Revision: 2
10-18 11:48:42.945 D/CrashAnrDetector(  484): Bootloader: T111XXUAOC2
10-18 11:48:42.945 D/CrashAnrDetector(  484): Radio: unknown
10-18 11:48:42.945 D/CrashAnrDetector(  484): Kernel: Linux version 3.4.5-2825369 (se.infra@SWDB2804) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #2 SMP PREEMPT Tue Mar 17 22:04:14 KST 2015
10-18 11:48:42.945 D/CrashAnrDetector(  484):
10-18 11:48:42.945 D/CrashAnrDetector(  484): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-18 11:48:42.945 D/CrashAnrDetector(  484): Build fingerprint: 'samsung/goya3gxx/goya3g:4.2.2/JDQ39/T111XXUAOC2:user/release-keys'
10-18 11:48:42.945 D/CrashAnrDetector(  484): Revision: '2'
10-18 11:48:42.945 D/CrashAnrDetector(  484): pid: 5805, tid: 5805, name: id.test.realmio  >>> io.realm.test.realmio <<<
10-18 11:48:42.945 D/CrashAnrDetector(  484): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 5baa4ffe
10-18 11:48:42.945 D/CrashAnrDetector(  484):     r0 5baa500b  r1 5baa4ffe  r2 5bb71283  r3 5baa4ffe
10-18 11:48:42.945 D/CrashAnrDetector(  484):     r4 00000000  r5 5baa500a  r6 5bbb5358  r7 5dc08d20
10-18 11:48:42.945 D/CrashAnrDetector(  484):     r8 00000010  r9 00000010  sl 5e8bf810  fp 00000010
10-18 11:48:42.945 D/CrashAnrDetector(  484):     ip 00000000  sp bed19318  lr 00000000  pc 5e7a1052  cpsr 20000030
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d0  65706f72705f6b70  d1  532f6c616e726500
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d2  65742e64696f7200  d3  6d6c6165722e7402
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d4  746c75616665642f  d5  6d2e6d6c6165722e
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d6  6e656d6567616e61  d7  7373656363612f74
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d8  0000000000000000  d9  0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d10 0000000000000000  d11 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d12 0000000000000000  d13 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d14 0000000000000000  d15 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d16 4026000000000000  d17 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d18 0000000000000000  d19 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d20 4008000000000000  d21 3fbc71c71c71c71c
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d22 3fcc7288e957b53b  d23 3fd24998d6307188
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d26 0000000000000000  d27 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d28 0000000000000000  d29 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     d30 0000000000000000  d31 0000000000000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     scr 20000010
10-18 11:48:42.945 D/CrashAnrDetector(  484):
10-18 11:48:42.945 D/CrashAnrDetector(  484): backtrace:
10-18 11:48:42.945 D/CrashAnrDetector(  484):     #00  pc 00082052  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):     #01  pc 000a50b7  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):     #02  pc 0005a69d  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):
10-18 11:48:42.945 D/CrashAnrDetector(  484): stack:
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192d8  5bbb5950
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192dc  00001680
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192e0  5bbb5bd0
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192e4  00001900
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192e8  5e7991cb  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192ec  5e7a0e85  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192f0  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192f4  5e8d4168  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192f8  5bbb5958
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed192fc  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19300  bed19330  [stack]
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19304  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19308  5dc08d20
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1930c  5dc08d20
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19310  df0027ad
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19314  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):     #00  bed19318  5e799c41  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1931c  00000001
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19320  0000000f
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19324  00000008
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19328  5e8bf810  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1932c  00000008
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19330  5bbb5360
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19334  ffffffff
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19338  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1933c  5dc08d20
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19340  00000001
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19344  00000001
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19348  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1934c  5e8bf810  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19350  5dc08008
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19354  5e7c40bb  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):     #01  bed19358  ffffffff
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1935c  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19360  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19364  00000008
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19368  5abee570
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1936c  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19370  5ab9ed08
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19374  5abee6e0
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19378  5e8bf810  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1937c  00000008
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19380  00000001
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19384  5e7db265  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19388  5e8bf810  /data/app-lib/io.realm.test.realmio-1/librealm-jni.so
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed1938c  00000008
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19390  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed19394  5abee570
10-18 11:48:42.945 D/CrashAnrDetector(  484):          ........  ........
10-18 11:48:42.945 D/CrashAnrDetector(  484):     #02  bed193b8  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed193bc  00000000
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed193c0  5dc08d20
10-18 11:48:42.945 D/CrashAnrDetector(  484):          bed193c4  5e7c0c
10-18 11:48:42.945 D/CrashAnrDetector(  484): processName:io.realm.test.realmio
10-18 11:48:42.945 D/CrashAnrDetector(  484): broadcastEvent : io.realm.test.realmio SYSTEM_TOMBSTONE

I'm working on getting a sample project. /cc @beeender

@cmelchior

This comment has been minimized.

Copy link
Contributor Author

cmelchior commented Oct 18, 2016

Our introExample also crashes on that device.

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Oct 18, 2016

A possibility is that context.getApplicationContext()'s getFilesDir() returns null on first start-up

A wild guess, but I've seen it happen on Samsung devices.

@cmelchior

This comment has been minimized.

Copy link
Contributor Author

cmelchior commented Oct 18, 2016

I doubt that is the case here, since in that code path, the file has already been created and opened.

@imayank91

This comment has been minimized.

Copy link

imayank91 commented Oct 27, 2016

How soon can we expect this to be fixed? It happens consistently on this device

@cmelchior

This comment has been minimized.

Copy link
Contributor Author

cmelchior commented Oct 27, 2016

There is no timeline yet unfortunately. We are working on it.

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Oct 27, 2016

Have you tried Realm 2.1.1 and see if it helps, just in case?

@beeender

This comment has been minimized.

Copy link
Contributor

beeender commented Oct 28, 2016

@maysaini Can you have to get the crash backtrace with realm-java 2.1.0 or 2.1.1? We lost symbol files for release version >=2.0.0 < 2.1.0, so cannot parse the call stack :(

@imayank91

This comment has been minimized.

Copy link

imayank91 commented Oct 28, 2016

This is with 2.1.1

10-28 10:50:24.585 12448-12448/com.raremediacompany.vihaan D/dalvikvm: Trying to load lib /data/app-lib/com.raremediacompany.vihaan-1/librealm-jni.so 0x4133d820
10-28 10:50:24.585 12448-12448/com.raremediacompany.vihaan D/dalvikvm: Added shared lib /data/app-lib/com.raremediacompany.vihaan-1/librealm-jni.so 0x4133d820
10-28 10:50:24.601 12448-12448/com.raremediacompany.vihaan A/libc: Fatal signal 11 (SIGSEGV) at 0x5bb29ffe (code=2), thread 12448 (acompany.vihaan)

@beeender

This comment has been minimized.

Copy link
Contributor

beeender commented Oct 28, 2016

@maysaini Would you please share a completed backtrace? It seems some call stacks are missed.

@imayank91

This comment has been minimized.

Copy link

imayank91 commented Oct 28, 2016

These are the only logs Im getting

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Oct 28, 2016

@beeender is there a way to create verbose native log with the refactored RealmLog?

@JamesPaulKey

This comment has been minimized.

Copy link

JamesPaulKey commented Oct 31, 2016

Sorry to interject, but i believe the same issue is also applicable to the Galaxy S3 Mini (GT-I8200N), Also running Android 4.2.2, running any Realm 2.x version (2.0.1, 2.0.2, 2.1.1). 2.1.1 trace attached

10-31 13:36:00.264 11481-11481/io.realm.examples.intro D/dalvikvm: Trying to load lib /data/app-lib/io.realm.examples.intro-1/librealm-jni.so 0x42219cc8
10-31 13:36:00.280 11481-11481/io.realm.examples.intro D/dalvikvm: Added shared lib /data/app-lib/io.realm.examples.intro-1/librealm-jni.so 0x42219cc8
10-31 13:36:00.436 11481-11481/io.realm.examples.intro A/libc: Fatal signal 11 (SIGSEGV) at 0x5ba9fffe (code=2), thread 11481 (.examples.intro)
10-31 13:36:00.491 106-106/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-31 13:36:00.491 106-106/? I/DEBUG: Build fingerprint: 'samsung/goldenve3gxx/goldenve3g:4.2.2/JDQ39/I8200NXXUANI2:user/release-keys'
10-31 13:36:00.491 106-106/? I/DEBUG: Revision: '3'
10-31 13:36:00.491 106-106/? I/DEBUG: pid: 11481, tid: 11481, name: .examples.intro  >>> io.realm.examples.intro <<<
10-31 13:36:00.491 106-106/? I/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 5ba9fffe
10-31 13:36:00.655 114-708/? D/v_gal: [tid=708] gralloc_free: ===>Width = 480, Height = 800, surface = 0x43afc6f8
10-31 13:36:00.780 11452-11506/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0013
10-31 13:36:00.905 106-106/? I/DEBUG:     r0 5baa000b  r1 5ba9fffe  r2 5bb682ff  r3 5ba9fffe
10-31 13:36:00.905 106-106/? I/DEBUG:     r4 00000000  r5 5baa000a  r6 5bbaaea8  r7 581126d8
10-31 13:36:00.905 106-106/? I/DEBUG:     r8 00000010  r9 00000010  sl 5e47de58  fp 00000010
10-31 13:36:00.905 106-106/? I/DEBUG:     ip 00000000  sp bee4f320  lr 00000000  pc 5e35e598  cpsr 20000030
10-31 13:36:00.905 106-106/? I/DEBUG:     d0  65706f72705f6b70  d1  532f6c616e726500
10-31 13:36:00.905 106-106/? I/DEBUG:     d2  56db020856db0100  d3  56db027856db0202
10-31 13:36:00.905 106-106/? I/DEBUG:     d4  6665642f73656c69  d5  6165722e746c7561
10-31 13:36:00.905 106-106/? I/DEBUG:     d6  67616e616d2e6d6c  d7  63612f746e656d65
10-31 13:36:00.905 106-106/? I/DEBUG:     d8  0000000000000000  d9  0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d10 0000000000000000  d11 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d12 0000000000000000  d13 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d14 0000000000000000  d15 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d16 0000000d0000000c  d17 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d18 0000000000000000  d19 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d20 4008000000000000  d21 3fbc71c71c71c71c
10-31 13:36:00.905 106-106/? I/DEBUG:     d22 3fcc7288e957b53b  d23 3fd24998d6307188
10-31 13:36:00.905 106-106/? I/DEBUG:     d24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752
10-31 13:36:00.905 106-106/? I/DEBUG:     d26 0000000000000000  d27 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d28 0000000000000000  d29 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     d30 0000000000000000  d31 0000000000000000
10-31 13:36:00.905 106-106/? I/DEBUG:     scr 20000010
10-31 13:36:00.905 106-106/? I/DEBUG: backtrace:
10-31 13:36:00.905 106-106/? I/DEBUG:     #00  pc 00086598  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.905 106-106/? I/DEBUG:     #01  pc 000a9d37  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.905 106-106/? I/DEBUG:     #02  pc 0005ec8d  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.905 106-106/? I/DEBUG: stack:
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2e0  5bbab4a0
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2e4  00001680
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2e8  5bbab720
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2ec  00001900
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2f0  5e3568dd  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2f4  5e35e3cb  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2f8  00000000
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f2fc  5e493188  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f300  5bbab4a8
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f304  00000000
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f308  bee4f338  [stack]
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f30c  00000000
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f310  581126d8
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f314  581126d8
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f318  df0027ad
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f31c  00000000
10-31 13:36:00.913 106-106/? I/DEBUG:     #00  bee4f320  5e357341  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f324  00000001
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f328  0000000f
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f32c  00000008
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f330  5e47de58  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f334  00000008
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f338  5bbaaeb0
10-31 13:36:00.913 106-106/? I/DEBUG:          bee4f33c  ffffffff
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f340  00000000
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f344  581126d8
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f348  00000001
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f34c  00000001
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f350  00000000
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f354  5e47de58  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f358  581119c0
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f35c  5e381d3b  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.921 106-106/? I/DEBUG:     #01  bee4f360  ffffffff
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f364  00000000
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f368  00000000
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f36c  00000008
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f370  5ac12058
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f374  00000000
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f378  5ac274d8
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f37c  5ac121c8
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f380  5e47de58  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f384  00000008
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f388  00000001
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f38c  5e3a48fd  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f390  5e47de58  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f394  00000008
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f398  00000000
10-31 13:36:00.921 106-106/? I/DEBUG:          bee4f39c  5ac12058
10-31 13:36:00.921 106-106/? I/DEBUG:          ........  ........
10-31 13:36:00.929 106-106/? I/DEBUG:     #02  bee4f3c0  00000000
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3c4  00000000
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3c8  00000000
10-31 13:36:00.929 11452-11456/? D/dalvikvm: GC_CONCURRENT freed 351K, 15% free 9912K/11628K, paused 3ms+3ms, total 52ms

10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3cc  bee4f4e0  [stack]
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3d0  00000000
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3d4  5ac12058
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3d8  581119c8
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3dc  000000d0
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3e0  5e47e1d4  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3e4  00000008
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3e8  5e47dff4  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3ec  00000002
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3f0  5e47de58  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so

10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3f4  00000008
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3f8  00000000
10-31 13:36:00.929 106-106/? I/DEBUG:          bee4f3fc  00000000
10-31 13:36:00.929 106-106/? I/DEBUG: memory near r0:
10-31 13:36:00.929 106-106/? I/DEBUG:     5ba9ffe8 00000000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5ba9fff8 00000000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0008 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0018 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0028 000c0000 00000c00 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0038 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0048 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0058 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0068 000c0000 00000c00 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0078 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0088 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa0098 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa00a8 000c0000 00000c00 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa00b8 000c0000 0000000c 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa00c8 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG:     5baa00d8 000c0000 00000000 00000000 00000000
10-31 13:36:00.929 106-106/? I/DEBUG: memory near r1:
10-31 13:36:00.936 106-106/? I/DEBUG:     5ba9ffdc 00000000 00000000 00000000 00000000
10-31 13:36:00.936 106-106/? I/DEBUG:     5ba9ffec 00000000 00000000 00000000 00000000
10-31 13:36:00.936 106-106/? I/DEBUG:     5ba9fffc 00000000 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa000c 00000000 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa001c 00000000 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa002c 00000c00 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa003c 00000000 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa004c 00000000 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa005c 00000000 00000000 00000000 000c0000
10-31 13:36:00.936 106-106/? I/DEBUG:     5baa006c 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa007c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa008c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa009c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa00ac 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa00bc 0000000c 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa00cc 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG: memory near r2:
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb682dc 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb682ec 00000c00 00000000 00000000 0c0c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb682fc 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6830c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6831c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6832c 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6833c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6834c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6835c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6836c 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6837c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6838c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb6839c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb683ac 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb683bc 0000000c 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5bb683cc 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG: memory near r3:
10-31 13:36:00.944 106-106/? I/DEBUG:     5ba9ffdc 00000000 00000000 00000000 00000000
10-31 13:36:00.944 106-106/? I/DEBUG:     5ba9ffec 00000000 00000000 00000000 00000000
10-31 13:36:00.944 106-106/? I/DEBUG:     5ba9fffc 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa000c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa001c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa002c 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa003c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa004c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa005c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa006c 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa007c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa008c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa009c 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa00ac 00000c00 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa00bc 0000000c 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa00cc 00000000 00000000 00000000 000c0000
10-31 13:36:00.944 106-106/? I/DEBUG: memory near r5:
10-31 13:36:00.944 106-106/? I/DEBUG:     5ba9ffe8 00000000 00000000 00000000 00000000
10-31 13:36:00.944 106-106/? I/DEBUG:     5ba9fff8 00000000 00000000 00000000 00000000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa0008 000c0000 00000000 00000000 00000000
10-31 13:36:00.944 106-106/? I/DEBUG:     5baa0018 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0028 000c0000 00000c00 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0038 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0048 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0058 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0068 000c0000 00000c00 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0078 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0088 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa0098 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa00a8 000c0000 00000c00 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa00b8 000c0000 0000000c 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa00c8 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5baa00d8 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG: memory near r6:
10-31 13:36:00.952 106-106/? I/DEBUG:     5bbaae88 000c0000 00000000 00000000 00000000
10-31 13:36:00.952 106-106/? I/DEBUG:     5bbaae98 000c0000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaea8 000e0000 00000000 00000000 0d000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaeb8 00000000 00000000 00000000 0c000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaec8 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaed8 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaee8 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaef8 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf08 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf18 00000000 00000000 00800000 02000045
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf28 16801180 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf38 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf48 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf58 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf68 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     5bbaaf78 00000000 00000000 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG: memory near r7:
10-31 13:36:00.960 106-106/? I/DEBUG:     581126b8 00000002 0000003c 581119c8 00001100
10-31 13:36:00.960 106-106/? I/DEBUG:     581126c8 58112648 00000001 00010010 d1d1d1d1
10-31 13:36:00.960 106-106/? I/DEBUG:     581126d8 5e491ab0 5e357321 00000000 5e49321c
10-31 13:36:00.960 106-106/? I/DEBUG:     581126e8 5bbaaea8 d1d1d1d1 00000000 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     581126f8 00000000 00000000 00000002 00000007
10-31 13:36:00.960 106-106/? I/DEBUG:     58112708 581119c8 00001080 58112648 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     58112718 00000004 d1d1d100 5ac239c8 5ac239cc
10-31 13:36:00.960 106-106/? I/DEBUG:     58112728 5ac239cc d1d10101 d1d1d1d1 d1d1d1d1
10-31 13:36:00.960 106-106/? I/DEBUG:     58112738 00000000 d1d1d1d1 d1d1d1d1 d1d1d1d1
10-31 13:36:00.960 106-106/? I/DEBUG:     58112748 00000000 d1d1d1d1 00000001 00000000
10-31 13:36:00.960 106-106/? I/DEBUG:     58112758 00000000 00000000 00001000 d1d1d1d1
10-31 13:36:00.960 106-106/? I/DEBUG:     58112768 00000020 00000025 00000000 5bc03000
10-31 13:36:00.968 106-106/? I/DEBUG:     58112778 00000488 00000000 5bd6f000 00000488
10-31 13:36:00.968 106-106/? I/DEBUG:     58112788 00000000 d1d1d101 5abf175c 5abe5ad4
10-31 13:36:00.968 106-106/? I/DEBUG:     58112798 5abe64a4 5bc18fd4 00000000 00000002
10-31 13:36:00.968 106-106/? I/DEBUG:     581127a8 5ac5d934 d1d1d1d1 0000b310 00000000
10-31 13:36:00.968 106-106/? I/DEBUG: memory near sl:
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de38 656b2079 25272079 32252e31 6f642027
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de48 6e207365 6520746f 74736978 0000002e
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de58 6174656d 61746164 00000000 6e6e6143
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de68 6920746f 7865646e 6f727020 74726570
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de78 25272079 32252e31 69203a27 7865646e
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de88 20676e69 706f7270 69747265 6f207365
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47de98 79742066 27206570 20273325 6e207369
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47dea8 7920746f 69207465 656c706d 746e656d
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47deb8 002e6465 766f7250 64656469 68637320
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47dec8 20616d65 73726576 206e6f69 69203125
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47ded8 656c2073 74207373 206e6168 7473616c
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47dee8 74657320 72657620 6e6f6973 2e322520
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47def8 00000000 6d697250 20797261 2079656b
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47df08 706f7270 79747265 31252720 2732252e
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47df18 73616820 70756420 6163696c 76206574
10-31 13:36:00.968 106-106/? I/DEBUG:     5e47df28 65756c61 66612073 20726574 7267696d
10-31 13:36:00.968 106-106/? I/DEBUG: memory near sp:
10-31 13:36:00.968 106-106/? I/DEBUG:     bee4f300 5bbab4a8 00000000 bee4f338 00000000
10-31 13:36:00.968 106-106/? I/DEBUG:     bee4f310 581126d8 581126d8 df0027ad 00000000
10-31 13:36:00.968 106-106/? I/DEBUG:     bee4f320 5e357341 00000001 0000000f 00000008
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f330 5e47de58 00000008 5bbaaeb0 ffffffff
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f340 00000000 581126d8 00000001 00000001
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f350 00000000 5e47de58 581119c0 5e381d3b
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f360 ffffffff 00000000 00000000 00000008
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f370 5ac12058 00000000 5ac274d8 5ac121c8
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f380 5e47de58 00000008 00000001 5e3a48fd
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f390 5e47de58 00000008 00000000 5ac12058
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f3a0 581119c0 ffffffff 418558e8 bee4f508
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f3b0 416e3ac4 41858660 bee4f51c 5e336c91
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f3c0 00000000 00000000 00000000 bee4f4e0
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f3d0 00000000 5ac12058 581119c8 000000d0
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f3e0 5e47e1d4 00000008 5e47dff4 00000002
10-31 13:36:00.975 106-106/? I/DEBUG:     bee4f3f0 5e47de58 00000008 00000000 00000000
10-31 13:36:00.975 106-106/? I/DEBUG: code around pc:
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e578 ebc1ec01 1e6a0109 44711e5d 1c01f803
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e588 1040f897 0301ebc8 429d442b 4619d006
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e598 4b01f801 d1fb428d 1040f897 0501f1c1
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e5a8 1b524415 d36e428a d028429e 1040f897
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e5b8 f1b9e7dd d10e0f00 0801f04f 0f00f1bb
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e5c8 f108d042 fa5f33ff 9302fc88 e7b446c3
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e5d8 0f00f1bb f109d038 f1b80801 d9f00f02
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e5e8 0859ea49 0898ea48 1818ea48 0801f108
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e5f8 fc88fa5f 33fff10c 46e39302 46cce79d
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e608 f8dd693e f887900c 9b01c040 6b0bfb03
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e618 445b9b02 f1b9461c d0040f00 46514658
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e628 f791464a 44d9ec90 bf1c454c 2200464b
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e638 f803d003 42a32b01 f1bad1fb d02b0f00
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e648 0904ebc9 9000f884 e8bdb007 f10b8ff0
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e658 693e33ff e7d89302 d0d4429e f488fa5f
10-31 13:36:00.975 106-106/? I/DEBUG:     5e35e668 f1c81e59 f8030800 44434c01 bf184299
10-31 13:36:00.975 106-106/? I/DEBUG: code around lr:
10-31 13:36:00.975 106-106/? I/DEBUG:     00000000 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.975 106-106/? I/DEBUG:     00000010 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.975 106-106/? I/DEBUG:     00000020 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.975 106-106/? I/DEBUG:     00000030 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.975 106-106/? I/DEBUG:     00000040 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     00000050 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     00000060 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     00000070 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     00000080 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     00000090 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     000000a0 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     000000b0 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     000000c0 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     000000d0 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     000000e0 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG:     000000f0 ffffffff ffffffff ffffffff ffffffff
10-31 13:36:00.983 106-106/? I/DEBUG: memory map around fault addr 5ba9fffe:
10-31 13:36:00.983 106-106/? I/DEBUG:     5ba1e000-5ba9f000
10-31 13:36:00.983 106-106/? I/DEBUG:     5ba9f000-5baa0000
10-31 13:36:00.983 106-106/? I/DEBUG:     5baa0000-5bb9f000 [stack:11488]
@vykintas

This comment has been minimized.

Copy link

vykintas commented Nov 2, 2016

I am also experiencing the same problem. Samsung s3 mini crashes with realm versions 2.x (Tested on 2.0.2, 2.1.0 and 2.1.1).

Logs for crash from CrashAnrDetector:

Build: samsung/goldenve3gxx/goldenve3g:4.2.2/JDQ39/I8200NXXUANJ2:user/release-keys
Hardware: PXA986
Revision: 3
Bootloader: I8200NXXUANJ2
Radio: unknown
Kernel: Linux version 3.4.5-2794522 (se.infra@SWDA2612) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #2 SMP PREEMPT Thu Oct 23 12:23:48 KST 2014

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/goldenve3gxx/goldenve3g:4.2.2/JDQ39/I8200NXXUANJ2:user/release-keys'
Revision: '3'
pid: 10263, tid: 10263, name: eetbees.sandbox  >>> com.streetbees.sandbox <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 5c9b9fff
    r0 5c9bf683  r1 00000010  r2 5c9bfbe3  r3 5c9ba000
    r4 00000000  r5 5c9b9fff  r6 5c9bfdb0  r7 5c9bf640
    r8 00000010  r9 00000010  sl 636fce58  fp 00000010
    ip 00000000  sp bef03320  lr 00000000  pc 635dd584  cpsr 20000030
    d0  65706f72705f6b70  d1  532f6c616e726500
    d2  5735e2085735e100  d3  5735e2785735e202
    d4  657274732f73656c  d5  722e736565627465
    d6  6e616d2e6d6c6165  d7  2f746e656d656761
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 4026000000000000  d17 0000000000000000
    d18 0000000000000105  d19 0000000000000104
    d20 6614485c6614485c  d21 6614485c6614485c
    d22 6614485c6614485c  d23 611345576614485c
    d24 6614485c6614485c  d25 6614485c6614485c
    d26 6614485c6614485c  d27 6614485c6614485c
    d28 6614485c6614485c  d29 3c0c2b366514485b
    d30 390b283356113d4d  d31 0000000011030c0f
    scr 20000010

backtrace:
    #00  pc 00086584  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
    #01  pc 000a9d37  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
    #02  pc 0005ec8d  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so

stack:
         bef032e0  5c9c03a8  
         bef032e4  00001680  
         bef032e8  5c9c0628  
         bef032ec  00001900  
         bef032f0  635d58dd  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef032f4  635dd3cb  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef032f8  00000000  
         bef032fc  63712188  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03300  5c9c03b0  
         bef03304  00000000  
         bef03308  bef03338  [stack]
         bef0330c  00000000  
         bef03310  5c9bf640  
         bef03314  5c9bf640  
         bef03318  df0027ad  
         bef0331c  00000000  
    #00  bef03320  635d6341  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03324  00000001  
         bef03328  0000000f  
         bef0332c  00000008  
         bef03330  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03334  00000008  
         bef03338  5c9bfdb8  
         bef0333c  ffffffff  
         bef03340  00000000  
         bef03344  5c9bf640  
         bef03348  00000001  
         bef0334c  00000001  
         bef03350  00000000  
         bef03354  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03358  5c9be928  
         bef0335c  63600d3b  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
    #01  bef03360  ffffffff  
         bef03364  00000000  
         bef03368  00000000  
         bef0336c  00000008  
         bef03370  60628918  
         bef03374  00000000  
         bef03378  606688a0  
         bef0337c  60628a88  
         bef03380  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03384  00000008  
         bef03388  00000001  
         bef0338c  636238fd  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03390  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03394  00000008  
         bef03398  00000000  
         bef0339c  60628918  
         ........  ........
    #02  bef033c0  00000000  
         bef033c4  00000000  
         bef033c8  00000000  
         bef033cc  bef034e0  [stack]
         bef033d0  00000000  

processName:com.streetbees.sandbox
11-02 10:52:07.156 D/CrashAnrDetector(  542): broadcastEvent : com.streetbees.sandbox SYSTEM_TOMBSTONE

And a full debug crash log:

pid: 10263, tid: 10263, name: eetbees.sandbox  >>> com.streetbees.sandbox <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 5c9b9fff
    r0 5c9bf683  r1 00000010  r2 5c9bfbe3  r3 5c9ba000
    r4 00000000  r5 5c9b9fff  r6 5c9bfdb0  r7 5c9bf640
    r8 00000010  r9 00000010  sl 636fce58  fp 00000010
    ip 00000000  sp bef03320  lr 00000000  pc 635dd584  cpsr 20000030
    d0  65706f72705f6b70  d1  532f6c616e726500
    d2  5735e2085735e100  d3  5735e2785735e202
    d4  657274732f73656c  d5  722e736565627465
    d6  6e616d2e6d6c6165  d7  2f746e656d656761
    d8  0000000000000000  d9  0000000000000000
    d10 0000000000000000  d11 0000000000000000
    d12 0000000000000000  d13 0000000000000000
    d14 0000000000000000  d15 0000000000000000
    d16 4026000000000000  d17 0000000000000000
    d18 0000000000000105  d19 0000000000000104
    d20 6614485c6614485c  d21 6614485c6614485c
    d22 6614485c6614485c  d23 611345576614485c
    d24 6614485c6614485c  d25 6614485c6614485c
    d26 6614485c6614485c  d27 6614485c6614485c
    d28 6614485c6614485c  d29 3c0c2b366514485b
    d30 390b283356113d4d  d31 0000000011030c0f
    scr 20000010

backtrace:
    #00  pc 00086584  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
    #01  pc 000a9d37  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
    #02  pc 0005ec8d  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so

stack:
         bef032e0  5c9c03a8  
         bef032e4  00001680  
         bef032e8  5c9c0628  
         bef032ec  00001900  
         bef032f0  635d58dd  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef032f4  635dd3cb  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef032f8  00000000  
         bef032fc  63712188  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03300  5c9c03b0  
         bef03304  00000000  
         bef03308  bef03338  [stack]
         bef0330c  00000000  
         bef03310  5c9bf640  
         bef03314  5c9bf640  
         bef03318  df0027ad  
         bef0331c  00000000  
    #00  bef03320  635d6341  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03324  00000001  
         bef03328  0000000f  
         bef0332c  00000008  
         bef03330  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03334  00000008  
         bef03338  5c9bfdb8  
         bef0333c  ffffffff  
         bef03340  00000000  
         bef03344  5c9bf640  
         bef03348  00000001  
         bef0334c  00000001  
         bef03350  00000000  
         bef03354  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03358  5c9be928  
         bef0335c  63600d3b  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
    #01  bef03360  ffffffff  
         bef03364  00000000  
         bef03368  00000000  
         bef0336c  00000008  
         bef03370  60628918  
         bef03374  00000000  
         bef03378  606688a0  
         bef0337c  60628a88  
         bef03380  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03384  00000008  
         bef03388  00000001  
         bef0338c  636238fd  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03390  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef03394  00000008  
         bef03398  00000000  
         bef0339c  60628918  
         ........  ........
    #02  bef033c0  00000000  
         bef033c4  00000000  
         bef033c8  00000000  
         bef033cc  bef034e0  [stack]
         bef033d0  00000000  
         bef033d4  60628918  
         bef033d8  5c9be930  
         bef033dc  000000b8  
         bef033e0  636fd1d4  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef033e4  00000008  
         bef033e8  636fcff4  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef033ec  00000002  
         bef033f0  636fce58  /data/app-lib/com.streetbees.sandbox-1/librealm-jni.so
         bef033f4  00000008  
         bef033f8  00000000  
         bef033fc  00000000  

memory near r0:
    5c9bf660 00000000 00000010 00000000 00000000  
    5c9bf670 00000000 00001000 00000000 00000000  
    5c9bf680 000c0000 00000000 00000000 00000000  
    5c9bf690 000c0000 00000000 00000000 00000000  
    5c9bf6a0 000c0000 00000000 00000000 00000000  
    5c9bf6b0 000c0000 00000c00 00000000 00000000  
    5c9bf6c0 000c0000 0000000c 00000000 00000000  
    5c9bf6d0 000c0000 00000000 00000000 00000000  
    5c9bf6e0 000c0000 00000000 00000000 00000000  
    5c9bf6f0 000c0000 00000c00 00000000 00000000  
    5c9bf700 000c0000 00000000 00000000 00000000  
    5c9bf710 000c0000 00000000 00000000 00000000  
    5c9bf720 000c0000 00000000 00000000 00000000  
    5c9bf730 000c0000 00000c00 00000000 00000000  
    5c9bf740 000c0000 00000000 00000000 00000000  
    5c9bf750 000c0000 00000000 00000000 00000000  

memory near r2:
    5c9bfbc0 000c0000 0000000c 00000000 00000000  
    5c9bfbd0 000c0000 00000000 00000000 00000000  
    5c9bfbe0 000c0000 00000000 00000000 00000000  
    5c9bfbf0 000c0000 00000c00 00000000 00000000  
    5c9bfc00 000c0000 00000000 00000000 00000000  
    5c9bfc10 000c0000 00000000 00000000 00000000  
    5c9bfc20 000c0000 00000000 00000000 00000000  
    5c9bfc30 000c0000 00000c00 00000000 00000000  
    5c9bfc40 000c0000 00000000 00000000 00000000  
    5c9bfc50 000c0000 00000000 00000000 00000000  
    5c9bfc60 000c0000 00000000 00000000 00000000  
    5c9bfc70 000c0000 00000c00 00000000 00000000  
    5c9bfc80 000c0000 00000000 00000000 00000000  
    5c9bfc90 000c0000 00000000 00000000 00000000  
    5c9bfca0 000c0000 00000000 00000000 00000000  
    5c9bfcb0 000c0000 00000c00 00000000 00000000  

memory near r3:
    5c9b9fe0 00000000 00000000 4007ecf1 4007ebe1  
    5c9b9ff0 40075c50 40075630 40069f25 40069f39  
    5c9ba000 00000000 00000000 00000000 00000000  
    5c9ba010 00000010 00000000 00000000 00000000  
    5c9ba020 00001000 00000000 00000000 00000000  
    5c9ba030 00100000 00000000 00000000 00000000  
    5c9ba040 10000000 00000000 00000000 00000000  
    5c9ba050 00000000 00000010 00000000 00000000  
    5c9ba060 00000000 00001000 00000000 00000000  
    5c9ba070 00000000 00100000 00000000 00000000  
    5c9ba080 00000000 10000000 00000000 00000000  
    5c9ba090 00000000 00000000 00000010 00000000  
    5c9ba0a0 00000000 00000000 00001000 00000000  
    5c9ba0b0 00000000 00000000 00100000 00000000  
    5c9ba0c0 00000000 00000000 10000000 00000000  
    5c9ba0d0 00000000 00000000 00000000 00000010  

memory near r5:
    5c9b9fdc 00000000 00000000 00000000 4007ecf1  
    5c9b9fec 4007ebe1 40075c50 40075630 40069f25  
    5c9b9ffc 40069f39 00000000 00000000 00000000  
    5c9ba00c 00000000 00000010 00000000 00000000  
    5c9ba01c 00000000 00001000 00000000 00000000  
    5c9ba02c 00000000 00100000 00000000 00000000  
    5c9ba03c 00000000 10000000 00000000 00000000  
    5c9ba04c 00000000 00000000 00000010 00000000  
    5c9ba05c 00000000 00000000 00001000 00000000  
    5c9ba06c 00000000 00000000 00100000 00000000  
    5c9ba07c 00000000 00000000 10000000 00000000  
    5c9ba08c 00000000 00000000 00000000 00000010  
    5c9ba09c 00000000 00000000 00000000 00001000  
    5c9ba0ac 00000000 00000000 00000000 00100000  
    5c9ba0bc 00000000 00000000 00000000 10000000  
    5c9ba0cc 00000000 00000000 00000000 00000000  

memory near r6:
    5c9bfd90 000c0000 00000000 00000000 00000000  
    5c9bfda0 000c0000 00000000 00000000 00000000  
    5c9bfdb0 000e0000 00000000 00000000 0d000000  
    5c9bfdc0 00000000 00000000 00000000 0c000000  
    5c9bfdd0 00000000 00000000 00000000 00000000  
    5c9bfde0 00000000 00000000 00000000 00000000  
    5c9bfdf0 00000000 00000000 00000000 00000000  
    5c9bfe00 00000000 00000000 00000000 00000000  
    5c9bfe10 00000000 00000000 00000000 00000000  
    5c9bfe20 00000000 00000000 00800000 02000045  
    5c9bfe30 16801180 00000000 00000000 00000000  
    5c9bfe40 00000000 00000000 00000000 00000000  
    5c9bfe50 00000000 00000000 00000000 00000000  
    5c9bfe60 00000000 00000000 00000000 00000000  
    5c9bfe70 00000000 00000000 00000000 00000000  
    5c9bfe80 00000000 00000000 00000000 00000000  

memory near r7:
    5c9bf620 00000010 00000000 00000000 00000000  
    5c9bf630 00001000 00000000 00000000 00000000  
    5c9bf640 00100000 00000000 00000000 00000000  
    5c9bf650 10000000 00000000 00000000 00000000  
    5c9bf660 00000000 00000010 00000000 00000000  
    5c9bf670 00000000 00001000 00000000 00000000  
    5c9bf680 000c0000 00000000 00000000 00000000  
    5c9bf690 000c0000 00000000 00000000 00000000  
    5c9bf6a0 000c0000 00000000 00000000 00000000  
    5c9bf6b0 000c0000 00000c00 00000000 00000000  
    5c9bf6c0 000c0000 0000000c 00000000 00000000  
    5c9bf6d0 000c0000 00000000 00000000 00000000  
    5c9bf6e0 000c0000 00000000 00000000 00000000  
    5c9bf6f0 000c0000 00000c00 00000000 00000000  
    5c9bf700 000c0000 00000000 00000000 00000000  
    5c9bf710 000c0000 00000000 00000000 00000000  

memory near sl:
    636fce38 656b2079 25272079 32252e31 6f642027  
    636fce48 6e207365 6520746f 74736978 0000002e  
    636fce58 6174656d 61746164 00000000 6e6e6143  
    636fce68 6920746f 7865646e 6f727020 74726570  
    636fce78 25272079 32252e31 69203a27 7865646e  
    636fce88 20676e69 706f7270 69747265 6f207365  
    636fce98 79742066 27206570 20273325 6e207369  
    636fcea8 7920746f 69207465 656c706d 746e656d  
    636fceb8 002e6465 766f7250 64656469 68637320  
    636fcec8 20616d65 73726576 206e6f69 69203125  
    636fced8 656c2073 74207373 206e6168 7473616c  
    636fcee8 74657320 72657620 6e6f6973 2e322520  
    636fcef8 00000000 6d697250 20797261 2079656b  
    636fcf08 706f7270 79747265 31252720 2732252e  
    636fcf18 73616820 70756420 6163696c 76206574  
    636fcf28 65756c61 66612073 20726574 7267696d  

memory near sp:
    bef03300 5c9c03b0 00000000 bef03338 00000000  
    bef03310 5c9bf640 5c9bf640 df0027ad 00000000  
    bef03320 635d6341 00000001 0000000f 00000008  
    bef03330 636fce58 00000008 5c9bfdb8 ffffffff  
    bef03340 00000000 5c9bf640 00000001 00000001  
    bef03350 00000000 636fce58 5c9be928 63600d3b  
    bef03360 ffffffff 00000000 00000000 00000008  
    bef03370 60628918 00000000 606688a0 60628a88  
    bef03380 636fce58 00000008 00000001 636238fd  
    bef03390 636fce58 00000008 00000000 60628918  
    bef033a0 5c9be928 ffffffff 41e018e8 bef03508  
    bef033b0 416dd894 41e05da0 bef0351c 635b5c91  
    bef033c0 00000000 00000000 00000000 bef034e0  
    bef033d0 00000000 60628918 5c9be930 000000b8  
    bef033e0 636fd1d4 00000008 636fcff4 00000002  
    bef033f0 636fce58 00000008 00000000 00000000  

code around pc:
    635dd564 fb05429e d0506500 900cf8cd 46012400  
    635dd574 f81546e1 ebc1ec01 1e6a0109 44711e5d  
    635dd584 1c01f803 1040f897 0301ebc8 429d442b  
    635dd594 4619d006 4b01f801 d1fb428d 1040f897  
    635dd5a4 0501f1c1 1b524415 d36e428a d028429e  
    635dd5b4 1040f897 f1b9e7dd d10e0f00 0801f04f  
    635dd5c4 0f00f1bb f108d042 fa5f33ff 9302fc88  
    635dd5d4 e7b446c3 0f00f1bb f109d038 f1b80801  
    635dd5e4 d9f00f02 0859ea49 0898ea48 1818ea48  
    635dd5f4 0801f108 fc88fa5f 33fff10c 46e39302  
    635dd604 46cce79d f8dd693e f887900c 9b01c040  
    635dd614 6b0bfb03 445b9b02 f1b9461c d0040f00  
    635dd624 46514658 f791464a 44d9ec90 bf1c454c  
    635dd634 2200464b f803d003 42a32b01 f1bad1fb  
    635dd644 d02b0f00 0904ebc9 9000f884 e8bdb007  
    635dd654 f10b8ff0 693e33ff e7d89302 d0d4429e  

code around lr:
    00000000 ffffffff ffffffff ffffffff ffffffff  
    00000010 ffffffff ffffffff ffffffff ffffffff  
    00000020 ffffffff ffffffff ffffffff ffffffff  
    00000030 ffffffff ffffffff ffffffff ffffffff  
    00000040 ffffffff ffffffff ffffffff ffffffff  
    00000050 ffffffff ffffffff ffffffff ffffffff  
    00000060 ffffffff ffffffff ffffffff ffffffff  
    00000070 ffffffff ffffffff ffffffff ffffffff  
    00000080 ffffffff ffffffff ffffffff ffffffff  
    00000090 ffffffff ffffffff ffffffff ffffffff  
    000000a0 ffffffff ffffffff ffffffff ffffffff  
    000000b0 ffffffff ffffffff ffffffff ffffffff  
    000000c0 ffffffff ffffffff ffffffff ffffffff  
    000000d0 ffffffff ffffffff ffffffff ffffffff  
    000000e0 ffffffff ffffffff ffffffff ffffffff  
    000000f0 ffffffff ffffffff ffffffff ffffffff  

memory map around fault addr 5c9b9fff:
    5c9ad000-5c9b9000 /system/lib/libstagefright_amrnb_common.so
    5c9b9000-5c9ba000 /system/lib/libstagefright_amrnb_common.so
    5c9ba000-5c9bb000 /system/lib/libstagefright_amrnb_common.so
@JorgeCastilloPrz

This comment has been minimized.

Copy link

JorgeCastilloPrz commented Nov 14, 2016

We are having the same issue on a Wiko WAX Version 8 Build number JLS36C, Android 4.3 (API 18). Realm version being used is 2.2.0.

11-14 09:40:02.873 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
11-14 09:40:02.873 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1934350728
11-14 09:40:02.874 32244-17573/com.jobandtalent.android I/GCMPushStorage: Saving regId on app version 40200
11-14 09:40:02.875 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1934350728
11-14 09:40:02.880 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeHasTable 1891232144
11-14 09:40:02.881 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeCloseSharedRealm 1891232144
11-14 09:40:02.884 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
11-14 09:40:02.884 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1934350728
11-14 09:40:02.885 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1934348400
11-14 09:40:02.885 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1934350728
11-14 09:40:02.885 1233-8609/? I/Icing: Indexing C197434566B6879F810C1C18B7A6F7447DEC579D from com.google.android.googlequicksearchbox
11-14 09:40:02.886 1233-8609/? I/Icing: Not enough disk space for indexing trimmable
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1934348400
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1934348400
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1934348400
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1934348400
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeBeginTransaction 1934348400
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1934348400
11-14 09:40:02.886 17579-17579/com.flowup.test V/REALM_JNI:  --> Java_io_realm_internal_SharedRealm_nativeSetVersion 1934348400

(Plus all the signal 11 (SIGSEGV) and memory position stuff you saw on previous reports from this issue)

The error occurs when we try to get the default Realm instance for the first time.

@Codeglee

This comment has been minimized.

Copy link

Codeglee commented Nov 14, 2016

This is a critical issue for us too, unfortunately we can't control the devices that our users choose.
I'll have my fingers crossed on you guys nailing this one shortly otherwise we'll have to come up with a coping strategy.

@Codeglee

This comment has been minimized.

Copy link

Codeglee commented Nov 29, 2016

@cmelchior Anything we can do to help with getting this fixed? Or any updates?

@diegomontoya

This comment has been minimized.

Copy link
Contributor

diegomontoya commented Nov 30, 2016

@cmelchior Please prioritize this issues since this and blackberry bug is preventing us from upgrading from stable 1.20 release to 2.0 branch and causing untold headaches for the brave users that jumped on the 2.0 bandwagon way too early. +Christmas wish.

@beeender

This comment has been minimized.

Copy link
Contributor

beeender commented Nov 30, 2016

@diegomontoya @Codeglee @JorgeCastilloPrz @vykintas I made a deskbuild to enable more logs and debugging symbols long time ago, but I forgot to share it ... The apk file can be found here https://drive.google.com/file/d/0B3487zszzj2eR0MtTmh4ZzRXajA/view If you have any device can reproduce this issue, would you please run the apk and get a full logcat for me? Thanks!!

@Zhuinden to enable the native log now, just use RealmLog.setLevel(LogLevel.ALL);.

@diegomontoya

This comment has been minimized.

Copy link
Contributor

diegomontoya commented Nov 30, 2016

@beeender

V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1522936368
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1522936368
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeHasTable 1523175744
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeCloseSharedRealm 1523175744
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1527525080
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1527525080
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeBeginTransaction 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1522919096
V/REALM   (15214):  --> Java_io_realm_internal_SharedRealm_nativeSetVersion 1522919096
F/libc    (15214): Fatal signal 11 (SIGSEGV) at 0x5aa6fff6 (code=2), thread 15214 (.examples.intro)
D/CrashAnrDetector(  566): Build: samsung/wilcox3gzm/wilcox3g:4.2.2/JDQ39/G3818ZMUAOH1:user/release-keys
D/CrashAnrDetector(  566): Hardware: PXA1088
D/CrashAnrDetector(  566): Revision: 6
D/CrashAnrDetector(  566): Bootloader: unknown
D/CrashAnrDetector(  566): Radio: unknown
D/CrashAnrDetector(  566): Kernel: Linux version 3.4.5-2258295 (se.infra@SWDB4706) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Aug 21 18:30:43 KST 2015
D/CrashAnrDetector(  566): 
D/CrashAnrDetector(  566): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
D/CrashAnrDetector(  566): Build fingerprint: 'samsung/wilcox3gzm/wilcox3g:4.2.2/JDQ39/G3818ZMUAOH1:user/release-keys'
D/CrashAnrDetector(  566): Revision: '6'
D/CrashAnrDetector(  566): pid: 15015, tid: 15015, name: .examples.intro  >>> io.realm.examples.intro <<<
D/CrashAnrDetector(  566): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 5aa6fff6
D/CrashAnrDetector(  566):     r0 5aa70003  r1 5aa6fff6  r2 5ab51cd7  r3 5aa6fff6
D/CrashAnrDetector(  566):     r4 00000000  r5 5aa70002  r6 5ab9d120  r7 5d0ded20
D/CrashAnrDetector(  566):     r8 00000010  r9 00000010  sl 5d8ed738  fp 00000010
D/CrashAnrDetector(  566):     ip 5aa70006  sp bef29318  lr 00000000  pc 5d7cf002  cpsr 20000030
D/CrashAnrDetector(  566):     d0  000000013fc00000  d1  3ff000003fc00000
D/CrashAnrDetector(  566):     d2  000000003f800000  d3  3f1155e54e7e8408
D/CrashAnrDetector(  566):     d4  0000000000000000  d5  3f80000000000000
D/CrashAnrDetector(  566):     d6  3f80000000000000  d7  3f8000003f800000
D/CrashAnrDetector(  566):     d8  0000000000000000  d9  0000000000000000
D/CrashAnrDetector(  566):     d10 0000000000000000  d11 0000000000000000
D/CrashAnrDetector(  566):     d12 0000000000000000  d13 0000000000000000
D/CrashAnrDetector(  566):     d14 0000000000000000  d15 0000000000000000
D/CrashAnrDetector(  566):     d16 0000000d0000000c  d17 0000000000000000
D/CrashAnrDetector(  566):     d18 0000000000000000  d19 0000000000000000
D/CrashAnrDetector(  566):     d20 4008000000000000  d21 3fbc71c71c71c71c
D/CrashAnrDetector(  566):     d22 3fcc7288e957b53b  d23 3fd24998d6307188
D/CrashAnrDetector(  566):     d24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752
D/CrashAnrDetector(  566):     d26 0000000000000000  d27 0000000000000000
D/CrashAnrDetector(  566):     d28 0000000000000005  d29 0000000000000000
D/CrashAnrDetector(  566):     d30 0000000000000000  d31 0000000000000000
D/CrashAnrDetector(  566):     scr 20000010
D/CrashAnrDetector(  566): 
D/CrashAnrDetector(  566): backtrace:
D/CrashAnrDetector(  566):     #00  pc 00082002  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::ArrayString::set(unsigned int, realm::StringData)+161)
D/CrashAnrDetector(  566):     #01  pc 000a4f97  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::Group::do_get_or_add_table(realm::StringData, bool (*)(realm::Spec const&), void (*)(realm::Table&), bool*)+150)
D/CrashAnrDetector(  566):     #02  pc 0005a6ed  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so ((anonymous namespace)::create_metadata_tables(realm::Group&)+148)
D/CrashAnrDetector(  566): 
D/CrashAnrDetector(  566): stack:
D/CrashAnrDetector(  566):          bef292d8  5ab9d718  
D/CrashAnrDetector(  566):          bef292dc  00001680  
D/CrashAnrDetector(  566):          bef292e0  5ab9d998  
D/CrashAnrDetector(  566):          bef292e4  00001900  
D/CrashAnrDetector(  566):          bef292e8  5d7c721b  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::ArrayString::calc_item_count(unsigned int, unsigned int) const)
D/CrashAnrDetector(  566):          bef292ec  5d7cee35  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::Array::alloc(unsigned int, unsigned int)+252)
D/CrashAnrDetector(  566):          bef292f0  00000000  
D/CrashAnrDetector(  566):          bef292f4  5d902170  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
D/CrashAnrDetector(  566):          bef292f8  5ab9d720  
D/CrashAnrDetector(  566):          bef292fc  00000000  
D/CrashAnrDetector(  566):          bef29300  bef29330  [stack]
D/CrashAnrDetector(  566):          bef29304  00000000  
D/CrashAnrDetector(  566):          bef29308  5d0ded20  
D/CrashAnrDetector(  566):          bef2930c  5d0ded20  
D/CrashAnrDetector(  566):          bef29310  df0027ad  
D/CrashAnrDetector(  566):          bef29314  00000000  
D/CrashAnrDetector(  566):     #00  bef29318  5d7c7c91  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (long long realm::Array::get<16u>(unsigned int) const)
D/CrashAnrDetector(  566):          bef2931c  00000001  
D/CrashAnrDetector(  566):          bef29320  0000000f  
D/CrashAnrDetector(  566):          bef29324  00000008  
D/CrashAnrDetector(  566):          bef29328  5d8ed738  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
D/CrashAnrDetector(  566):          bef2932c  00000008  
D/CrashAnrDetector(  566):          bef29330  5ab9d128  
D/CrashAnrDetector(  566):          bef29334  ffffffff  
D/CrashAnrDetector(  566):          bef29338  00000000  
D/CrashAnrDetector(  566):          bef2933c  5d0ded20  
D/CrashAnrDetector(  566):          bef29340  00000001  
D/CrashAnrDetector(  566):          bef29344  00000001  
D/CrashAnrDetector(  566):          bef29348  00000000  
D/CrashAnrDetector(  566):          bef2934c  5d8ed738  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
D/CrashAnrDetector(  566):          bef29350  5d0de008  
D/CrashAnrDetector(  566):          bef29354  5d7f1f9b  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::Group::do_get_or_add_table(realm::StringData, bool (*)(realm::Spec const&), void (*)(realm::Table&), bool*)+154)
D/CrashAnrDetector(  566):     #01  bef29358  ffffffff  
D/CrashAnrDetector(  566):          bef2935c  00000000  
D/CrashAnrDetector(  566):          bef29360  00000000  
D/CrashAnrDetector(  566):          bef29364  00000008  
D/CrashAnrDetector(  566):          bef29368  5c6d25a8  
D/CrashAnrDetector(  566):          bef2936c  00000000  
D/CrashAnrDetector(  566):          bef29370  5ac49680  
D/CrashAnrDetector(  566):          bef29374  5c6d2718  
D/CrashAnrDetector(  566):          bef29378  5d8ed738  /data/app-lib
@diegomontoya

This comment has been minimized.

Copy link
Contributor

diegomontoya commented Nov 30, 2016

Below 4.2.2 devices ran the test apk fine without crash. Appears bug is Samsung 4.2.2 specific.

LG VS985 4G LTE (4.2.2)
ZTE V818 (4.2.2)

@diegomontoya

This comment has been minimized.

Copy link
Contributor

diegomontoya commented Nov 30, 2016

@beeender Full logcat sent to support@realm.io

@JamesPaulKey

This comment has been minimized.

Copy link

JamesPaulKey commented Nov 30, 2016

Still broken on realm 2.2.1

@beeender log attached, seems near identical to @diegomontoya's

11-30 09:15:02.069 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
11-30 09:15:02.069 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1522990864
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1522990864
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeHasTable 1523020728
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeCloseSharedRealm 1523020728
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeCreateConfig
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeGetSharedRealm 1522969416
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeCloseConfig 1522969416
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeIsClosed 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeBeginTransaction 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeGetVersion 1540182136
11-30 09:15:02.077 5575-5575/? V/REALM:  --> Java_io_realm_internal_SharedRealm_nativeSetVersion 1540182136
Build: samsung/goldenve3gxx/goldenve3g:4.2.2/JDQ39/I8200NXXUANI2:user/release-keys
 Hardware: PXA986
 Revision: 3
 Bootloader: I8200NXXUANI2
 Radio: unknown
 Kernel: Linux version 3.4.5-2780647 (se.infra@SWDA2603) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #2 SMP PREEMPT Tue Sep 23 20:20:02 KST 2014
 
 *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 Build fingerprint: 'samsung/goldenve3gxx/goldenve3g:4.2.2/JDQ39/I8200NXXUANI2:user/release-keys'
 Revision: '3'
 pid: 5632, tid: 5632, name: .examples.intro  >>> io.realm.examples.intro <<<
 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 5ac31ff6
     r0 5ac32003  r1 5ac31ff6  r2 5ac6bc17  r3 5ac31ff6
     r4 00000000  r5 5ac32002  r6 5ac7f020  r7 5dc88d20
     r8 00000010  r9 00000010  sl 5e526738  fp 00000010
     ip 00000000  sp bedbf318  lr 00000000  pc 5e408002  cpsr 20000030
     d0  65706f72705f6b70  d1  726168535f6c6100
     d2  5f6d6c6165526400  d3  6553657669746102
     d4  6665642f73656c69  d5  6165722e746c7561
     d6  67616e616d2e6d6c  d7  63612f746e656d65
     d8  0000000000000000  d9  0000000000000000
     d10 0000000000000000  d11 0000000000000000
     d12 0000000000000000  d13 0000000000000000
     d14 0000000000000000  d15 0000000000000000
     d16 0000000d0000000c  d17 0000000000000000
     d18 0000000000000000  d19 0000000000000000
     d20 4008000000000000  d21 3fbc71c71c71c71c
     d22 3fcc7288e957b53b  d23 3fd24998d6307188
     d24 3fd99a27ad32ddf5  d25 3fe555b0aaeac752
     d26 0000000000000000  d27 0000000000000000
     d28 0000000000000000  d29 0000000000000000
     d30 0000000000000000  d31 0000000000000000
     scr 20000010
 
 backtrace:
     #00  pc 00082002  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::ArrayString::set(unsigned int, realm::StringData)+161)
     #01  pc 000a4f97  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::Group::do_get_or_add_table(realm::StringData, bool (*)(realm::Spec const&), void (*)(realm::Table&), bool*)+150)
     #02  pc 0005a6ed  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so ((anonymous namespace)::create_metadata_tables(realm::Group&)+148)
 
 stack:
          bedbf2d8  5ac7f618  
          bedbf2dc  00001680  
          bedbf2e0  5ac7f898  
          bedbf2e4  00001900  
          bedbf2e8  5e40021b  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::ArrayString::calc_item_count(unsigned int, unsigned int) const)
          bedbf2ec  5e407e35  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::Array::alloc(unsigned int, unsigned int)+252)
          bedbf2f0  00000000  
          bedbf2f4  5e53b170  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
          bedbf2f8  5ac7f620  
          bedbf2fc  00000000  
          bedbf300  bedbf330  [stack]
          bedbf304  00000000  
          bedbf308  5dc88d20  
          bedbf30c  5dc88d20  
          bedbf310  df0027ad  
          bedbf314  00000000  
     #00  bedbf318  5e400c91  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (long long realm::Array::get<16u>(unsigned int) const)
          bedbf31c  00000001  
          bedbf320  0000000f  
          bedbf324  00000008  
          bedbf328  5e526738  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
          bedbf32c  00000008  
          bedbf330  5ac7f028  
          bedbf334  ffffffff  
          bedbf338  00000000  
          bedbf33c  5dc88d20  
          bedbf340  00000001  
          bedbf344  00000001  
          bedbf348  00000000  
          bedbf34c  5e526738  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so
          bedbf350  5dc88008  
          bedbf354  5e42af9b  /data/app-lib/io.realm.examples.intro-1/librealm-jni.so (realm::Group::do_get_or_add_table(realm::StringData, bool (*)(realm::Spec const&), void (*)(realm::Table&), bool*)+154)
     #01  bedbf358  ffffffff  
          bedbf35c  00000000  
          bedbf360  00000000  
          bedbf364  00000008  
          bedbf368  5acec378  
          bedbf36c  00000000  
          bedbf370  5ac6f100  
          bedbf374  5acec4e8  
          bedbf378  5e526738  
11-30 09:15:09.132 541-620/? D/CrashAnrDetector: processName:io.realm.examples.intro
11-30 09:15:09.132 541-620/? D/CrashAnrDetector: broadcastEvent : io.realm.examples.intro SYSTEM_TOMBSTONE
@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Mar 22, 2017

@cmelchior Does this mean you just need to change this -O2 and -Og to -O1 in this CMakeLists file thing?

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Mar 22, 2017

@beeender do you think there is a chance that the realm-jni moving to CMake between 1.2.0 => 2.0.0 is what caused a change here? It is weird because it is -Os in both sides of the commit.

( #2960 )


maybe even realm/realm-core#2033 is relevant.

@beeender

This comment has been minimized.

Copy link
Contributor

beeender commented Mar 23, 2017

@Zhuinden #2960 only changed the build in the java side, and it is linking with a released core lib. This compiler bug should only impact the core build, since we didn't use memmove in the jni side code.

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Mar 23, 2017

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Mar 23, 2017

I am currently testing various combination of optimization flags, operating systems and compiler (only C++, not Android or Java).

EDIT:

I have been trying with the following test in Realm Core:

TEST(LangBindHelper_Memmove)
{
    char *array = strdup("Foobar");
    void *ptr = memmove(array + 1, array, sizeof("Foobar") - 2);
    CHECK(ptr == array + 1);
}

It is basically the test found in https://code.google.com/p/android/issues/detail?id=81692, and it testing the basic behaviour of memmove. The reason for testing memmove is that we have seen the crash in std::copy_backward which typically calls memmove (see for example line 339 in http://www.fifi.org/doc/gij-3.0/libstdc++/html_user/stl__algobase_8h-source.html).

The test passes on MacOS (clang with -O3) and OnePlus One (Android 6.0.1, gcc 4.9 with -Os). But the test fails on Samsung Galaxy Tab 3 (SM-T111, Android 4.2.2, gcc 4.9 with -Os).

The fix in https://bugreports.qt.io/browse/QTBUG-34984 (adding -fno-builtin-memmove) did not work for me, and I will continue to explore other possibilities (including implementing our own version of copy_backward).

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Mar 27, 2017

However, it is also noted that creating their own memcopy method did fix the rpoblem, meaning I guess implementing your own memcopy and own copy_backward method is the consistent way to go.

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Mar 27, 2017

I still get crashes when building everything with -fno-builtin-memove and -fno-builtin-memcpy. Next step is to try my own copy_backward.

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Mar 29, 2017

What's odd to me is that -fno-builtin-memmove didn't work while it did for Qt. I wonder what is different?

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Mar 29, 2017

Both memmove and memcpy are highly optimized functions, and I believe that we are triggering other code paths that Qt does. I have tried various combination of compiler flags and my own versions of copy_backward and copy_n but haven't yet found a 100 % stable solution.

@beeender

This comment has been minimized.

Copy link
Contributor

beeender commented Mar 30, 2017

I am thinking about maybe there is another approach to solve this:

  1. When the app starts, to testing of memmove and set function ptr workaround_memmove = workaround_needed ? &fixed_memmove : &org_memmovetrue;.
  2. use gcc's -wrap feature to wrap the memmove:
extern "C"
{
void* org_memmove(void *dest, const void *src, size_t n)
{
    return __real_memmove(dest, src, n);
}

void* fixed_memmove()
{
    return __real_memmove(dest, src, n) - n;
}

void *__wrap_memmove(void *dest, const void *src, size_t n)
{
    return (*workaround_memmove)(dest, src, n);
}
}

since it is using function pointer here, there should be no performance penalty at all for the devices which don't have this problem.

@beeender

This comment has been minimized.

Copy link
Contributor

beeender commented Mar 30, 2017

To anyone who can reproduce this issue:

We made a fix #4402 which works for the original test on our SM-T111. But it crashes when it comes with a lot memory pressure. Since the device itself is quite unstable, it crashes even in other apps/system apps, I'd like to believe there are some other system bugs on the device.

So, we want to verify the fix on some other devices. If you have a device which can reproduce this issue before, please try the fix.
There are two ways to try it:

  1. Compile realm-java from #4402 branch, and use it through mavenLocal.
    or
  2. I made a desk build which can be found in the attached zip file.
  • unzip it to $HOME/.m2/repository
  • change the realm version in gradle classpath "io.realm:realm-gradle-plugin:3.0.1-SNAPSHOT"
  • add mavenLocal in top level build.gradle like:
buildscript {
//...
    repositories {
        //...
        mavenLocal()
    }
//...
}

allprojects {
    repositories {
        //...
        mavenLocal()
    }
}

If your device has this problem, with the snapshot, you should be able to see:
memmove is broken on this device. switch to the builtin implementation. in the logcat.

Then build the apk to see if it works with the fix. Thanks.

realm-java-maven-local-3.0.1-0.zip

@cmelchior cmelchior removed this from the 3.1 milestone Apr 6, 2017

@fmrsabino

This comment has been minimized.

Copy link

fmrsabino commented Apr 6, 2017

As this is apparently not part of the 3.1 release is there a new ETA?

Update: The patch by @beeender worked on GT-I8200N (Galaxy S Ⅲ mini).

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Apr 6, 2017

Well I sure hope it's 3.1.1, considering the fix is there and only halted by bureaucracy

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Apr 6, 2017

@fmrsabino Thanks for the positive feedback. As we are considering mixing it source code from another open source project, we need to have to full understanding of the legal implications (for our users) before merging and releasing.

@fmrsabino

This comment has been minimized.

Copy link

fmrsabino commented Apr 6, 2017

Understood. Thanks for the update @kneth ! 👍

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Apr 7, 2017

We have merged #4402 and @beeender is currently preparing version 3.1.1. I thank everybody for helping us with bug reports, testing custom builds/snapshots and suggestions. The many builds by @diegomontoya helped us in the understanding, and @jonasbark has tested builds in his test lab.

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Apr 7, 2017

Realm Java version 3.1.1 is online and contains the fix.

@onkarvadagaonkar

This comment has been minimized.

Copy link

onkarvadagaonkar commented Apr 14, 2017

Implemented Realm Java version 3.1.1 and its working fine on Samsung device Galaxy Tab ( SM-T111) API 17. Thank you team Realm

@nguyendat

This comment has been minimized.

Copy link

nguyendat commented Apr 14, 2017

Working fine on T111 with version 3.1.1. Thanks

@Zhuinden

This comment has been minimized.

Copy link
Contributor

Zhuinden commented Apr 14, 2017

3.1.2 is better, but woo!

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented Apr 18, 2017

@onkarvadagaonkar @nguyendat Thanks for the feedback

@kneth

This comment has been minimized.

Copy link
Contributor

kneth commented May 4, 2017

I have written a blog post about this bug: https://news.realm.io/news/when-memmove-fails

@kneth kneth referenced this issue Jul 31, 2017

Closed

Crash on samsung #1163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.