-
Notifications
You must be signed in to change notification settings - Fork 567
sqlcipher have native crash #291
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
Comments
Hello @androidhw, Are you able to reproduce the error within the SQLCipher for Android test suite? What SQL statements are running when you receive the crash? Are you able to reproduce this on both an emulator, and/or a specific device? |
Hi developernotes , |
it is can not reproduce the error within the SQLCipher for Android test suite |
Hi @androidhw We have not tested SQLCipher for Android specifically with Android Wear. Are you able to create a small demo application that reproduces the behavior? You might also consider trying the latest 3.5.6 release to see if that addresses the issue you are seeing. |
Hi developernotes, |
Hi developernotes ,
it seems the statment value was not correct, but I can't found how it do not work |
Another simliar stack is
|
@developernotes could you give us more comment about this issue? |
Hello @raymond-wx Are you able to isolate the issue down to a specific reproducible query that would execute on an Android watch? |
Hi @developernotes I guess there is a timing issue, when someone call native_finalize but not set the statement var to 0, other thread call the native_finalize same time with a freed statement. But we have checked all usage of native_finalize, all of these have a lock. |
Hi @raymond-wx Since you are attempting local builds of the source, we have a pending pull request (currently awaiting a contributor agreement) that might be related to what you are seeing. Can you try applying that patch locally to see if it addresses the issue you are experiencing? |
hi @developernotes 03-24 16:16:09.341590 1150 1589 V SQLiteCompiledSql: Released DbObj (id#-1463994264) back to DB cache |
Hi @developernotes , |
Hi @techlectdinesh It appears the |
Hello @androidhw, @raymond-wx, Were you able to isolate the SQL query that is causing the issue? You might be able to utilize the |
Hello @androidhw, @raymond-wx, Since we have not heard back, I am going to close this ticket. If you still experiencing an issue we would be happy to investigate this further. Please fee free to open a new ticket and provide supporting information regarding your issue, preferably with a reproducible test case within the SQLCipher for Android test suite. Thanks! |
Our android app is using sqlcipher, and it's version is 3.5.4.
We found our app crashed on Android7.1.1 device, and the log is below:
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40400008
r0 40400000 r1 00000001 r2 714275f0 r3 c0a00000
r4 40400000 r5 a13d851c r6 a13d8704 r7 aa6ba308
r8 00000000 r9 00000000 sl b422e318 fp aa697b88
ip a4dafbf4 sp a2edfce8 lr a4ca75a7 pc a4ca7588 cpsr 800e0030
d0 0000000000000000 d1 0000000000000000
d2 0000000000000000 d3 0000000000000000
d4 0000000000000000 d5 0000000000000000
d6 0000000000000000 d7 0000000000000000
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 0000000000000000 d17 0000000000000000
d18 00000000130e7bc0 d19 00000000131011d0
d20 0000000000000000 d21 000000000000016f
d22 3ff0000000000000 d23 392f1976b7ed8fc0
d24 4008000000000000 d25 3fdb6db6db6fabff
d26 3fd55555518f264d d27 bfad1faf00000000
d28 0000000000000000 d29 0000000000000000
d30 0000000000000000 d31 00001366a5d50ed2
scr 80000093
backtrace:
#00 pc 00033588 /system/lib/libsqlcipher.so
#1 pc 000335a3 /system/lib/libsqlcipher.so
#2 pc 0005aa01 /system/lib/libsqlcipher.so
#3 pc 0006a227 /system/lib/libsqlcipher.so
#4 pc 00076987 /system/lib/libsqlcipher.so
#5 pc 0007a057 /system/lib/libsqlcipher.so (sqlite3_step+662)
#6 pc 00092e0f /system/lib/libsqlcipher.so
#7 pc 00538455 /data/dalvik-cache/arm/system@priv-app@xxx@[email protected] (offset 0x536000)
Please tell me why this issue happen, thanks.
The text was updated successfully, but these errors were encountered: