Puzzling crash on iOS 16.0

Date/Time: 2022-06-10 06:57:07.9651 +0800 Launch Time: 2022-06-09 17:42:25.7993 +0800 OS Version: iPhone OS 16.0 (20A5283p) Release Type: Beta Baseband Version: 2.04.00 Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000058 Exception Codes: 0x0000000000000001, 0x0000000000000058 VM Region Info: 0x58 is not in any region. Bytes before following region: 206997290920 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START --->
commpage (reserved) 3032000000-7000000000 [255.2G] ---/--- SM=NUL ...(unallocated) Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [7705]

Triggered by Thread: 53

Thread 53 name: Thread 53 Crashed: 0 libdispatch.dylib 0x0000000186f68554 dispatch_source_set_timer + 32 (source.c:1389) 1 PrivacyAccounting 0x000000020f05632c -[PACoalescingIntervalTracker coalesce:] + 420 (PACoalescingIntervalTracker.m:101) 2 PrivacyAccounting 0x000000020f04af30 __22-[PAAccessLogger log:]_block_invoke + 360 (PAAccessLogger.m:209) 3 libdispatch.dylib 0x0000000186f621cc _dispatch_block_async_invoke2 + 148 (queue.c:555) 4 libdispatch.dylib 0x0000000186f530f4 _dispatch_client_callout + 20 (object.m:560) 5 libdispatch.dylib 0x0000000186f5a7ac _dispatch_lane_serial_drain + 672 (inline_internal.h:2631) 6 libdispatch.dylib 0x0000000186f5b32c _dispatch_lane_invoke + 436 (queue.c:3939) 7 libdispatch.dylib 0x0000000186f65ebc _dispatch_workloop_worker_thread + 652 (queue.c:6766) 8 libsystem_pthread.dylib 0x00000001fe9190a8 _pthread_wqthread + 288 (pthread.c:2599) 9 libsystem_pthread.dylib 0x00000001fe918e48 start_wqthread + 8

  • Supplementary information in the second reply.

Add a Comment

Replies

It is even more puzzling because you tell nothing about the code itself…

You have a segmentation fault. That could come from many reasons:

  • some view defined without setting frame
  • Did you first try the usual option-clean build folder ?

Could also be a problem similar to this one

  • https ://github .com/xmartlabs/Eureka/issues/2057
  • where self in some extension or some code was confusing the compiler ? See also detail
  • https ://github .com/xmartlabs/Eureka/pull/2061

May have a look here for more ideas. https://developer.apple.com/forums/thread/665184

As the above log, we received a batch of crash logs of our App, which all have the following common features:

  • On iOS 16.0
  • Crash threads all have these calls:

0 libdispatch.dylib dispatch_source_set_timer + 32 (source.c:1389)

1 PrivacyAccounting -[PACoalescingIntervalTracker coalesce:] + 420 (PACoalescingIntervalTracker.m:101)

2 PrivacyAccounting __22-[PAAccessLogger log:]_block_invoke + 360 (PAAccessLogger.m:209)

  • Different logs, but all crashed from accessing 0x58.

Is it only iOS 16 (which is beta, so that is not uncommon) ?

Do you use external framework (as FireBase) ? If so, have a look here: https://developer.apple.com/forums/thread/665276

Could you find which part of code causes the crash ? Or at least when it occurs ? At launch ? During some authentication ?

If so, try to build a minimum app that shows the issue and file a bug report.

  • Thanks, this only happens on iOS 16.0. We obtained these logs from related services, and we did not reproduce this problem under debug, nor did we have relevant codes for analysis. That's why we're looking for clues here.

Add a Comment

i have encounter similar problem on this 16-beta version

Pthread id: 647490 Thread 38 Crashed: 0 libdispatch.dylib 0x00000001c97d4554 _dispatch_source_set_runloop_timer_4CF + 32 1 PrivacyAccounting 0x00000002510ee32c -[PACoalescingIntervalTracker coalesce:] + 420 2 PrivacyAccounting 0x00000002510ee32c -[PACoalescingIntervalTracker coalesce:] + 420 3 PrivacyAccounting 0x00000002510e2f30 __22-[PAAccessLogger log:]_block_invoke + 360 4 libdispatch.dylib 0x00000001c97ce1cc _dispatch_block_async_invoke2 + 148 5 libdispatch.dylib 0x00000001c97bf0f4 _dispatch_client_callout + 20 6 libdispatch.dylib 0x00000001c97c67ac _dispatch_lane_serial_drain + 672 7 libdispatch.dylib 0x00000001c97c732c _dispatch_lane_invoke + 436 8 libdispatch.dylib 0x00000001c97d1ebc _dispatch_workloop_worker_thread + 652 9 libsystem_pthread.dylib 0x00000002409b10a8 _pthread_wqthread + 288