Sometime Crash CFNetwork CFURLRequestSetHTTPRequestBody + 36

There are several crash logs

Crashed: com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000038
0  CFNetwork                      0x1e98 CFURLRequestSetHTTPRequestBody + 36
1  ***                           0x104f7d0 -[XXXRequest getURLRequest] + 66 (XXXRequest.m:66)
2  ***                           0x1051328 -[XXXRequestManager processHTTPRequest:] + 152 (XXXRequestManager.m:152)
3  ***                           0x79748c __47-[XXXLog __submit:]_block_invoke + 277 (XXXLog.m:277)
4  FBLPromises                    0x5138 __56-[FBLPromise chainOnQueue:chainedFulfill:chainedReject:]_block_invoke.18 + 52
5  libdispatch.dylib              0x63094 _dispatch_call_block_and_release + 24
6  libdispatch.dylib              0x64094 _dispatch_client_callout + 16
7  libdispatch.dylib              0x6924 _dispatch_queue_override_invoke + 924
8  libdispatch.dylib              0x13b94 _dispatch_root_queue_drain + 340
9  libdispatch.dylib              0x1439c _dispatch_worker_thread2 + 172
10 libsystem_pthread.dylib        0x1dc4 _pthread_wqthread + 224
11 libsystem_pthread.dylib        0x192c start_wqthread + 8

Please post an example crash report, using the advice from Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Sadly, that’s not an Apple crash report, which limits the amount I can learn from it [1]. If you have an Apple crash report, please post that here.

Consider this:

Crashed: com.apple.main-thread
0  CFNetwork … CFURLRequestSetHTTPRequestBody + 36
1  Oooo      … -[OABaseHTTPRequest getURLRequest] + 66 (OBaseRequest.m:66)
2  Oooo      … -[ORequestManager processHTTPRequest:] + 152 (ORequestManager.m:152)
…

The code in frame 1 can’t be calling CFURLRequestSetHTTPRequestBody directly, because that’s not API. So which API is that code calling?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] For an in-depth explanation as to why that’s the case, see Implementing Your Own Crash Reporter.

The code in frame 1 can’t be calling CFURLRequestSetHTTPRequestBody directly, because that’s not API. So which API is that code calling?

i used API - (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request; from NSURLSession

Sometime Crash CFNetwork CFURLRequestSetHTTPRequestBody + 36
 
 
Q