{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/io.js/issues/2308","labels_url":"https://api.github.com/repos/nodejs/io.js/issues/2308/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/io.js/issues/2308/comments","events_url":"https://api.github.com/repos/nodejs/io.js/issues/2308/events","html_url":"https://github.com/nodejs/io.js/issues/2308","id":99211328,"number":2308,"title":"io.js 3.0.0 memory leak","user":{"login":"novacrazy","id":4708645,"avatar_url":"https://avatars.githubusercontent.com/u/4708645?v=3","gravatar_id":"","url":"https://api.github.com/users/novacrazy","html_url":"https://github.com/novacrazy","followers_url":"https://api.github.com/users/novacrazy/followers","following_url":"https://api.github.com/users/novacrazy/following{/other_user}","gists_url":"https://api.github.com/users/novacrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/novacrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novacrazy/subscriptions","organizations_url":"https://api.github.com/users/novacrazy/orgs","repos_url":"https://api.github.com/users/novacrazy/repos","events_url":"https://api.github.com/users/novacrazy/events{/privacy}","received_events_url":"https://api.github.com/users/novacrazy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/io.js/labels/confirmed-bug","name":"confirmed-bug","color":"fc2929"},{"url":"https://api.github.com/repos/nodejs/io.js/labels/stream","name":"stream","color":"c7def8"},{"url":"https://api.github.com/repos/nodejs/io.js/labels/v8","name":"v8","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":52,"created_at":"2015-08-05T14:01:50Z","updated_at":"2015-08-10T17:51:57Z","closed_at":null,"body":"See Unitech/PM2#1500 for the bug report filed with PM2 before I realized it was being caused by io.js.\r\n\r\nWith io.js 2.4.0 and 2.5.0 there were no memory leaks for that module. Perhaps it could have something to do with the new Buffer implementation?"},"comment":{"url":"https://api.github.com/repos/nodejs/io.js/issues/comments/129548081","html_url":"https://github.com/nodejs/io.js/issues/2308#issuecomment-129548081","issue_url":"https://api.github.com/repos/nodejs/io.js/issues/2308","id":129548081,"user":{"login":"silverwind","id":115237,"avatar_url":"https://avatars.githubusercontent.com/u/115237?v=3","gravatar_id":"","url":"https://api.github.com/users/silverwind","html_url":"https://github.com/silverwind","followers_url":"https://api.github.com/users/silverwind/followers","following_url":"https://api.github.com/users/silverwind/following{/other_user}","gists_url":"https://api.github.com/users/silverwind/gists{/gist_id}","starred_url":"https://api.github.com/users/silverwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverwind/subscriptions","organizations_url":"https://api.github.com/users/silverwind/orgs","repos_url":"https://api.github.com/users/silverwind/repos","events_url":"https://api.github.com/users/silverwind/events{/privacy}","received_events_url":"https://api.github.com/users/silverwind/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T17:51:57Z","updated_at":"2015-08-10T17:51:57Z","body":"here's another valgrind output with ben's patch applied:\r\n```\r\n==23686== 210,676,539 bytes in 3,231 blocks are still reachable in loss record 928 of 928\r\n==23686==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==23686==    by 0xD63911: node::StreamWrap::OnReadImpl(long, uv_buf_t const*, uv_handle_type, void*) (in /root/iojs)\r\n==23686==    by 0xD646E2: node::StreamWrap::OnRead(uv_stream_s*, long, uv_buf_t const*) (in /root/iojs)\r\n==23686==    by 0xDB2C26: uv__read (stream.c:1168)\r\n==23686==    by 0xDB3247: uv__stream_io (stream.c:1231)\r\n==23686==    by 0xDB8A5C: uv__io_poll (linux-core.c:345)\r\n==23686==    by 0xDA9DB5: uv_run (core.c:328)\r\n==23686==    by 0xD350C7: node::Start(int, char**) (in /root/iojs)\r\n==23686==    by 0x5CA2EC4: (below main) (libc-start.c:287)\r\n==23686==\r\n==23686== LEAK SUMMARY:\r\n==23686==    definitely lost: 0 bytes in 0 blocks\r\n==23686==    indirectly lost: 0 bytes in 0 blocks\r\n==23686==      possibly lost: 10,490,159 bytes in 53 blocks\r\n==23686==    still reachable: 221,917,319 bytes in 10,142 blocks\r\n==23686==         suppressed: 0 bytes in 0 blocks\r\n```\r\n"}}