{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3615","repository_url":"https://api.github.com/repos/AFNetworking/AFNetworking","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3615/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3615/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3615/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3615","id":166324963,"number":3615,"title":"AFHTTPRequestSerializer crashing on HTTPRequestHeaders","user":{"login":"janhalousek","id":7541787,"avatar_url":"https://avatars.githubusercontent.com/u/7541787?v=3","gravatar_id":"","url":"https://api.github.com/users/janhalousek","html_url":"https://github.com/janhalousek","followers_url":"https://api.github.com/users/janhalousek/followers","following_url":"https://api.github.com/users/janhalousek/following{/other_user}","gists_url":"https://api.github.com/users/janhalousek/gists{/gist_id}","starred_url":"https://api.github.com/users/janhalousek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janhalousek/subscriptions","organizations_url":"https://api.github.com/users/janhalousek/orgs","repos_url":"https://api.github.com/users/janhalousek/repos","events_url":"https://api.github.com/users/janhalousek/events{/privacy}","received_events_url":"https://api.github.com/users/janhalousek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-19T12:59:01Z","updated_at":"2016-12-11T01:25:19Z","closed_at":null,"body":"I now and then see these in our crashlogs (cannot reproduce):\n\n```\n0   libsystem_kernel.dylib               0x0000000183a0c140 __pthread_kill + 8\n1   libsystem_pthread.dylib              0x0000000183ad4ef8 pthread_kill + 108\n2   libsystem_c.dylib                    0x000000018397ddac abort + 136\n3   libsystem_malloc.dylib               0x0000000183a40d34 szone_error + 436\n4   libsystem_malloc.dylib               0x0000000183a40d58 free_list_checksum_botch + 32\n5   libsystem_malloc.dylib               0x0000000183a36b1c tiny_malloc_from_free_list + 324\n6   libsystem_malloc.dylib               0x0000000183a355bc szone_malloc_should_clear + 264\n7   libsystem_malloc.dylib               0x0000000183a39940 malloc_zone_calloc + 120\n8   libsystem_malloc.dylib               0x0000000183a398a0 calloc + 56\n9   CoreFoundation                       0x0000000183d54bd4 -[__NSDictionaryM setObject:forKey:] + 172\n10  CoreFoundation                       0x0000000183e69940 __exceptionPreprocess + 184\n11  libobjc.A.dylib                      0x00000001834d7f80 objc_exception_throw + 52\n12  CoreFoundation                       0x0000000183d581a8 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 320\n13  CoreFoundation                       0x0000000183d97b34 -[NSDictionary initWithDictionary:copyItems:] + 460\n14  CoreFoundation                       0x0000000183d97950 +[NSDictionary dictionaryWithDictionary:] + 44\n15  AFNetworking                         0x00000001005616ac -[AFHTTPRequestSerializer HTTPRequestHeaders] (AFURLRequestSerialization.m:313)\n16  AFNetworking                         0x0000000100562a78 -[AFHTTPRequestSerializer requestBySerializingRequest:withParameters:error:] (AFURLRequestSerialization.m:496)\n17  AFNetworking                         0x00000001005669d8 -[AFJSONRequestSerializer requestBySerializingRequest:withParameters:error:] (AFURLRequestSerialization.m:1265)\n18  AFNetworking                         0x0000000100561e50 -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:] (AFURLRequestSerialization.m:382)\n19  AFNetworking                         0x0000000100557f90 -[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:success:failure:] (AFHTTPSessionManager.m:230)\n20  AFNetworking                         0x0000000100557488 -[AFHTTPSessionManager GET:parameters:success:failure:] (AFHTTPSessionManager.m:114)\n```\n\nIt appeared on v2.6.0 and now it occurs on v3.1.0.\n\nThis `GET` is called after \n`[self.requestSerializer setValue:[NSString stringWithFormat:@\"Token token=\\\"%@\\\"\", _accessToken] forHTTPHeaderField:@\"Authorization\"];`\n\nI assume there is a unsynchronized modifying and reading of `mutableHTTPRequestHeaders`. What can I do?\n"},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/266254295","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3615#issuecomment-266254295","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3615","id":266254295,"user":{"login":"amita214","id":17312557,"avatar_url":"https://avatars.githubusercontent.com/u/17312557?v=3","gravatar_id":"","url":"https://api.github.com/users/amita214","html_url":"https://github.com/amita214","followers_url":"https://api.github.com/users/amita214/followers","following_url":"https://api.github.com/users/amita214/following{/other_user}","gists_url":"https://api.github.com/users/amita214/gists{/gist_id}","starred_url":"https://api.github.com/users/amita214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amita214/subscriptions","organizations_url":"https://api.github.com/users/amita214/orgs","repos_url":"https://api.github.com/users/amita214/repos","events_url":"https://api.github.com/users/amita214/events{/privacy}","received_events_url":"https://api.github.com/users/amita214/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T01:25:19Z","updated_at":"2016-12-11T01:25:19Z","body":"@janhalousek / @Noiled have you found a fix yet?"}}
{"actor":{"display_login":"amita214"}}