{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3136","labels_url":"https://api.github.com/repos/nodejs/node/issues/3136/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3136/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3136/events","html_url":"https://github.com/nodejs/node/issues/3136","id":109179478,"number":3136,"title":"oom/core dump in repl with buffer property tab completion","user":{"login":"brycebaril","id":126482,"avatar_url":"https://avatars.githubusercontent.com/u/126482?v=3","gravatar_id":"","url":"https://api.github.com/users/brycebaril","html_url":"https://github.com/brycebaril","followers_url":"https://api.github.com/users/brycebaril/followers","following_url":"https://api.github.com/users/brycebaril/following{/other_user}","gists_url":"https://api.github.com/users/brycebaril/gists{/gist_id}","starred_url":"https://api.github.com/users/brycebaril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycebaril/subscriptions","organizations_url":"https://api.github.com/users/brycebaril/orgs","repos_url":"https://api.github.com/users/brycebaril/repos","events_url":"https://api.github.com/users/brycebaril/events{/privacy}","received_events_url":"https://api.github.com/users/brycebaril/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/repl","name":"repl","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T21:06:54Z","updated_at":"2015-11-12T03:51:27Z","closed_at":null,"body":"Noticed with a sufficiently large Buffer (or ArrayBuffer) tab completion in the repl will crash the process with out of memory + core dump\r\n\r\n```\r\n$ node\r\n> var b = Buffer(1e8)\r\nundefined\r\n> b.l\r\n<--- Last few GCs --->\r\n\r\n   10335 ms: Mark-sweep 1397.5 (1445.0) -> 1397.4 (1445.0) MB, 264.7 / 0 ms [allocation failure] [GC in old space requested].\r\n   10652 ms: Mark-sweep 1397.5 (1445.0) -> 1397.4 (1445.0) MB, 263.0 / 0 ms [allocation failure] [GC in old space requested].\r\n   11009 ms: Mark-sweep 1397.5 (1445.0) -> 1397.4 (1445.0) MB, 264.6 / 0 ms [last resort gc].\r\n   11330 ms: Mark-sweep 1397.4 (1445.0) -> 1397.4 (1445.0) MB, 321.3 / 0 ms [last resort gc].\r\n\r\n\r\n<--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 0x3bd157b37339 <JS Object>\r\n    2: ObjectGetOwnPropertyKeys(aka ObjectGetOwnPropertyKeys) [native v8natives.js:~688] [pc=0x1e2e0302e4b3] (this=0x3bd157b04131 <undefined>,J=0x5c7b14041d1 <an Uint8Array with map 0x20a90d01d2d9>,as=48)\r\n    3: getOwnPropertyNames [native v8natives.js:752] [pc=0x1e2e0302e31b] (this=0x3bd157b36b61 <JS Function Object (SharedFunctionInfo 0x3bd157b36ad1)>,J=0x5c7b14041d1 <an Uint8Array with map 0...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory\r\nAborted (core dumped)\r\n$ node -pe 'var b = Buffer(1e8); b.length'\r\n100000000\r\n$ node -v\r\nv4.1.1\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/155989550","html_url":"https://github.com/nodejs/node/issues/3136#issuecomment-155989550","issue_url":"https://api.github.com/repos/nodejs/node/issues/3136","id":155989550,"user":{"login":"harry8525","id":4062880,"avatar_url":"https://avatars.githubusercontent.com/u/4062880?v=3","gravatar_id":"","url":"https://api.github.com/users/harry8525","html_url":"https://github.com/harry8525","followers_url":"https://api.github.com/users/harry8525/followers","following_url":"https://api.github.com/users/harry8525/following{/other_user}","gists_url":"https://api.github.com/users/harry8525/gists{/gist_id}","starred_url":"https://api.github.com/users/harry8525/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harry8525/subscriptions","organizations_url":"https://api.github.com/users/harry8525/orgs","repos_url":"https://api.github.com/users/harry8525/repos","events_url":"https://api.github.com/users/harry8525/events{/privacy}","received_events_url":"https://api.github.com/users/harry8525/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T03:51:27Z","updated_at":"2015-11-12T03:51:27Z","body":"Could this be why there are ton of these issues reported on git hub with version 4.0+?\r\n\r\n[CALL_AND_RETRY_LAST Allocation failed - process out of memory](https://github.com/search?utf8=%E2%9C%93&q=node+CALL_AND_RETRY_LAST+Allocation+failed+-+process+out+of+memory&type=Issues&ref=searchresults)\r\n\r\nI'm getting random reports for some internal tools we use and haven't been able to pin point what causes it. It is scary if its related to inspecting properties that are buffers...especially using tools like gulp (where we are seeing all the issues) that have pass buffers around all the time...\r\n\r\n\r\n\r\n"}}