{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/4220","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/4220/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/4220/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/4220/events","html_url":"https://github.com/influxdb/influxdb/issues/4220","id":108183379,"number":4220,"title":"Handle out of memory panics at a global level?","user":{"login":"toddboom","id":53132,"avatar_url":"https://avatars.githubusercontent.com/u/53132?v=3","gravatar_id":"","url":"https://api.github.com/users/toddboom","html_url":"https://github.com/toddboom","followers_url":"https://api.github.com/users/toddboom/followers","following_url":"https://api.github.com/users/toddboom/following{/other_user}","gists_url":"https://api.github.com/users/toddboom/gists{/gist_id}","starred_url":"https://api.github.com/users/toddboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddboom/subscriptions","organizations_url":"https://api.github.com/users/toddboom/orgs","repos_url":"https://api.github.com/users/toddboom/repos","events_url":"https://api.github.com/users/toddboom/events{/privacy}","received_events_url":"https://api.github.com/users/toddboom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/influxdb/influxdb/milestones/44","html_url":"https://github.com/influxdb/influxdb/milestones/0.9.5","labels_url":"https://api.github.com/repos/influxdb/influxdb/milestones/44/labels","id":1276659,"number":44,"title":"0.9.5","description":"","creator":{"login":"beckettsean","id":6537329,"avatar_url":"https://avatars.githubusercontent.com/u/6537329?v=3","gravatar_id":"","url":"https://api.github.com/users/beckettsean","html_url":"https://github.com/beckettsean","followers_url":"https://api.github.com/users/beckettsean/followers","following_url":"https://api.github.com/users/beckettsean/following{/other_user}","gists_url":"https://api.github.com/users/beckettsean/gists{/gist_id}","starred_url":"https://api.github.com/users/beckettsean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beckettsean/subscriptions","organizations_url":"https://api.github.com/users/beckettsean/orgs","repos_url":"https://api.github.com/users/beckettsean/repos","events_url":"https://api.github.com/users/beckettsean/events{/privacy}","received_events_url":"https://api.github.com/users/beckettsean/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":12,"state":"open","created_at":"2015-08-27T21:45:59Z","updated_at":"2015-09-24T18:06:18Z","due_on":"2015-10-01T07:00:00Z","closed_at":null},"comments":7,"created_at":"2015-09-24T18:06:13Z","updated_at":"2015-09-24T20:04:57Z","closed_at":null,"body":"Talking with Paul quickly, it sounds like this might be possible. Is there a way we can wrap the server process and catch these so that the server returns a 500 instead of dying?\r\n\r\nExample stack trace:\r\n```\r\n[query] 2015/09/24 13:10:50 SELECT * FROM \"analytics\".\"default\"./.*/\r\nfatal error: runtime: out of memory\r\n\r\nruntime stack:\r\nruntime.throw(0xc58a40, 0x16)\r\n\t/home/philip/.gvm/gos/go1.5/src/runtime/panic.go:527 +0x90\r\nruntime.sysMap(0xc853e00000, 0x100000, 0x195d00, 0x10235f8)\r\n\t/home/philip/.gvm/gos/go1.5/src/runtime/mem_linux.go:143 +0x9b\r\nruntime.mHeap_SysAlloc(0x1003980, 0x100000, 0x0)\r\n\t/home/philip/.gvm/gos/go1.5/src/runtime/malloc.go:423 +0x160\r\nruntime.mHeap_Grow(0x1003980, 0x8, 0x0)\r\n\t/home/philip/.gvm/gos/go1.5/src/runtime/mheap.go:628 +0x63\r\nruntime.mHeap_AllocSpanLocked(0x1003980, 0x1, 0x7fa916d1b0a0)\r\n\t/home/philip/.gvm/gos/go1.5/src/runtime/mheap.go:532 +0x5f1\r\nruntime.mHeap_Alloc_m(0x1003980, 0x1, 0x7f0000000013, 0x7fa916d1b0a0)\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/143034717","html_url":"https://github.com/influxdb/influxdb/issues/4220#issuecomment-143034717","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/4220","id":143034717,"user":{"login":"corylanou","id":585100,"avatar_url":"https://avatars.githubusercontent.com/u/585100?v=3","gravatar_id":"","url":"https://api.github.com/users/corylanou","html_url":"https://github.com/corylanou","followers_url":"https://api.github.com/users/corylanou/followers","following_url":"https://api.github.com/users/corylanou/following{/other_user}","gists_url":"https://api.github.com/users/corylanou/gists{/gist_id}","starred_url":"https://api.github.com/users/corylanou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corylanou/subscriptions","organizations_url":"https://api.github.com/users/corylanou/orgs","repos_url":"https://api.github.com/users/corylanou/repos","events_url":"https://api.github.com/users/corylanou/events{/privacy}","received_events_url":"https://api.github.com/users/corylanou/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T20:04:57Z","updated_at":"2015-09-24T20:04:57Z","body":"correct, so as far as I know, this can't be done.  See this example: http://play.golang.org/p/_Jf1FL8J6r"}}