{"action":"opened","issue":{"url":"https://api.github.com/repos/spotify/annoy/issues/100","labels_url":"https://api.github.com/repos/spotify/annoy/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/spotify/annoy/issues/100/comments","events_url":"https://api.github.com/repos/spotify/annoy/issues/100/events","html_url":"https://github.com/spotify/annoy/issues/100","id":105402013,"number":100,"title":"double save turns process into zombie on OS X","user":{"login":"danielvarga","id":2323776,"avatar_url":"https://avatars.githubusercontent.com/u/2323776?v=3","gravatar_id":"","url":"https://api.github.com/users/danielvarga","html_url":"https://github.com/danielvarga","followers_url":"https://api.github.com/users/danielvarga/followers","following_url":"https://api.github.com/users/danielvarga/following{/other_user}","gists_url":"https://api.github.com/users/danielvarga/gists{/gist_id}","starred_url":"https://api.github.com/users/danielvarga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielvarga/subscriptions","organizations_url":"https://api.github.com/users/danielvarga/orgs","repos_url":"https://api.github.com/users/danielvarga/repos","events_url":"https://api.github.com/users/danielvarga/events{/privacy}","received_events_url":"https://api.github.com/users/danielvarga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-08T15:07:47Z","updated_at":"2015-09-08T15:07:47Z","closed_at":null,"body":"A very easy way to turn my python process into a zombie that can't be killed even with -9, and blocks my Terminal tab:\r\n\r\n```\r\nfrom annoy import *\r\nimport random\r\n\r\ndef main():\r\n    f = 10\r\n    t = AnnoyIndex(f)\r\n    for i in xrange(0):\r\n        v = [random.gauss(0, 1) for z in xrange(f)]\r\n        t.add_item(i, v)\r\n    t.build(-1)\r\n    t.save(\"t.ann\")\r\n    t.save(\"t.ann\")\r\n```\r\n\r\nIn fact, this is all I need:\r\n```\r\nfrom annoy import *\r\nt = AnnoyIndex(10)\r\nt.save(\"t.ann\")\r\nt.save(\"t.ann\")\r\n```\r\n\r\nThis happens on an OS X Yosemite. The same thing simply coredumps on Ubuntu."}}