sqlcipher / android-database-sqlcipher

Android SQLite API based on SQLCipher
https://www.zetetic.net/sqlcipher/sqlcipher-for-android/
Other
2.76k stars 568 forks source link

Getting crash while using SQL Cipher: Fatal signal 11 (SIGSEGV) #86

Closed ankitmittal000 closed 11 years ago

ankitmittal000 commented 11 years ago

Hi, I have used SQL cipher in my application. It is working fine on AVD but on device it sometimes gives crash and sometimes work fine. The log for the same is

D/dalvikvm( 4185): Added shared lib /data/data/com.dell.email/lib/libstlport_shared.so 0x41b58120 D/dalvikvm( 4185): No JNI_OnLoad found in /data/data/com.dell.email/lib/libstlport_shared.so 0x41b58120, skipping init D/dalvikvm( 4185): Trying to load lib /data/data/com.dell.email/lib/libsqlcipher_android.so 0x41b58120 D/dalvikvm( 4185): Added shared lib /data/data/com.dell.email/lib/libsqlcipher_android.so 0x41b58120 D/dalvikvm( 4185): No JNI_OnLoad found in /data/data/com.dell.email/lib/libsqlcipher_android.so 0x41b58120, skipping init D/dalvikvm( 4185): Trying to load lib /data/data/com.dell.email/lib/libdatabase_sqlcipher.so 0x41b58120 D/dalvikvm( 4185): Added shared lib /data/data/com.dell.email/lib/libdatabase_sqlcipher.so 0x41b58120 I/Database( 4185): JNI_OnLoad called I/Database( 4185): JNI_OnLoad register methods D/dalvikvm( 4185): GC_CONCURRENT freed 202K, 3% free 11001K/11271K, paused 17ms+2ms, total 36ms F/libc ( 4185): Fatal signal 11 (SIGSEGV) at 0x5dc786f2 (code=1), thread 4199 (AsyncTask #1) I/DEBUG ( 3147): * * * * * * * * * * * * * * * * I/DEBUG ( 3147): Build fingerprint: 'google/takju/maguro:4.1.2/JZO54K/485486:user/release-keys' I/DEBUG ( 3147): pid: 4185, tid: 4199, name: AsyncTask #1 >>> com.dell.email <<< I/DEBUG ( 3147): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 5dc786f2 I/DEBUG ( 3147): r0 5dc786f0 r1 00000000 r2 5be69bd4 r3 5d75f790 I/DEBUG ( 3147): r4 5d552c34 r5 5dc786f0 r6 5d7113cd r7 00000001 I/DEBUG ( 3147): r8 5c0df9c0 r9 00000001 sl 5d75e4e0 fp 5d75f790 I/DEBUG ( 3147): ip 00007500 sp 5d552600 lr 5d717e57 pc 5d7175b2 cpsr 60000030 I/DEBUG ( 3147): d0 6d726e2e63666e2f d1 69616d652e6c6c63 I/DEBUG ( 3147): d2 452f736573616275 d3 766f72506c69612f I/DEBUG ( 3147): d4 56bd463856bd42b0 d5 56bd46a856bd4670 I/DEBUG ( 3147): d6 56bd471856bd46e0 d7 56bd478856bd4750 I/DEBUG ( 3147): d8 0000000000000000 d9 0000000000000000 I/DEBUG ( 3147): d10 0000000000000000 d11 0000000000000000 I/DEBUG ( 3147): d12 0000000000000000 d13 0000000000000000 I/DEBUG ( 3147): d14 0000000000000000 d15 0000000000000000 I/DEBUG ( 3147): d16 0000000000000013 d17 0000000000000001 I/DEBUG ( 3147): d18 0000000000000000 d19 00bc800000b98000 I/DEBUG ( 3147): d20 00b6802e00b3802d d21 00bc802f00b9802f I/DEBUG ( 3147): d22 0707070703030303 d23 0000002f0000002e I/DEBUG ( 3147): d24 0000000000000000 d25 0000000000000000 I/DEBUG ( 3147): d26 0000002f0000002f d27 0000002f0000002f I/DEBUG ( 3147): d28 0001000000010000 d29 0001000000010000 I/DEBUG ( 3147): d30 0003000000030000 d31 0003000000030000 I/DEBUG ( 3147): scr 80000010 I/DEBUG ( 3147): I/DEBUG ( 3147): backtrace: I/DEBUG ( 3147): #00 pc 000c45b2 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #01 pc 000c4e53 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #02 pc 000c51f3 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #03 pc 000c54ab /data/data/com.dell.email/lib/libsqlcipher_android.so (udata_openChoice_46+50) I/DEBUG ( 3147): #04 pc 000bedfd /data/data/com.dell.email/lib/libsqlcipher_android.so (icu46::Normalizer2Impl::load(char const, char const_, UErrorCode&)+36) I/DEBUG ( 3147): #05 pc 000c1a3f /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #06 pc 000c1ce7 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #07 pc 000bc8f5 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #08 pc 000c12bd /data/data/com.dell.email/lib/libsqlcipher_android.so (icu_46::Normalizer2Factory::getNFDInstance(UErrorCode&)+24) I/DEBUG ( 3147): #09 pc 000821b5 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #10 pc 00082205 /data/data/com.dell.email/lib/libsqlcipher_android.so (uprv_init_collIterate_46+8) I/DEBUG ( 3147): #11 pc 0008a9e1 /data/data/com.dell.email/lib/libsqlcipher_android.so (ucol_openElements_46+92) I/DEBUG ( 3147): #12 pc 000828c3 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #13 pc 00082ebf /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #14 pc 0008384b /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #15 pc 0008b923 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #16 pc 0008bfb7 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #17 pc 0008c351 /data/data/com.dell.email/lib/libsqlcipher_android.so (ucol_open_46+20) I/DEBUG ( 3147): #18 pc 0002f0f1 /data/data/com.dell.email/lib/libsqlcipher_android.so (register_android_functions+16) I/DEBUG ( 3147): #19 pc 00004029 /data/data/com.dell.email/lib/libdatabase_sqlcipher.so (sqlcipher::dbopen(JNIEnv, jobject, jstring, int)+200) I/DEBUG ( 3147): #20 pc 0001de30 /system/lib/libdvm.so (dvmPlatformInvoke+112) I/DEBUG ( 3147): #21 pc 0004d083 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const, JValue, Method const, Thread)+394) I/DEBUG ( 3147): #22 pc 00027260 /system/lib/libdvm.so I/DEBUG ( 3147): #23 pc 0002bb68 /system/lib/libdvm.so (dvmInterpret(Thread, Method const, JValue)+180) I/DEBUG ( 3147): #24 pc 0005f7f1 /system/lib/libdvm.so (dvmCallMethodV(Thread, Method const, Object, bool, JValue_, std::__valist)+272) I/DEBUG ( 3147): #25 pc 0005f81b /system/lib/libdvm.so (dvmCallMethod(Thread, Method const, Object, JValue_, ...)+20) I/DEBUG ( 3147): #26 pc 000543d3 /system/lib/libdvm.so I/DEBUG ( 3147): #27 pc 00012bb0 /system/lib/libc.so (__thread_entry+48) I/DEBUG ( 3147): #28 pc 00012308 /system/lib/libc.so (pthread_create+172) I/DEBUG ( 3147): I/DEBUG ( 3147): stack: I/DEBUG ( 3147): 5d5525c0 5c63ae78
I/DEBUG ( 3147): 5d5525c4 5d7172c9 /data/data/com.dell.email/lib/libsqlcipher_android.so (icu_46::CharString::ensureCapacity(int, int, UErrorCode&)+168) I/DEBUG ( 3147): 5d5525c8 00000218
I/DEBUG ( 3147): 5d5525cc 5d55289d
I/DEBUG ( 3147): 5d5525d0 5d552c34
I/DEBUG ( 3147): 5d5525d4 5d77cf90 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d5525d8 5d5527a8
I/DEBUG ( 3147): 5d5525dc 5d552c34
I/DEBUG ( 3147): 5d5525e0 00000243
I/DEBUG ( 3147): 5d5525e4 5d783020 /data/data/com.dell.email/files/icu/icudt46l.dat I/DEBUG ( 3147): 5d5525e8 5d5527ea
I/DEBUG ( 3147): 5d5525ec 0000033a
I/DEBUG ( 3147): 5d5525f0 5d552600
I/DEBUG ( 3147): 5d5525f4 5c0df9c0
I/DEBUG ( 3147): 5d5525f8 df0027ad
I/DEBUG ( 3147): 5d5525fc 00000000
I/DEBUG ( 3147): #00 5d552600 5d75f790 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d552604 5d552758
I/DEBUG ( 3147): 5d552608 5d719bf9 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d55260c 5d552c34
I/DEBUG ( 3147): 5d552610 00000001
I/DEBUG ( 3147): 5d552614 5d717e57 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): #01 5d552618 5d75f860 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d55261c 5d552758
I/DEBUG ( 3147): 5d552620 5d552c34
I/DEBUG ( 3147): 5d552624 9080653d
I/DEBUG ( 3147): 5d552628 5d552654
I/DEBUG ( 3147): 5d55262c 5d78199c
I/DEBUG ( 3147): 5d552630 5d75e4e0 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d552634 5d552c34
I/DEBUG ( 3147): 5d552638 00001000
I/DEBUG ( 3147): 5d55263c 5d552c34
I/DEBUG ( 3147): 5d552640 5d552854
I/DEBUG ( 3147): 5d552644 5d5526d4
I/DEBUG ( 3147): 5d552648 5d55275c
I/DEBUG ( 3147): 5d55264c 40138571 /system/lib/libc.so (dlfree+56) I/DEBUG ( 3147): 5d552650 40138539 /system/lib/libc.so (dlfree) I/DEBUG ( 3147): 5d552654 00007cd0
I/DEBUG ( 3147): ........ ........ I/DEBUG ( 3147): #02 5d552680 5d5528cd
I/DEBUG ( 3147): 5d552684 5d75e4e0 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d552688 5d75f790 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d55268c 5d75f860 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d552690 5d7113cd /data/data/com.dell.email/lib/libsqlcipher_android.so (icu46::Normalizer2Impl::isAcceptable(void, char const, char const, UDataInfo const_)) I/DEBUG ( 3147): 5d552694 5be69bd4
I/DEBUG ( 3147): 5d552698 5d552758
I/DEBUG ( 3147): 5d55269c 5d552c34
I/DEBUG ( 3147): 5d5526a0 5d5526a9
I/DEBUG ( 3147): 5d5526a4 00000000
I/DEBUG ( 3147): 5d5526a8 5d77cf90 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d5526ac 5d75f790 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d5526b0 5d75f860 /data/data/com.dell.email/lib/libsqlcipher_android.so I/DEBUG ( 3147): 5d5526b4 00000218
I/DEBUG ( 3147): 5d5526b8 5be69898
I/DEBUG ( 3147): 5d5526bc 5d7113cd /data/data/com.dell.email/lib/libsqlcipher_android.so (icu46::Normalizer2Impl::isAcceptable(void, char const, char const, UDataInfo const_)) I/DEBUG ( 3147): ........ ........ I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r0: I/DEBUG ( 3147): 5dc786d0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc786e0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc786f0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc78700 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc78710 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r2: I/DEBUG ( 3147): 5be69bb4 00000000 00000000 2f6d6574 6d610001 ........tem/..am I/DEBUG ( 3147): 5be69bc4 00000000 65732f6b 00000063 4016c564 ....k/sec...d..@ I/DEBUG ( 3147): 5be69bd4 00000000 b9e2f165 b1ddc197 c2ff6fe6 ....e........o.. I/DEBUG ( 3147): 5be69be4 6a2d0e61 e4b05afb 00000000 7379732f a.-j.Z....../sys I/DEBUG ( 3147): 5be69bf4 2f6d6574 00000000 00000000 5d77c600 tem/..........w] I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r3: I/DEBUG ( 3147): 5d75f770 66202972 6120726f 6f206c6c 6f4e2066 r) for all of No I/DEBUG ( 3147): 5d75f780 6c616d72 72657a69 61642032 000a6174 rmalizer2 data.. I/DEBUG ( 3147): 5d75f790 006d726e fffb4ff2 fffb4ff2 fffb5026 nrm..O...O..&P.. I/DEBUG ( 3147): 5d75f7a0 fffb501e fffb5016 fffb500e fffb5006 .P...P...P...P.. I/DEBUG ( 3147): 5d75f7b0 6369364e 36345f75 6f4e3131 6c616d72 N6icu_4611Normal I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r4: I/DEBUG ( 3147): 5d552c14 5a0a0010 00000006 5d6820f5 5a0a0010 ...Z..... h]...Z I/DEBUG ( 3147): 5d552c24 5d6a034b 5a0a0010 5d68587b 5a0a0010 K.j]...Z{Xh]...Z I/DEBUG ( 3147): 5d552c34 00000000 5b292218 5b292218 5c3b7dc0 .....")[.")[.};\ I/DEBUG ( 3147): 5d552c44 00000006 20d00005 5a4c902d 407e01a8 ....... -.LZ..~@ I/DEBUG ( 3147): 5d552c54 4077e84d 5b291d40 5a0a0010 5b2920ac M.w@@.)[...Z. )[ I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r5: I/DEBUG ( 3147): 5dc786d0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc786e0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc786f0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc78700 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 5dc78710 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r6: I/DEBUG ( 3147): 5d7113ac 41414241 0612430a e7d30e12 00002ba3 ABAA.C.......+.. I/DEBUG ( 3147): 5d7113bc 000001ff 43136802 20016003 46c04770 .....h.C.. pG.F I/DEBUG ( 3147): 5d7113cc 2a13881a 889ad906 d1032a00 4a098919 ...*.....*.....J I/DEBUG ( 3147): 5d7113dc d0014291 47702000 4a078959 d1f94291 .B... pGY..J.B.. I/DEBUG ( 3147): 5d7113ec 2a017b1a 8a1ad1f6 8a5b8082 200180c3 .{.*......[.... I/DEBUG ( 3147): I/DEBUG ( 3147): memory near r8: I/DEBUG ( 3147): 5c0df9a0 41aa0af8 00000000 00000000 00000060 ...A........... I/DEBUG ( 3147): 5c0df9b0 00000018 0000005c 00040006 0000002b ...........+... I/DEBUG ( 3147): 5c0df9c0 5d77b5d0 5d783000 5d783020 00000001 ..w].0x] 0x].... I/DEBUG ( 3147): 5c0df9d0 00000000 00000000 ffffffff 00000000 ................ I/DEBUG ( 3147): 5c0df9e0 00000028 0000002b 5c0dfee0 4016c54c (...+......\L..@ I/DEBUG ( 3147): I/DEBUG ( 3147): memory near sl: I/DEBUG ( 3147): 5d75e4c0 fff964f6 fff964f6 fff964f6 fff96552 .d...d...d..Re.. I/DEBUG ( 3147): 5d75e4d0 6c6f6f70 00000000 4c412525 00534149 pool....%%ALIAS. I/DEBUG ( 3147): 5d75e4e0 64756369 6c363474 00000000 61502525 icudt46l....%%Pa I/DEBUG ( 3147): 5d75e4f0 746e6572 6f527349 0000746f 41434f4c rentIsRoot..LOCA I/DEBUG ( 3147): 5d75e500 0000454c 44554349 00415441 0000002f LE..ICUDATA./... I/DEBUG ( 3147): I/DEBUG ( 3147): memory near fp: I/DEBUG ( 3147): 5d75f770 66202972 6120726f 6f206c6c 6f4e2066 r) for all of No I/DEBUG ( 3147): 5d75f780 6c616d72 72657a69 61642032 000a6174 rmalizer2 data.. I/DEBUG ( 3147): 5d75f790 006d726e fffb4ff2 fffb4ff2 fffb5026 nrm..O...O..&P.. I/DEBUG ( 3147): 5d75f7a0 fffb501e fffb5016 fffb500e fffb5006 .P...P...P...P.. I/DEBUG ( 3147): 5d75f7b0 6369364e 36345f75 6f4e3131 6c616d72 N6icu_4611Normal I/DEBUG ( 3147): I/DEBUG ( 3147): memory near ip: I/DEBUG ( 3147): 000074e0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 000074f0 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 00007500 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 00007510 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): 00007520 ffffffff ffffffff ffffffff ffffffff ................ I/DEBUG ( 3147): I/DEBUG ( 3147): memory near sp: I/DEBUG ( 3147): 5d5525e0 00000243 5d783020 5d5527ea 0000033a C... 0x].'U]:... I/DEBUG ( 3147): 5d5525f0 5d552600 5c0df9c0 df0027ad 00000000 .&U]....'...... I/DEBUG ( 3147): 5d552600 5d75f790 5d552758 5d719bf9 5d552c34 ..u]X'U]..q]4,U] I/DEBUG ( 3147): 5d552610 00000001 5d717e57 5d75f860 5d552758 ....W~q].u]X'U] I/DEBUG ( 3147): 5d552620 5d552c34 9080653d 5d552654 5d78199c 4,U]=e..T&U]..x] I/DEBUG ( 3147): I/DEBUG ( 3147): code around pc: I/DEBUG ( 3147): 5d717590 6820fdc3 fc4af7d3 f7d31c20 bd10fc47 .. h..J. ...G... I/DEBUG ( 3147): 5d7175a0 9c08b5f8 1c051c0e 29006821 2000dd01 ........!h.)... I/DEBUG ( 3147): 5d7175b0 8840bdf8 4288490d 9b07d004 20002203 ..@..I.B.....". I/DEBUG ( 3147): 5d7175c0 e7f5601a d0082e00 1c101d2f 9a061c19 ......./....... I/DEBUG ( 3147): 5d7175d0 47b01c3b 28000600 1c20d0ef fdaef7d6 ;..G...(.. ..... I/DEBUG ( 3147): I/DEBUG ( 3147): code around lr: I/DEBUG ( 3147): 5d717e34 991a6803 681d9a04 47a81c23 d0e52800 .h.....h#..G.(.. I/DEBUG ( 3147): 5d717e44 465b991d 91009a1f 9401991e f7ff9602 ..[F............ I/DEBUG ( 3147): 5d717e54 6833fba5 dc092b00 d0d72800 61839b0f ..3h.+...(.....a I/DEBUG ( 3147): 5d717e64 9905e005 568b2230 d0072b00 b0112000 ....0".V.+... .. I/DEBUG ( 3147): 5d717e74 4690bc3c 46a24699 bdf046ab 548b2301 <..F.F.F.F...#.T I/DEBUG ( 3147): I/DEBUG ( 3147): memory map around fault addr 5dc786f2: I/DEBUG ( 3147): 5d783000-5da44000 /data/data/com.dell.email/files/icu/icudt46l.dat I/DEBUG ( 3147): (no map for address) I/DEBUG ( 3147): bebd6000-bebf7000 [stack]

Can you please help in this regard as this is very critical to me.

developernotes commented 11 years ago

Hi ankitmittal000,

I have a few questions for you that will help give us a better understanding of your situation:

ankitmittal000 commented 11 years ago

1) What device/OS version are you running where the crash occurs? Ans: Google Nexus (Samsung device) running 4.1.2

2) Is the device rooted? Ans: No the device is not rooted

3) Along with the native dump, is there a Java exception that is thrown? Ans: In my logs initially i am able to see some java exception 2-3 times but after that native dump is shown continuously and there is no exception in between. Anyways the exception which i see initially is

java.lang.RuntimeException: An error occured while executing doInBackground() E/AndroidRuntime( 3644): at android.os.AsyncTask$3.done(AsyncTask.java:299) E/AndroidRuntime( 3644): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) E/AndroidRuntime( 3644): at java.util.concurrent.FutureTask.setException(FutureTask.java:124) E/AndroidRuntime( 3644): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) E/AndroidRuntime( 3644): at java.util.concurrent.FutureTask.run(FutureTask.java:137) E/AndroidRuntime( 3644): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) E/AndroidRuntime( 3644): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) E/AndroidRuntime( 3644): at java.lang.Thread.run(Thread.java:856) E/AndroidRuntime( 3644): Caused by: net.sqlcipher.database.SQLiteException: not an error E/AndroidRuntime( 3644): at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) E/AndroidRuntime( 3644): at net.sqlcipher.database.SQLiteDatabase.(SQLiteDatabase.java:1952) E/AndroidRuntime( 3644): at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:902) E/AndroidRuntime( 3644): at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:945) E/AndroidRuntime( 3644): at net.sqlcipher.database.DellSQLiteOpenHelper.getWritableDatabase(DellSQLiteOpenHelper.java:149) E/AndroidRuntime( 3644): at com.dell.email.provider.EmailProvider.getDatabase(EmailProvider.java:825) E/AndroidRuntime( 3644): at com.dell.email.provider.EmailProvider.query(EmailProvider.java:1768) E/AndroidRuntime( 3644): at android.content.ContentProvider.query(ContentProvider.java:652) E/AndroidRuntime( 3644): at android.content.ContentProvider$Transport.query(ContentProvider.java:189) E/AndroidRuntime( 3644): at android.content.ContentResolver.query(ContentResolver.java:370) E/AndroidRuntime( 3644): at android.content.ContentResolver.query(ContentResolver.java:313)

4) Are you running this within an AsyncTask during the crash? Ans: Yes, the database is being accessed through Async task.

5) Are you using a customized version of the icudt46l.dat file? Ans: no

6) Does it sometimes work on the same device? Yes sometimes it work on the same device but fails most of the times. On AVD however it always works.

developernotes commented 11 years ago

Hi ankitmittal000,

Can you verify that you are including the icudt46l.zip file within the assets directory of your application? It appears the failure is during the loading of the ICU data file. Also, can you check on your device via adb shell what is found when you perform an ls -l within the /system/usr/icu directory on the device that is failing?

ankitmittal000 commented 11 years ago

I have included the following file in assets folder. icudt46l.zip

The reult of ls -l is this: -rw-r--r-- root root 8211856 2012-07-04 16:30 icudt48l.dat

developernotes commented 11 years ago

Hi ankitmittal000,

Could you please publish a small sample application that reproduces the error you are seeing, this will allow us to further debug the scenario much closer. Thanks!

ankitmittal000 commented 11 years ago

Hi, Actually we are using one open source application and trying to embed SQL cipher in it. The application flow is very complex and its not easy to write a sample application as there is backend server also involved in it. We suspect that error is because multiple threads are accessing the database simultaneously and there may be some problem with the lock acquire. However the same application works fine when using default android database. So we wanted to ask if you have your own lock-unlock implementation for SQLite database or you are using default android's implementation.

ankitmittal000 commented 11 years ago

To add more explanation to the previous post and why we think that it s lock problem. We fixed the initial crash problem by making the insert, update and delete function on the database as synchronized. That resolved the crash problem but then our UI started getting hang possibly getting into deadlock with other threads. Then we examined the /data/anr/traces.txt. we were able to find this exception there.

"Calendar[ankit@dmpmail.onmicrosoft.com]" prio=5 tid=29 WAIT | group="main" sCount=1 dsCount=0 obj=0x41baded0 self=0x1e4e068 | sysTid=16145 nice=10 sched=0/0 cgrp=bg_non_interactive handle=30647096 | schedstat=( 53038614 40799341 173 ) utm=3 stm=1 core=3 at java.lang.Object.wait(Native Method)

I can send you the complete traces.txt. I can also send you the complete code for the application. Please let me know how to send it.

Thanks

developernotes commented 11 years ago

Hi ankitmittal000,

We will reach out off list via email to discuss this further. Thanks!

sharma-abhishek commented 10 years ago

Having icudt46l.zip in place, rarely I do get the same issue while loading the library. Following is the logcat for the same. Did you guys get any fix for the same.

D/dalvikvm(21625): Shared lib '/data/app-lib/com.my.project-2/libstlport_shared.so' already loaded in same CL 0x447445e8 D/dalvikvm(21625): Trying to load lib /data/app-lib/com.my.project-2/libsqlcipher_android.so 0x447445e8 D/dalvikvm(21625): Shared lib '/data/app-lib/com.my.project-2/libsqlcipher_android.so' already loaded in same CL 0x447445e8 D/dalvikvm(21625): Trying to load lib /data/app-lib/com.my.project-2/libdatabase_sqlcipher.so 0x447445e8 D/dalvikvm(21625): Shared lib '/data/app-lib/com.my.project-2/libdatabase_sqlcipher.so' already loaded in same CL 0x447445e8 I/DaoManager(21625): Loaded configuration for class com.my.project.middleware.db.Users I/DaoManager(21625): Loaded configuration for class com.my.project.middleware.db.Preferences F/libc (21625): Fatal signal 11 (SIGSEGV) at 0x7b1e46f2 (code=1), thread 21625 (com.my.project) D/clmlib ( 316): Got activities:0x0000000E I/DEBUG ( 316): * * * * * * * * * * * * * * * * I/DEBUG ( 316): UUID: 43d25619-21be-4d1f-bad3-cd601e8c6dfd I/DEBUG ( 316): Build fingerprint: 'Sony/D6502/D6502:4.4.2/17.1.2.A.0.314/xf5vdw:user/release-keys' I/DEBUG ( 316): Revision: '0' I/DEBUG ( 316): pid: 21625, tid: 21625, name: com.my.project >>> com.my.project <<< I/DEBUG ( 316): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 7b1e46f2 I/DEBUG ( 316): r0 00000000 r1 00000000 r2 7954c904 r3 7a9650ec I/DEBUG ( 316): r4 bedde1a4 r5 7b1e46f0 r6 7a921e55 r7 00000001 I/DEBUG ( 316): r8 00000001 r9 795b6178 sl bedde1a4 fp 7a9ba65c I/DEBUG ( 316): ip 0000ff00 sp bedddba0 lr 7a928b71 pc 7a9283f8 cpsr 600d0030 I/DEBUG ( 316): d0 0000000000000000 d1 0000000000000000 I/DEBUG ( 316): d2 6c6c65772e696f7a d3 2f73656c69662f6f I/DEBUG ( 316): d4 6174732d646c6569 d5 6569660a2d2d7472 I/DEBUG ( 316): d6 723d656d614e646c d7 447265646e696d65 I/DEBUG ( 316): d8 0000000000000000 d9 0000000000000000 I/DEBUG ( 316): d10 0000000000000000 d11 0000000000000000 I/DEBUG ( 316): d12 0000000000000000 d13 0000000000000000 I/DEBUG ( 316): d14 0000000000000000 d15 0000000000000000 I/DEBUG ( 316): d16 7acef0007a9adfcc d17 000000007acef020 I/DEBUG ( 316): d18 6d4521986d452160 d19 6d4528d86d4521d0 I/DEBUG ( 316): d20 6d4522786d452240 d21 6d4526386d4522b0 I/DEBUG ( 316): d22 6d4526a86d452670 d23 6d4527186d4526e0 I/DEBUG ( 316): d24 0000000000011022 d25 0000000000011123 I/DEBUG ( 316): d26 0000000000000000 d27 0000000000000009 I/DEBUG ( 316): d28 0100010001000100 d29 0100010001000100 I/DEBUG ( 316): d30 0000000000000000 d31 0000000000000000 I/DEBUG ( 316): scr 80000012 I/DEBUG ( 316): I/DEBUG ( 316): backtrace: I/DEBUG ( 316): #00 pc 0019f3f8 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #01 pc 0019fb6d /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #02 pc 0019fee1 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #03 pc 001a04c1 /data/app-lib/com.my.project-2/libsqlcipher_android.so (udata_openChoice_46+44) I/DEBUG ( 316): #04 pc 00199699 /data/app-lib/com.my.project-2/libsqlcipher_android.so (icu46::Normalizer2Impl::load(char const, char const_, UErrorCode&)+36) I/DEBUG ( 316): #05 pc 0019c1e5 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #06 pc 0019c239 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #07 pc 00197d87 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #08 pc 0019c337 /data/app-lib/com.my.project-2/libsqlcipher_android.so (icu_46::Normalizer2Factory::getNFDInstance(UErrorCode&)+22) I/DEBUG ( 316): #09 pc 000a8a01 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #10 pc 000a9c29 /data/app-lib/com.my.project-2/libsqlcipher_android.so (uprv_init_collIterate_46+8) I/DEBUG ( 316): #11 pc 000b15cf /data/app-lib/com.my.project-2/libsqlcipher_android.so (ucol_openElements_46+82) I/DEBUG ( 316): #12 pc 000a8f41 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #13 pc 000a9517 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #14 pc 000aa03f /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #15 pc 000b1f1f /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #16 pc 000b2fa1 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #17 pc 000b3365 /data/app-lib/com.my.project-2/libsqlcipher_android.so (ucol_open_46+20) I/DEBUG ( 316): #18 pc 0005a859 /data/app-lib/com.my.project-2/libsqlcipher_android.so (register_android_functions+16) I/DEBUG ( 316): #19 pc 00006cc5 /data/app-lib/com.my.project-2/libdatabase_sqlcipher.so (sqlcipher::dbopen(JNIEnv, jobject, jstring, int)+216) I/DEBUG ( 316): #20 pc 0002034c /system/lib/libdvm.so (dvmPlatformInvoke+112) I/DEBUG ( 316): #21 pc 00050fcf /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const, JValue, Method const, Thread)+398) I/DEBUG ( 316): #22 pc 000297e0 /system/lib/libdvm.so I/DEBUG ( 316): #23 pc 00030c6c /system/lib/libdvm.so (dvmMterpStd(Thread)+76) I/DEBUG ( 316): #24 pc 0002e304 /system/lib/libdvm.so (dvmInterpret(Thread, Method const, JValue)+184) I/DEBUG ( 316): #25 pc 00063719 /system/lib/libdvm.so (dvmInvokeMethod(Object, Method const, ArrayObject, ArrayObject, ClassObject, bool)+392) I/DEBUG ( 316): #26 pc 0006b6e7 /system/lib/libdvm.so I/DEBUG ( 316): #27 pc 000297e0 /system/lib/libdvm.so I/DEBUG ( 316): #28 pc 00030c6c /system/lib/libdvm.so (dvmMterpStd(Thread)+76) I/DEBUG ( 316): #29 pc 0002e304 /system/lib/libdvm.so (dvmInterpret(Thread, Method const, JValue)+184) I/DEBUG ( 316): #30 pc 00063719 /system/lib/libdvm.so (dvmInvokeMethod(Object, Method const, ArrayObject, ArrayObject, ClassObject, bool)+392) I/DEBUG ( 316): #31 pc 0006b6e7 /system/lib/libdvm.so I/DEBUG ( 316): I/DEBUG ( 316): stack: I/DEBUG ( 316): bedddb60 beddde10 [stack] I/DEBUG ( 316): bedddb64 0000002d
I/DEBUG ( 316): bedddb68 beddde10 [stack] I/DEBUG ( 316): bedddb6c 7a9281a3 /data/app-lib/com.my.project-2/libsqlcipher_android.so (icu_46::CharString::ensureCapacity(int, int, UErrorCode&)+70) I/DEBUG ( 316): bedddb70 400c5394
I/DEBUG ( 316): bedddb74 beddde10 [stack] I/DEBUG ( 316): bedddb78 795b6074
I/DEBUG ( 316): bedddb7c 7a928397 /data/app-lib/com.my.project-2/libsqlcipher_android.so (icu46::CharString::append(char const, int, UErrorCode&)+218) I/DEBUG ( 316): bedddb80 00000242
I/DEBUG ( 316): bedddb84 00000244
I/DEBUG ( 316): bedddb88 00000243
I/DEBUG ( 316): bedddb8c 7acef020 /data/data/com.my.project/files/icu/icudt46l.dat I/DEBUG ( 316): bedddb90 00000001
I/DEBUG ( 316): bedddb94 795b6178
I/DEBUG ( 316): bedddb98 bedde1a4 [stack] I/DEBUG ( 316): bedddb9c 7a9ba65c
I/DEBUG ( 316): #00 bedddba0 7a9650ec /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddba4 7a92ace9 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddba8 bedddc5c [stack] I/DEBUG ( 316): bedddbac 7a964768 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddbb0 00000001
I/DEBUG ( 316): bedddbb4 7a928b71 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): #01 bedddbb8 7a9651f0 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddbbc bedddc5c [stack] I/DEBUG ( 316): bedddbc0 bedde1a4 [stack] I/DEBUG ( 316): bedddbc4 beddde48 [stack] I/DEBUG ( 316): bedddbc8 bedddced [stack] I/DEBUG ( 316): bedddbcc 7a9650ec /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddbd0 00007cd0
I/DEBUG ( 316): bedddbd4 0000001a
I/DEBUG ( 316): bedddbd8 795b6040
I/DEBUG ( 316): bedddbdc bedddd54 [stack] I/DEBUG ( 316): bedddbe0 beddddc4 [stack] I/DEBUG ( 316): bedddbe4 795b6048
I/DEBUG ( 316): bedddbe8 bedddce4 [stack] I/DEBUG ( 316): bedddbec 40088417 /system/lib/libc.so (dlfree+50) I/DEBUG ( 316): bedddbf0 400c1000 /system/lib/libc.so I/DEBUG ( 316): bedddbf4 bedddce4 [stack] I/DEBUG ( 316): ........ ........ I/DEBUG ( 316): #02 bedddc18 7a9651f0 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddc1c 7a921e55 /data/app-lib/com.my.project-2/libsqlcipher_android.so (icu46::Normalizer2Impl::isAcceptable(void, char const, char const, UDataInfo const_)) I/DEBUG ( 316): bedddc20 7954c904
I/DEBUG ( 316): bedddc24 bedddc5c [stack] I/DEBUG ( 316): bedddc28 bedde1a4 [stack] I/DEBUG ( 316): bedddc2c 7a964768 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddc30 7a965424 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddc34 00000000
I/DEBUG ( 316): bedddc38 7a9650ec /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddc3c 7a9651f0 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddc40 7a964768 /data/app-lib/com.my.project-2/libsqlcipher_android.so I/DEBUG ( 316): bedddc44 00000001
I/DEBUG ( 316): bedddc48 7a921e55 /data/app-lib/com.my.project-2/libsqlcipher_android.so (icu46::Normalizer2Impl::isAcceptable(void, char const, char const, UDataInfo const_)) I/DEBUG ( 316): bedddc4c 7954c904
I/DEBUG ( 316): bedddc50 00000008
I/DEBUG ( 316): bedddc54 bedddd25 [stack] I/DEBUG ( 316): ........ ........ I/DEBUG ( 316): I/DEBUG ( 316): memory near r2: I/DEBUG ( 316): 7954c8e4 00000000 00000000 1cf40175 db310001
I/DEBUG ( 316): 7954c8f4 00000000 4f44be38 00000063 400c5240
I/DEBUG ( 316): 7954c904 00000000 32bc8efb af3a4fc1 e6fbe58b
I/DEBUG ( 316): 7954c914 7e647b9a 2c20fda1 00000000 14eba6f7
I/DEBUG ( 316): 7954c924 6bf3765b 00000000 00000000 7a9b2e10
I/DEBUG ( 316): 7954c934 7954c904 6f5c6f00 7a9b2e60 7954c904
I/DEBUG ( 316): 7954c944 7a9b2eb0 7954c904 7a9b2e10 7954c904
I/DEBUG ( 316): 7954c954 f0f37201 3e54e2a3 00000029 400c51e0
I/DEBUG ( 316): 7954c964 400c51e0 f203ff60 6be5e34f a301bbec
I/DEBUG ( 316): 7954c974 c206da8b 9c1c99a2 9b90b611 00000028
I/DEBUG ( 316): 7954c984 0000100a 00000000 00000000 00000000
I/DEBUG ( 316): 7954c994 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7954c9a4 00000000 97fa9004 79566660 00000000
I/DEBUG ( 316): 7954c9b4 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7954c9c4 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7954c9d4 00000000 02e6740a 7956a610 00000000
I/DEBUG ( 316): I/DEBUG ( 316): memory near r3: I/DEBUG ( 316): 7a9650cc 00000000 6f79616c 00007475 72616863
I/DEBUG ( 316): 7a9650dc 65746361 00007372 656e696c 00000073
I/DEBUG ( 316): 7a9650ec 006d726e 726f6e75 735f326d 28706177
I/DEBUG ( 316): 7a9650fc 64203a29 20617461 6d726f66 25207461
I/DEBUG ( 316): 7a96510c 2e783230 78323025 3230252e 30252e78
I/DEBUG ( 316): 7a96511c 28207832 6d726f66 76207461 69737265
I/DEBUG ( 316): 7a96512c 25206e6f 29783230 20736920 20746f6e
I/DEBUG ( 316): 7a96513c 6f636572 7a696e67 61206465 6f4e2073
I/DEBUG ( 316): 7a96514c 6c616d72 72657a69 61642032 000a6174
I/DEBUG ( 316): 7a96515c 726f6e75 735f326d 28706177 74203a29
I/DEBUG ( 316): 7a96516c 66206f6f 62207765 73657479 64252820
I/DEBUG ( 316): 7a96517c 74666120 68207265 65646165 66202972
I/DEBUG ( 316): 7a96518c 4e20726f 616d726f 657a696c 64203272
I/DEBUG ( 316): 7a96519c 0a617461 00000000 726f6e75 735f326d
I/DEBUG ( 316): 7a9651ac 28706177 74203a29 66206f6f 62207765
I/DEBUG ( 316): 7a9651bc 73657479 64252820 74666120 68207265
I/DEBUG ( 316): I/DEBUG ( 316): memory near r4: I/DEBUG ( 316): bedde184 00000000 7951d820 7a7e385d 7a7eaf89
I/DEBUG ( 316): bedde194 7a7e5bcb 000001e4 7a7e8e13 7951d820
I/DEBUG ( 316): bedde1a4 00000000 795b8978 00000006 414c72f0
I/DEBUG ( 316): bedde1b4 795b8978 00000020 7909acc9 0000003a
I/DEBUG ( 316): bedde1c4 fffffe58 414fac20 795b89a0 9f00001d
I/DEBUG ( 316): bedde1d4 10000000 00000000 80b00019 6d44b92c
I/DEBUG ( 316): bedde1e4 7951d820 449a3a80 6d7e5870 414c7870
I/DEBUG ( 316): bedde1f4 00000000 6d44b94c 414ea350 6d44b940
I/DEBUG ( 316): bedde204 00000001 75bd80b8 449a3b60 00000000
I/DEBUG ( 316): bedde214 4151afd3 6d44b940 75bd80b5 7909abed
I/DEBUG ( 316): bedde224 414c7880 4158de18 6d44b8ec 00000000
I/DEBUG ( 316): bedde234 00000000 ffffffff 400c5394 00000000
I/DEBUG ( 316): bedde244 0000000c 0000000c 44734008 00000001
I/DEBUG ( 316): bedde254 0000000c 4158de18 6e785038 00000000
I/DEBUG ( 316): bedde264 449a5650 ffffffff 449a5650 414c7778
I/DEBUG ( 316): bedde274 41540149 bedde2e4 6d7e5884 00000001
I/DEBUG ( 316): I/DEBUG ( 316): memory near r5: I/DEBUG ( 316): 7b1e46d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e46e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e46f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4700 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4710 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4720 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4730 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4740 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4750 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4760 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4770 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4780 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e4790 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e47a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e47b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 7b1e47c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): I/DEBUG ( 316): memory near r6: I/DEBUG ( 316): 7a921e34 dc052b00 bc1cb004 46994690 bdf046a2
I/DEBUG ( 316): 7a921e44 ffb8f005 e7f52000 00001fd5 ffffffad
I/DEBUG ( 316): 7a921e54 8819b510 29132200 8899d906 d1032900
I/DEBUG ( 316): 7a921e64 490a891c d001428c bd101c10 4908895c
I/DEBUG ( 316): 7a921e74 d1f9428c 29017b19 1c19d1f6 30042204
I/DEBUG ( 316): 7a921e84 f6c03110 2201ee64 46c0e7ee 0000724e
I/DEBUG ( 316): 7a921e94 0000326d 1c07b5f8 1c0d201c ff6af7fc
I/DEBUG ( 316): 7a921ea4 d01d1e04 1c2a2100 f00e2000 491bf98f
I/DEBUG ( 316): 7a921eb4 c6011c26 1c2b4479 1c306809 f7fe2200
I/DEBUG ( 316): 7a921ec4 60bcfb6b 2b00682b 6820dd0f ff72f005
I/DEBUG ( 316): 7a921ed4 f7fe1c30 1c20fc23 ff50f7fc bdf82000
I/DEBUG ( 316): 7a921ee4 60bc2307 602b2000 687be7f9 21004a0c
I/DEBUG ( 316): 7a921ef4 447a6998 f0061c3b 68bbf84d 1c2a2101
I/DEBUG ( 316): 7a921f04 f00e6818 682bfcf1 dd052b00 200068bc
I/DEBUG ( 316): 7a921f14 d0e42c00 e7d81d26 e7e068b8 00091e94
I/DEBUG ( 316): 7a921f24 00002593 48196982 42816813 4818d91a
I/DEBUG ( 316): I/DEBUG ( 316): memory near r9: I/DEBUG ( 316): 795b6158 00000001 0000007f 0000003f 00000000
I/DEBUG ( 316): 795b6168 3f000000 00000000 63750103 00000023
I/DEBUG ( 316): 795b6178 7a9adfcc 7acef000 7acef020 00000001
I/DEBUG ( 316): 795b6188 00000000 00000000 ffffffff 00000023
I/DEBUG ( 316): 795b6198 00000000 7af2bf10 00000000 00000001
I/DEBUG ( 316): 795b61a8 00000000 00000000 0002bd40 00000021
I/DEBUG ( 316): 795b61b8 400c51d8 400c51d8 00000000 00000011
I/DEBUG ( 316): 795b61c8 400c51c8 400c51c8 00000020 0000004a
I/DEBUG ( 316): 795b61d8 5093164a 611dab96 122b175f 681c7d1e
I/DEBUG ( 316): 795b61e8 5631f6c1 ec179003 80464a4a a8a8241f
I/DEBUG ( 316): 795b61f8 8ce6219e e5fecee5 eee4b5fb 7fee1deb
I/DEBUG ( 316): 795b6208 994233a3 5bc767f5 65ee8727 36481523
I/DEBUG ( 316): 795b6218 33657275 0000001b 795b62d0 00000010
I/DEBUG ( 316): 795b6228 00000010 00000000 00000001 0000002b
I/DEBUG ( 316): 795b6238 00000018 00000000 795b6360 795b6298
I/DEBUG ( 316): 795b6248 795b6388 795b6398 00000004 63643164
I/DEBUG ( 316): I/DEBUG ( 316): memory near sl: I/DEBUG ( 316): bedde184 00000000 7951d820 7a7e385d 7a7eaf89
I/DEBUG ( 316): bedde194 7a7e5bcb 000001e4 7a7e8e13 7951d820
I/DEBUG ( 316): bedde1a4 00000000 795b8978 00000006 414c72f0
I/DEBUG ( 316): bedde1b4 795b8978 00000020 7909acc9 0000003a
I/DEBUG ( 316): bedde1c4 fffffe58 414fac20 795b89a0 9f00001d
I/DEBUG ( 316): bedde1d4 10000000 00000000 80b00019 6d44b92c
I/DEBUG ( 316): bedde1e4 7951d820 449a3a80 6d7e5870 414c7870
I/DEBUG ( 316): bedde1f4 00000000 6d44b94c 414ea350 6d44b940
I/DEBUG ( 316): bedde204 00000001 75bd80b8 449a3b60 00000000
I/DEBUG ( 316): bedde214 4151afd3 6d44b940 75bd80b5 7909abed
I/DEBUG ( 316): bedde224 414c7880 4158de18 6d44b8ec 00000000
I/DEBUG ( 316): bedde234 00000000 ffffffff 400c5394 00000000
I/DEBUG ( 316): bedde244 0000000c 0000000c 44734008 00000001
I/DEBUG ( 316): bedde254 0000000c 4158de18 6e785038 00000000
I/DEBUG ( 316): bedde264 449a5650 ffffffff 449a5650 414c7778
I/DEBUG ( 316): bedde274 41540149 bedde2e4 6d7e5884 00000001
I/DEBUG ( 316): I/DEBUG ( 316): memory near fp: I/DEBUG ( 316): 7a9ba63c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba64c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba65c 795b6140 795b63a8 795b6178 00000000
I/DEBUG ( 316): 7a9ba66c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba67c 00000000 00000000 00000000 00000001
I/DEBUG ( 316): 7a9ba68c 00000000 795b7ec0 00000000 00000000
I/DEBUG ( 316): 7a9ba69c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba6ac 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba6bc 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba6cc 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba6dc 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba6ec 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba6fc 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba70c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba71c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): 7a9ba72c 00000000 00000000 00000000 00000000
I/DEBUG ( 316): I/DEBUG ( 316): memory near ip: I/DEBUG ( 316): 0000fee0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000fef0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff00 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff10 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff20 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff30 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff40 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff50 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff60 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff70 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff80 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ff90 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ffa0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ffb0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ffc0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): 0000ffd0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 316): I/DEBUG ( 316): memory near sp: I/DEBUG ( 316): bedddb80 00000242 00000244 00000243 7acef020
I/DEBUG ( 316): bedddb90 00000001 795b6178 bedde1a4 7a9ba65c
I/DEBUG ( 316): bedddba0 7a9650ec 7a92ace9 bedddc5c 7a964768
I/DEBUG ( 316): bedddbb0 00000001 7a928b71 7a9651f0 bedddc5c
I/DEBUG ( 316): bedddbc0 bedde1a4 beddde48 bedddced 7a9650ec
I/DEBUG ( 316): bedddbd0 00007cd0 0000001a 795b6040 bedddd54
I/DEBUG ( 316): bedddbe0 beddddc4 795b6048 bedddce4 40088417
I/DEBUG ( 316): bedddbf0 400c1000 bedddce4 400c5394 bedddd1c
I/DEBUG ( 316): bedddc00 7a964768 bedde1a4 bedddd54 beddddc4
I/DEBUG ( 316): bedddc10 bedddd8c 7a928ee5 7a9651f0 7a921e55
I/DEBUG ( 316): bedddc20 7954c904 bedddc5c bedde1a4 7a964768
I/DEBUG ( 316): bedddc30 7a965424 00000000 7a9650ec 7a9651f0
I/DEBUG ( 316): bedddc40 7a964768 00000001 7a921e55 7954c904
I/DEBUG ( 316): bedddc50 00000008 bedddd25 795b6198 00000000
I/DEBUG ( 316): bedddc60 7a964768 00000008 00000055 00000000
I/DEBUG ( 316): bedddc70 795b6178 00000055 61642f01 642f6174
I/DEBUG ( 316): I/DEBUG ( 316): code around pc: I/DEBUG ( 316): 7a9283d8 6820fc43 fa3cf7d4 f7d41c20 bd10fa39
I/DEBUG ( 316): 7a9283e8 9c08b5f8 1c051c0e 20006821 dc072900
I/DEBUG ( 316): 7a9283f8 490e8868 d0044288 22039b07 601a2000
I/DEBUG ( 316): 7a928408 2e00bdf8 1d2fd007 1c191c10 1c3b9a06
I/DEBUG ( 316): 7a928418 280047b0 1c20d0f0 fbeaf7d7 2b006823
I/DEBUG ( 316): 7a928428 6045dc01 2000e7ec 46c0e7ea 000027da
I/DEBUG ( 316): 7a928438 4c0fb570 6820447c d0032800 f818f7d8
I/DEBUG ( 316): 7a928448 60232300 25004e0b 1d34447e e004362c
I/DEBUG ( 316): 7a928458 fc02f7d7 42b4c420 6820d002 d1f72800
I/DEBUG ( 316): 7a928468 21004b05 447b222c 54992001 46c0bd70
I/DEBUG ( 316): 7a928478 0009221c 00092208 000921ea 4c21b530
I/DEBUG ( 316): 7a928488 2300b083 447c2000 f7db9301 6825fa23
I/DEBUG ( 316): 7a928498 f7db2000 2d00f991 6820d002 bd30b003
I/DEBUG ( 316): 7a9284a8 491a4819 44782200 68004479 ab016809
I/DEBUG ( 316): 7a9284b8 feb4f7d7 20001c05 d0ef2d00 1c284914
I/DEBUG ( 316): 7a9284c8 f7d74479 2000ff0d fa04f7db 2b006823
I/DEBUG ( 316): I/DEBUG ( 316): code around lr: I/DEBUG ( 316): 7a928b50 681caa06 47a01c2b d0e52800 46519b18
I/DEBUG ( 316): 7a928b60 93009102 9b059a1a 95019919 fc3cf7ff
I/DEBUG ( 316): 7a928b70 68134652 dc092b00 d0d52800 61839b06
I/DEBUG ( 316): 7a928b80 232ce005 56ca4659 d0072a00 b00f2000
I/DEBUG ( 316): 7a928b90 4690bc3c 46a24699 bdf046ab 2201480f
I/DEBUG ( 316): 7a928ba0 210154ca 42494478 f7ff1c2a 1c04fecd
I/DEBUG ( 316): 7a928bb0 f7d7a807 2c00f80f a807d0e8 f7d71c21
I/DEBUG ( 316): 7a928bc0 464af813 920b920c 2100a807 f7ff1c2a
I/DEBUG ( 316): 7a928bd0 2800fca9 e7dad1af 00091b36 0003bbc0
I/DEBUG ( 316): 7a928be0 465fb5f0 464d4656 b4f04644 46834cc2
I/DEBUG ( 316): 7a928bf0 920944a5 930c4ac1 46919108 464b44f9
I/DEBUG ( 316): 7a928c00 99a6681b 46999ca7 910d681b 939b2101
I/DEBUG ( 316): 7a928c10 93112300 2800910b 49b9d006 f6b94479
I/DEBUG ( 316): 7a928c20 2800ef80 e135d000 4698ab33 22283309
I/DEBUG ( 316): 7a928c30 93334641 604a2300 634b720b a941724b
I/DEBUG ( 316): 7a928c40 3109468a 46519141 af5dad4f 720b604a
I/DEBUG ( 316): I/DEBUG ( 316): memory map around fault addr 7b1e46f2: I/DEBUG ( 316): 7acef000-7af70000 r-- /data/data/com.my.project/files/icu/icudt46l.dat I/DEBUG ( 316): (no map for address) I/DEBUG ( 316): bedbe000-beddf000 rw- [stack] I/BootReceiver( 975): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE) D/ActivityManager( 975): New dropbox entry: com.my.project, data_app_native_crash, 4e0a1b69-eff8-4629-9f48-70631f67aa00 W/ActivityManager( 975): Force finishing activity com.my.project/.setup.login.LoginActivity I/WindowState( 975): WIN DEATH: Window{44fbb1d0 u0 com.my.project/com.my.project.HomeActivity} I/WindowState( 975): WIN DEATH: Window{4509e158 u0 com.my.project/com.my.project.setup.login.LoginActivity} I/WindowState( 975): WIN DEATH: Window{452c6018 u0 com.my.project/com.my.project.setup.login.LoginActivity} I/ActivityManager( 975): Process com.my.project (pid 21625) has died. D/Zygote ( 320): Process 21625 terminated by signal (11)

developernotes commented 10 years ago

Hi @sharma-abhishek,

We have not had anyone submit a reproducible test case for this scenario, would you be able to do that? I have a few questions that may help give us a better understanding of your situation:

  1. What device/OS version are you running where the crash occurs?
  2. What query are you executing when this error occurs?
  3. Is the device rooted?
  4. Are you running this within an AsyncTask during the crash?
  5. Are you using a customized version of the icudt46l.dat file?
  6. Does it sometimes work on the same device?
sharma-abhishek commented 10 years ago

Hi @developernotes,

Please find the answers inline:

  1. What device/OS version are you running where the crash occurs? - Sony/D6502 (Android v4.4.2)
  2. What query are you executing when this error occurs? - query to search a record in table based on the criteria specified. For Example: checking for user if exists based on email address.
  3. Is the device rooted? - No, Device is not rooted.
  4. Are you running this within an AsyncTask during the crash? - Yes, the query executes in asynctask
  5. Are you using a customized version of the icudt46l.dat file? - Nope, I have used the one from the official site of sqlcipher
  6. Does it sometimes work on the same device? - Yes, it works sometimes on the same device.
sharma-abhishek commented 10 years ago

Hi @developernotes

The scenario is very rare to reproduce. However, I have noticed that whenever crash happens the package name in the log is appended with some number. Like the one in the log, it shows as "com.my.project-2" instead of "com.my.project". I am not sure if this has to do something with the crash.

I am sure that application is installed only once and only one instance of the app is running.