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

Problem with the Bugly #564

Closed
iOkay opened this issue Jul 25, 2019 · 2 comments
Closed

Problem with the Bugly #564

iOkay opened this issue Jul 25, 2019 · 2 comments

Comments

@iOkay
Copy link

iOkay commented Jul 25, 2019

The language of WCDB

Objective-C

The version of WCDB

e.g. v1.0.7.5

The platform of WCDB

e.g. iOS12.3

The installation of WCDB

e.g. Cocoapods

What's the issue?

When used with the Bugly together will crash on __asan::AsanCheckFailed.
Xcode setting as fellow:
image

stack info

  thread #1, queue = 'com.apple.main-thread'
    frame #0: 0x000000023a603ea4 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000023a60337c libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x000000023aa09ad8 CoreFoundation`__CFRunLoopServiceMachPort + 236
    frame #3: 0x000000023aa04974 CoreFoundation`__CFRunLoopRun + 1396
    frame #4: 0x000000023aa040e0 CoreFoundation`CFRunLoopRunSpecific + 436
    frame #5: 0x000000023cc7d584 GraphicsServices`GSEventRunModal + 100
    frame #6: 0x0000000267c18c00 UIKitCore`UIApplicationMain + 212
    frame #7: 0x00000001000c408c BuglySDKDemo`main(argc=1, argv=0x000000016fd478a8) at main.m:14:16
    frame #8: 0x000000023a4c2bb4 libdyld.dylib`start + 4
  thread #2
    frame #0: 0x000000023a60fb9c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000023a695100 libsystem_pthread.dylib`_pthread_wqthread + 348
    frame #2: 0x000000023a697cec libsystem_pthread.dylib`start_wqthread + 4
  thread #3
    frame #0: 0x000000023a60fb9c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000023a6951c0 libsystem_pthread.dylib`_pthread_wqthread + 540
    frame #2: 0x000000023a697cec libsystem_pthread.dylib`start_wqthread + 4
  thread #4
    frame #0: 0x000000023a697ce8 libsystem_pthread.dylib`start_wqthread
  thread #5
    frame #0: 0x000000023a60fb9c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000023a695100 libsystem_pthread.dylib`_pthread_wqthread + 348
    frame #2: 0x000000023a697cec libsystem_pthread.dylib`start_wqthread + 4
  thread #6, name = 'com.apple.uikit.eventfetch-thread'
    frame #0: 0x000000023a603ea4 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000023a60337c libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x000000023aa09ad8 CoreFoundation`__CFRunLoopServiceMachPort + 236
    frame #3: 0x000000023aa04974 CoreFoundation`__CFRunLoopRun + 1396
    frame #4: 0x000000023aa040e0 CoreFoundation`CFRunLoopRunSpecific + 436
    frame #5: 0x000000023b3fa494 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
    frame #6: 0x000000023b3fa304 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 88
    frame #7: 0x0000000267d090c4 UIKitCore`-[UIEventFetcher threadMain] + 136
    frame #8: 0x000000023b52d23c Foundation`__NSThread__start__ + 1040
    frame #9: 0x000000023a69425c libsystem_pthread.dylib`_pthread_body + 128
    frame #10: 0x000000023a6941bc libsystem_pthread.dylib`_pthread_start + 48
    frame #11: 0x000000023a697cf4 libsystem_pthread.dylib`thread_start + 4
* thread #7
    frame #0: 0x00000001003d3714 libclang_rt.asan_ios_dynamic.dylib`__asan::AsanDie()
    frame #1: 0x00000001003e7918 libclang_rt.asan_ios_dynamic.dylib`__sanitizer::Die() + 188
  * frame #2: 0x00000001003d3924 libclang_rt.asan_ios_dynamic.dylib`__asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) + 288
    frame #3: 0x00000001003e79b4 libclang_rt.asan_ios_dynamic.dylib`__sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) + 124
    frame #4: 0x00000001003e3088 libclang_rt.asan_ios_dynamic.dylib`__sanitizer::UnmapOrDie(void*, unsigned long) + 152
    frame #5: 0x00000001003e8088 libclang_rt.asan_ios_dynamic.dylib`__sanitizer::UnsetAlternateSignalStack() + 52
    frame #6: 0x00000001003d5bb8 libclang_rt.asan_ios_dynamic.dylib`__asan::AsanThread::Destroy() + 92
    frame #7: 0x000000023a69747c libsystem_pthread.dylib`_pthread_tsd_cleanup + 508
    frame #8: 0x000000023a6948bc libsystem_pthread.dylib`_pthread_exit + 80
    frame #9: 0x000000023a6954c0 libsystem_pthread.dylib`_pthread_wqthread_exit + 80
    frame #10: 0x000000023a695114 libsystem_pthread.dylib`_pthread_wqthread + 368
    frame #11: 0x000000023a697cec libsystem_pthread.dylib`start_wqthread + 4
  thread #9
    frame #0: 0x000000023a60f428 libsystem_kernel.dylib`__semwait_signal + 8
    frame #1: 0x000000023a5845d0 libsystem_c.dylib`nanosleep + 212
    frame #2: 0x000000023a5843cc libsystem_c.dylib`sleep + 44
    frame #3: 0x00000001000c3264 BuglySDKDemo`::-[AppDelegate testLogOnBackground](self=0x000000015a932560, _cmd="testLogOnBackground") at AppDelegate.mm:109:9
    frame #4: 0x000000023b52d23c Foundation`__NSThread__start__ + 1040
    frame #5: 0x000000023a69425c libsystem_pthread.dylib`_pthread_body + 128
    frame #6: 0x000000023a6941bc libsystem_pthread.dylib`_pthread_start + 48
    frame #7: 0x000000023a697cf4 libsystem_pthread.dylib`thread_start + 4
  thread #10
    frame #0: 0x000000023a60fb9c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000023a695100 libsystem_pthread.dylib`_pthread_wqthread + 348
    frame #2: 0x000000023a697cec libsystem_pthread.dylib`start_wqthread + 4
  thread #11, name = 'MainRunloopMonitor'
    frame #0: 0x000000023a603ef8 libsystem_kernel.dylib`semaphore_timedwait_trap + 8
    frame #1: 0x00000001001fd688 libdispatch.dylib`_dispatch_sema4_timedwait + 64
    frame #2: 0x00000001001fdfe4 libdispatch.dylib`_dispatch_semaphore_wait_slow + 72
    frame #3: 0x00000001000f2468 BuglySDKDemo`-[BLYMainRunloopMonitorManager monitorThreadRun] + 212
    frame #4: 0x000000023b52d23c Foundation`__NSThread__start__ + 1040
    frame #5: 0x000000023a69425c libsystem_pthread.dylib`_pthread_body + 128
    frame #6: 0x000000023a6941bc libsystem_pthread.dylib`_pthread_start + 48
    frame #7: 0x000000023a697cf4 libsystem_pthread.dylib`thread_start + 4
  thread #12
    frame #0: 0x000000023a697ce8 libsystem_pthread.dylib`start_wqthread
  thread #13, name = 'com.apple.NSURLConnectionLoader'
    frame #0: 0x000000023a603ea4 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000023a60337c libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x000000023aa09ad8 CoreFoundation`__CFRunLoopServiceMachPort + 236
    frame #3: 0x000000023aa04974 CoreFoundation`__CFRunLoopRun + 1396
    frame #4: 0x000000023aa040e0 CoreFoundation`CFRunLoopRunSpecific + 436
    frame #5: 0x000000023b02700c CFNetwork`-[__CoreSchedulingSetRunnable runForever] + 212
    frame #6: 0x000000023b52d23c Foundation`__NSThread__start__ + 1040
    frame #7: 0x000000023a69425c libsystem_pthread.dylib`_pthread_body + 128
    frame #8: 0x000000023a6941bc libsystem_pthread.dylib`_pthread_start + 48
    frame #9: 0x000000023a697cf4 libsystem_pthread.dylib`thread_start + 4

console log

==24843==ERROR: AddressSanitizer failed to deallocate 0x20000 (131072) bytes at address 0x0001632a0800
==24843==AddressSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clang_compiler_rt/clang-1001.0.46.4/src/projects/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc:62 "(("unable to unmap" && 0)) != (0)" (0x0, 0x0)
    #0 0x1003d3860 in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/var/containers/Bundle/Application/E64E1B0A-C757-40EB-96DD-B61DFE53BDAD/BuglySDKDemo.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x5b860)

Project

I used the demo support by the Bugly. And install WCDB with cocoapods.

@RingoD
Copy link
Collaborator

RingoD commented Jul 31, 2019

Well, why do you think it's related with WCDB? I can't see any WCDB symbols on the stack info.

@iOkay
Copy link
Author

iOkay commented Aug 2, 2019

I installed the WCDB in the demo provided by the Bugly. And the execption occurs.

@RingoD RingoD closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants