{"action":"created","issue":{"url":"https://api.github.com/repos/celluloid/celluloid/issues/484","labels_url":"https://api.github.com/repos/celluloid/celluloid/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/celluloid/celluloid/issues/484/comments","events_url":"https://api.github.com/repos/celluloid/celluloid/issues/484/events","html_url":"https://github.com/celluloid/celluloid/issues/484","id":53290045,"number":484,"title":"Raising Exception in pool causes mem leak","user":{"login":"sb8244","id":1231659,"avatar_url":"https://avatars.githubusercontent.com/u/1231659?v=3","gravatar_id":"","url":"https://api.github.com/users/sb8244","html_url":"https://github.com/sb8244","followers_url":"https://api.github.com/users/sb8244/followers","following_url":"https://api.github.com/users/sb8244/following{/other_user}","gists_url":"https://api.github.com/users/sb8244/gists{/gist_id}","starred_url":"https://api.github.com/users/sb8244/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb8244/subscriptions","organizations_url":"https://api.github.com/users/sb8244/orgs","repos_url":"https://api.github.com/users/sb8244/repos","events_url":"https://api.github.com/users/sb8244/events{/privacy}","received_events_url":"https://api.github.com/users/sb8244/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-03T01:32:21Z","updated_at":"2015-01-03T02:23:17Z","closed_at":null,"body":"Dug into https://github.com/mperham/sidekiq/issues/2107 and found it was a Celluloid issue. The issue arises from raising an Exception in a pool'd worker. The thread cleanup never gets run here: https://github.com/celluloid/celluloid/blob/a6584e787926de193b3aa64c70f03f125e3dc8cc/lib/celluloid/internal_pool.rb#L145\r\n\r\nHere is a gist that recreates the issue with only Celluloid https://gist.github.com/sb8244/0a7e505dd1dafe432b31\r\n\r\nSo, is this a bug that should be fixed? I would love to contribute to Celluloid and can take a shot at this!"},"comment":{"url":"https://api.github.com/repos/celluloid/celluloid/issues/comments/68580051","html_url":"https://github.com/celluloid/celluloid/issues/484#issuecomment-68580051","issue_url":"https://api.github.com/repos/celluloid/celluloid/issues/484","id":68580051,"user":{"login":"sb8244","id":1231659,"avatar_url":"https://avatars.githubusercontent.com/u/1231659?v=3","gravatar_id":"","url":"https://api.github.com/users/sb8244","html_url":"https://github.com/sb8244","followers_url":"https://api.github.com/users/sb8244/followers","following_url":"https://api.github.com/users/sb8244/following{/other_user}","gists_url":"https://api.github.com/users/sb8244/gists{/gist_id}","starred_url":"https://api.github.com/users/sb8244/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb8244/subscriptions","organizations_url":"https://api.github.com/users/sb8244/orgs","repos_url":"https://api.github.com/users/sb8244/repos","events_url":"https://api.github.com/users/sb8244/events{/privacy}","received_events_url":"https://api.github.com/users/sb8244/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T02:23:17Z","updated_at":"2015-01-03T02:23:17Z","body":"If the Worker raises an `Exception`, then the `put(thread)` of `InternalPool` does not run "}}