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

nativeFind Crash #594

Closed
wwwtete opened this issue Oct 29, 2018 · 3 comments
Closed

nativeFind Crash #594

wwwtete opened this issue Oct 29, 2018 · 3 comments

Comments

@wwwtete
Copy link

wwwtete commented Oct 29, 2018

mobile phone:xiaomi 6
Android OS:android 8.0

2018-10-29 11:44:30.267 12678-13319/com.xmx.group I/crash_recorder: getJavaCallStackImpl, @thread: 13319, 
        io.objectbox.query.Query.nativeFind(Native Method)
        io.objectbox.query.Query$4.call(Query.java:255)
        io.objectbox.query.Query$4.call(Query.java:252)
        io.objectbox.BoxStore.callInReadTx(BoxStore.java:685)
        io.objectbox.BoxStore.callInReadTxWithRetry(BoxStore.java:630)
        io.objectbox.query.Query.callInReadTx(Query.java:304)
        io.objectbox.query.Query.find(Query.java:252)
2018-10-29 11:44:30.278 13320-12678/? I/crash_recorder: ExceptionHandler::DoDump... 12678
2018-10-29 11:44:30.279 13320-12678/? I/crash_recorder: isInTbsContext, webviewType: unknown, isLoading: 0
2018-10-29 11:44:30.279 13320-12678/? I/crash_recorder: starting WriteMicrodump for pid: 12678
2018-10-29 11:44:30.345 13320-12678/? A/google-breakpad: -----BEGIN BREAKPAD MICRODUMP-----
2018-10-29 11:44:30.345 13320-12678/? A/google-breakpad: V UNKNOWN:0.0.0.0
2018-10-29 11:44:30.345 13320-12678/? A/google-breakpad: O A arm 08 armv8l 4.4.78-perf-g92b7329 #1 SMP PREEMPT Tue Sep 25 23:43:55 CST 2018
2018-10-29 11:44:30.345 13320-12678/? A/google-breakpad: P UNKNOWN
2018-10-29 11:44:30.345 13320-12678/? A/google-breakpad: G UNKNOWN
2018-10-29 11:44:30.349 13320-12678/? A/google-breakpad: H 12C00000 FFFF1000 0097 33B1D000 679D0000 0C:3F 0D:19 0E:0E 0F:0C 10:06 11:0A 12:0D 13:02 16:01 17:02 1C:02 1D:01
2018-10-29 11:44:30.349 13320-12678/? A/google-breakpad: -----starting crashing thread-----
2018-10-29 11:44:30.349 13320-12678/? I/crash_recorder: UContextReader::FillCPUContext of uc: 0xc7e57270, out: 0xc7affa48, pc: 0xc0cb6ada
2018-10-29 11:44:30.365 12678-12678/com.xmx.group A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xbe7f706c in tid 12678 (com.xmx.group)
2018-10-29 11:44:30.445 13324-13324/? W/crash_dump32: type=1400 audit(0.0:190091): avc: denied { search } for name="com.tencent.mm" dev="sda17" ino=1417218 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-10-29 11:44:30.490 13324-13324/? I/crash_dump32: obtaining output fd from tombstoned
2018-10-29 11:44:30.491 1042-1042/? I//system/bin/tombstoned: received crash request for pid 12678
2018-10-29 11:44:30.494 13324-13324/? I/crash_dump32: performing dump of process 12678 (target tid = 12678)
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG: Build fingerprint: 'Xiaomi/sagit/sagit:8.0.0/OPR1.170623.027/V10.0.2.0.OCACNFH:user/release-keys'
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG: Revision: '0'
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG: ABI: 'arm'
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xbe7f706c
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG:     r0 c010ad48  r1 be7f706c  r2 b7be493c  r3 00000014
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG:     r4 ff958ba8  r5 abbdf7a8  r6 000004b4  r7 ff958b28
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG:     r8 abbe2860  r9 abbd90fc  sl abbd7e40  fp abbd90f8
2018-10-29 11:44:30.495 13324-13324/? A/DEBUG:     ip b977abf8  sp ff958b10  lr c0cae84f  pc c0cb6ada  cpsr 800f0030
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG: backtrace:
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #00 pc 0002cada  /data/app/com.xmx.group-n3swoVhxGZIOslPq_6BCYA==/lib/arm/libobjectbox.so
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #01 pc 0002484d  /data/app/com.xmx.group-n3swoVhxGZIOslPq_6BCYA==/lib/arm/libobjectbox.so
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #02 pc 00026fc7  /data/app/com.xmx.group-n3swoVhxGZIOslPq_6BCYA==/lib/arm/libobjectbox.so
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #03 pc 00024403  /data/app/com.xmx.group-n3swoVhxGZIOslPq_6BCYA==/lib/arm/libobjectbox.so
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #04 pc 000595dd  /data/app/com.xmx.group-n3swoVhxGZIOslPq_6BCYA==/lib/arm/libobjectbox.so (Java_io_objectbox_query_Query_nativeFind+72)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #05 pc 003e5d29  /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #06 pc 003e1fe1  /system/lib/libart.so (art_quick_invoke_stub_internal+64)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #07 pc 003e6555  /system/lib/libart.so (art_quick_invoke_stub+228)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #08 pc 000ace19  /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+140)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #09 pc 001f2e27  /system/lib/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+238)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #10 pc 001eefc3  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb1ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+442)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #11 pc 003cd1ab  /system/lib/libart.so (MterpInvokeVirtualRange+426)
2018-10-29 11:44:30.499 13324-13324/? A/DEBUG:     #12 pc 003d4594  /system/lib/libart.so (ExecuteMterpImpl+14996)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #13 pc 001d5965  /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+340)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #14 pc 001dace7  /system/lib/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+142)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #15 pc 001ee3cd  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+552)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #16 pc 003cbed3  /system/lib/libart.so (MterpInvokeVirtual+446)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #17 pc 003d4294  /system/lib/libart.so (ExecuteMterpImpl+14228)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #18 pc 001d5965  /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+340)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #19 pc 001dac35  /system/lib/libart.so (_ZN3art11interpreter30EnterInterpreterFromEntryPointEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameE+92)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #20 pc 003c2619  /system/lib/libart.so (artQuickToInterpreterBridge+960)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #21 pc 003e5da1  /system/lib/libart.so (art_quick_to_interpreter_bridge+32)
2018-10-29 11:44:30.500 13324-13324/? A/DEBUG:     #22 pc 0005006f  /dev/ashmem/dalvik-jit-code-cache (deleted)
@greenrobot-team
Copy link
Member

@wwwtete Can you share some code or scenario when this crash happens?

ping @greenrobot Does this crash trace have enough info to go on?
-ut

@wwwtete
Copy link
Author

wwwtete commented Oct 29, 2018

@wwwtete Can you share some code or scenario when this crash happens?

ping @greenrobot Does this crash trace have enough info to go on?
-ut

....
if (isDbDisable() || msgType == null || msgType.length == 0) {
            IMLog.e("DBService.loadMsgs, mDB is null");
            return null;
        }
        QueryBuilder<GroupMsgInfo> query = getBox().query()
                .equal(GroupMsgInfo_.peerAppid, 1)
                .and()
                .equal(getSlIdPro(), slId);
        if (extendgid != 0) {
            query.and().equal(GroupMsgInfo_.extendgid, String.valueOf(extendgid));
        }
        if (stamp != 0) {
            query.and()
                    .less(GroupMsgInfo_.sstamp, stamp);
        }
        return query.and()
                .in(GroupMsgInfo_.msgtype, msgType)
                .orderDesc(GroupMsgInfo_.sstamp)
                .build()
                .find(0,limit);

public boolean isDbDisable(){
        boolean disable = mDBService.getBoxStore() == null || mDBService.getBoxStore().isClosed() || getBox() == null;
        if (disable)
            IMLog.e("DBService Disable");
        return disable;
}

@greenrobot-team
Copy link
Member

Possibly related to #493. -ut

@wwwtete wwwtete closed this as completed Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants