GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Internal domain function can be used to cause segfaults · Issue #14519 · nodejs/node Closed Labels domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem. Description
The following snippet will cause a segmentation fault on master: // This is an evil array const array = [0]; Object.defineProperty(array, '0', { get() { throw new Error(); } }); // Trick the environment into thinking it is inside a domain process._setupDomainUse(array, [])[0] = 1; // This call will try to use the pretended domain and segfault require('crypto').randomBytes(1024, () => { }); // The process will segfault above so this never gets printed console.log('Still working'); This is caused by using The priority of this issue is very low as it uses undocumented internal functions to intentionally cause a segmentation fault. I am documenting this for the sake of completeness. Activity
MetadataMetadataAssigneesLabelsdomainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |