Crash debug then use same realm in background service


#1

Originally my application used Sqlite.
It consists of a user interface and a hybrid service.
This service must be launched via BootReceiver at device startup (not supported in the example).

To facilitate my understanding of problem I have reduced the code .

05-29 12:45:36.303 19983 19983 F DEBUG   : Build fingerprint: 'google/sdk_google_phone_x86/generic_x86:7.1.1/NYC/4729347:userdebug/test-keys'
05-29 12:45:36.303 19983 19983 F DEBUG   : Revision: '0'
05-29 12:45:36.304 19983 19983 F DEBUG   : ABI: 'x86'
05-29 12:45:36.304 19983 19983 F DEBUG   : pid: 19957, tid: 19978, name: Threadpool work  >>> fr.test.aps.counter <<<
05-29 12:45:36.304 19983 19983 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-29 12:45:36.304 19983 19983 F DEBUG   :     eax 00000000  ebx 00004df5  ecx 00004e0a  edx 00000006
05-29 12:45:36.304 19983 19983 F DEBUG   :     esi 882ff978  edi 882ff920
05-29 12:45:36.304 19983 19983 F DEBUG   :     xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
05-29 12:45:36.305 19983 19983 F DEBUG   :     eip acbab424  ebp 882ff778  esp 882ff71c  flags 00200296
05-29 12:45:36.314 19983 19983 F DEBUG   :
05-29 12:45:36.314 19983 19983 F DEBUG   : backtrace:
05-29 12:45:36.314 19983 19983 F DEBUG   :     #00 pc ffffe424  [vdso:acbab000] (__kernel_vsyscall+16)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #01 pc 0007a03c  /system/lib/libc.so (tgkill+28)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #02 pc 00075885  /system/lib/libc.so (pthread_kill+85)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #03 pc 0002785a  /system/lib/libc.so (raise+42)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #04 pc 0001ee36  /system/lib/libc.so (abort+86)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #05 pc 0046bab4  /data/app/fr.test.aps-1/lib/x86/librealm-wrappers.so (_ZN9__gnu_cxx27__verbose_terminate_handlerEv+452)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #06 pc 00433b17  /data/app/fr.test.aps-1/lib/x86/librealm-wrappers.so (_ZN10__cxxabiv111__terminateEPFvvE+23)
05-29 12:45:36.314 19983 19983 F DEBUG   :     #07 pc 00433baf  /data/app/fr.test.aps-1/lib/x86/librealm-wrappers.so (_ZSt9terminatev+31)
05-29 12:45:36.315 19983 19983 F DEBUG   :     #08 pc 0046a73d  /data/app/fr.test.aps-1/lib/x86/librealm-wrappers.so (execute_native_thread_routine+141)
05-29 12:45:36.315 19983 19983 F DEBUG   :     #09 pc 00074fe2  /system/lib/libc.so (_ZL15__pthread_startPv+210)
05-29 12:45:36.315 19983 19983 F DEBUG   :     #10 pc 0002029e  /system/lib/libc.so (__start_thread+30)
05-29 12:45:36.315 19983 19983 F DEBUG   :     #11 pc 0001e076  /system/lib/libc.so (__bionic_clone+70)

The strangest thing is that I was able to run the counter 3 times!
This morning it worked only once after update Fody 2.4.6 -> 2.5 (Screenshot directory).
But impossible to reproduce!