iOS 11 Crash in SSRequest _shutdownRequestWithMessageID:

Originator:wetzeal
Number:rdar://34637890 Date Originated:9/25/2017
Status:Duplicate/33960738/Open Resolved:
Product:iOS 11.0.0 (15A372) Product Version:
Classification: Reproducible:
 
Area:
StoreKit

Summary:
We're getting crash reports of a crash inside StoreKit that we are unable to reproduce locally. The crash is only happening to users of iOS 11, it appears to happen across a wide range of devices. I think it may be caused by cancelling an inflight SKProductsRequest, but I have not been able to verify that.

This forum post is experiencing the same issue: https://forums.developer.apple.com/message/262097#262097

One thing I've noticed is in all of the crashes I've examined, the bad address that triggers the crash ends in `beb8`.

I have tried cancelling the inflight SKProductsRequest we make in our app, and it has not reproduced the crash. In particular, I have ensured that all SKRequests in our app have their delegates nilled and are cancelled when their owner is deallocated.

Actual Results:
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000006fcebeb8
Crashed: com.apple.StoreServices.SSRequest.0x1c42c86c0

0  libobjc.A.dylib                0x185c34430 objc_msgSend + 16
1  StoreServices                  0x1914131b4 -[SSRequest _shutdownRequestWithMessageID:] + 228
2  libdispatch.dylib              0x186091088 _dispatch_call_block_and_release + 24
3  libdispatch.dylib              0x186091048 _dispatch_client_callout + 16
4  libdispatch.dylib              0x18609ae48 _dispatch_queue_serial_drain$VARIANT$mp + 528
5  libdispatch.dylib              0x18609b7d8 _dispatch_queue_invoke$VARIANT$mp + 340
6  libdispatch.dylib              0x18609c200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
7  libdispatch.dylib              0x1860a44a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
8  libsystem_pthread.dylib        0x186336fe0 _pthread_wqthread + 932
9  libsystem_pthread.dylib        0x186336c30 start_wqthread + 4

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!