{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1837","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1837/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1837/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1837/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1837","id":93234007,"number":1837,"title":"Crash in HTTPRequest::handleResponse()","user":{"login":"kkaefer","id":52399,"avatar_url":"https://avatars.githubusercontent.com/u/52399?v=3","gravatar_id":"","url":"https://api.github.com/users/kkaefer","html_url":"https://github.com/kkaefer","followers_url":"https://api.github.com/users/kkaefer/followers","following_url":"https://api.github.com/users/kkaefer/following{/other_user}","gists_url":"https://api.github.com/users/kkaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/kkaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkaefer/subscriptions","organizations_url":"https://api.github.com/users/kkaefer/orgs","repos_url":"https://api.github.com/users/kkaefer/repos","events_url":"https://api.github.com/users/kkaefer/events{/privacy}","received_events_url":"https://api.github.com/users/kkaefer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/crash","name":"crash","color":"ff00ff"}],"state":"open","locked":false,"assignee":{"login":"tmpsantos","id":996307,"avatar_url":"https://avatars.githubusercontent.com/u/996307?v=3","gravatar_id":"","url":"https://api.github.com/users/tmpsantos","html_url":"https://github.com/tmpsantos","followers_url":"https://api.github.com/users/tmpsantos/followers","following_url":"https://api.github.com/users/tmpsantos/following{/other_user}","gists_url":"https://api.github.com/users/tmpsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpsantos/subscriptions","organizations_url":"https://api.github.com/users/tmpsantos/orgs","repos_url":"https://api.github.com/users/tmpsantos/repos","events_url":"https://api.github.com/users/tmpsantos/events{/privacy}","received_events_url":"https://api.github.com/users/tmpsantos/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-07-06T09:38:18Z","updated_at":"2015-10-06T01:22:13Z","closed_at":null,"body":"I'm ocassionally seeing crashes in there on OS X with the NSURL backend, typically during the `Storage.HTTPLoad` test. I've also seen them on Travis, so they're probably not NSURL related. [This crash on Travis](https://travis-ci.org/mapbox/mapbox-gl-native/jobs/69289300#L1555) might also be related.\r\n\r\n```\r\n...\r\n\r\nThread 27 (Thread 0x1057 of process 31381):\r\n#0  0x00007fff88fcf286 in __pthread_kill () from /usr/lib/system/libsystem_kernel.dylib\r\n#1  0x00007fff83d1242f in pthread_kill () from /usr/lib/system/libsystem_pthread.dylib\r\n#2  0x00007fff8db02b53 in abort () from /usr/lib/system/libsystem_c.dylib\r\n#3  0x000000010021756d in uv__async_send (wa=0x1003d018e <sqlite3_os_init.aVfs+558>) at src/unix/async.c:190\r\n#4  0x000000010021744d in uv_async_send (handle=0x100a21560) at src/unix/async.c:58\r\n#5  0x0000000100185f82 in send (this=0x0) at ../../src/mbgl/util/uv_detail.hpp:116\r\n#6  mbgl::Request::notify (this=0x6, response_=...) at ../../src/mbgl/storage/request.cpp:55\r\n#7  0x00000001001832ac in mbgl::DefaultFileSource::Impl::notify (this=0x105f81000, request=0x104405b00, response=..., hint=mbgl::FileCache::Hint::Full) at ../../src/mbgl/storage/default_file_source.cpp:174\r\n#8  0x0000000100183488 in operator() (this=<optimized out>, res=..., hint=<optimized out>) at ../../src/mbgl/storage/default_file_source.cpp:131\r\n#9  __invoke<(lambda at ../../src/mbgl/storage/default_file_source.cpp:130:21) &, std::__1::shared_ptr<const mbgl::Response>, mbgl::FileCache::Hint> (__args=<optimized out>, __args=<optimized out>, __f=...) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:413\r\n#10 std::__1::__function::__func<mbgl::DefaultFileSource::Impl::startRealRequest(mbgl::DefaultFileRequest*, std::__1::shared_ptr<mbgl::Response const>)::$_1, std::__1::allocator<mbgl::DefaultFileSource::Impl::startRealRequest(mbgl::DefaultFileRequest*, std::__1::shared_ptr<mbgl::Response const>)::$_1>, void (std::__1::shared_ptr<mbgl::Response const>, mbgl::FileCache::Hint)>::operator()(std::__1::shared_ptr<mbgl::Response const>&&, mbgl::FileCache::Hint&&) (this=<optimized out>, __arg=<optimized out>, __arg=<optimized out>) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1370\r\n#11 0x00000001001f3896 in operator() (__arg=..., this=<optimized out>, __arg=...) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1756\r\n#12 mbgl::HTTPRequest::handleResponse() (this=0x6) at ../../platform/darwin/http_request_nsurl.mm:207\r\n#13 0x00000001002173ef in uv__async_event (loop=0x100b56990, w=0x100b56b18, nevents=2) at src/unix/async.c:80\r\n#14 0x00000001002177ea in uv__async_io (loop=0x100b56990, w=0x100b56b20, events=1) at src/unix/async.c:156\r\n#15 0x0000000100233479 in uv__io_poll (loop=0x100b56990, timeout=-1) at src/unix/kqueue.c:233\r\n#16 0x0000000100217ef1 in uv_run (loop=0x100b56990, mode=UV_RUN_DEFAULT) at src/unix/core.c:317\r\n...\r\n```\r\n\r\n/cc @tmpsantos "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/145717652","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1837#issuecomment-145717652","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1837","id":145717652,"user":{"login":"ljbade","id":1215089,"avatar_url":"https://avatars.githubusercontent.com/u/1215089?v=3","gravatar_id":"","url":"https://api.github.com/users/ljbade","html_url":"https://github.com/ljbade","followers_url":"https://api.github.com/users/ljbade/followers","following_url":"https://api.github.com/users/ljbade/following{/other_user}","gists_url":"https://api.github.com/users/ljbade/gists{/gist_id}","starred_url":"https://api.github.com/users/ljbade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljbade/subscriptions","organizations_url":"https://api.github.com/users/ljbade/orgs","repos_url":"https://api.github.com/users/ljbade/repos","events_url":"https://api.github.com/users/ljbade/events{/privacy}","received_events_url":"https://api.github.com/users/ljbade/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T01:22:13Z","updated_at":"2015-10-06T01:22:13Z","body":"@kkaefer possibly related to https://github.com/mapbox/mapbox-gl-native/issues/2295 (which has still not been fixed - we just switched back to curl on Android which does not use `uv_async`."}}