Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
A recent change made to node_contextify.cc that was released in node 5.9.0 causes node to segfault.
The offending commit is this: bfff07b
The problem can be reproduced using the following test script:
varvm=require('vm');functionf(){varsandbox={};vm.createContext(sandbox);returnfunction(script,ctx){vars=newvm.Script(script);for(varpinctx){sandbox[p]=ctx[p];};varresult=s.runInContext(sandbox);console.log(result,sandbox);for(varpinsandbox){deletesandbox[p];};}}for(vari=0;i<10000;i++){f()('x = 3',{x : 1});f()('x = 4',{x : 2});}$ node -v v5.9.0 $ uname -a Darwin raymond-117.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64cc @ofrobots and @bnoordhuis
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.