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

Native-Crash:Cause: null pointer dereference #631

Closed
LeonHover opened this issue Nov 20, 2019 · 1 comment
Closed

Native-Crash:Cause: null pointer dereference #631

LeonHover opened this issue Nov 20, 2019 · 1 comment
Assignees
Labels

Comments

@LeonHover
Copy link

The language of WCDB

Java

e.g. Objective-C, Swift or Java

The version of WCDB

v1.0.8

e.g. v1.0.5

The platform of WCDB

Android

The installation of WCDB

Maven

What's the issue?

Native crashed when I try to change my db's password.
use PRAGMA key and PRAGMA rekey.
Same source code with v1.0.5 is ok.but I upgrade to v1.0.8 native crash occurred.

2019-11-20 13:21:54.462 3082-3082/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2c
2019-11-20 13:21:54.462 3082-3082/? A/DEBUG: Cause: null pointer dereference
2019-11-20 13:21:54.462 3082-3082/? A/DEBUG: r0 ec052628 r1 d8ad6408 r2 00000000 r3 ec052628
2019-11-20 13:21:54.462 3082-3082/? A/DEBUG: r4 00000000 r5 ec05f608 r6 f2e3bf34 r7 00000002
2019-11-20 13:21:54.462 3082-3082/? A/DEBUG: r8 00000005 r9 ec05f7a0 r10 ebd20008 r11 ffb355e0
2019-11-20 13:21:54.462 3082-3082/? A/DEBUG: ip 00000000 sp ffb355d0 lr d0a5a1e7 pc d0a5330a
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: backtrace:
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #00 pc 0004e30a /data/app//lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #1 pc 000551e3 /data/app/
/lib/arm/libwcdb.so (sqlite3_rekey_v2+202)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #2 pc 00066d73 /data/app/=/lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #3 pc 000691cb /data/app/
/lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #4 pc 0006a6f9 /data/app//lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #5 pc 0006a917 /data/app/
/lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #6 pc 000833af /data/app//lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #7 pc 00083443 /data/app/
/lib/arm/libwcdb.so (sqlite3_prepare16_v2+10)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #8 pc 00015351 /data/app/**/lib/arm/libwcdb.so
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #9 pc 00434879 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #10 pc 00430375 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #11 pc 004092a3 /system/lib/libart.so (art_quick_invoke_static_stub+222)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #12 pc 000a4913 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+154)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #13 pc 001ed6b7 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+230)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #14 pc 001e8329 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+784)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #15 pc 00404e17 /system/lib/libart.so (MterpInvokeStatic+130)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #16 pc 00423314 /system/lib/libart.so (ExecuteMterpImpl+14612)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #17 pc 0031542e /dev/ashmem/dalvik-classes46.dex extracted in memory from /data/app/com.ringleai.ai-Av2-OHBOR8Pe3Y_V-IY3Qw==/base.apk!classes46.dex (deleted) (com.tencent.wcdb.database.SQLiteConnection.acquirePreparedStatement+50)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #18 pc 001cccdf /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.4133397274+354)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #19 pc 001d1617 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #20 pc 001e8313 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+762)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #21 pc 00403e37 /system/lib/libart.so (MterpInvokeVirtual+442)
2019-11-20 13:21:54.651 3082-3082/? A/DEBUG: #22 pc 00423194 /system/lib/libart.so (ExecuteMterpImpl+14228)

@Qiuwen-chen
Copy link
Collaborator

Please try the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants