Skip to content

writeHeapSnapshot causes Segmentation fault #37993

Open
@chriskinsman

Description

@chriskinsman

v14.16.0:
Linux scheduler-deployment-c477958d6-v897r 5.4.95-42.163.amzn2.x86_64 #1 SMP Thu Feb 4 12:50:05 UTC 2021 x86_64 Linux:
v8:

What steps will reproduce the bug?

const { writeHeapSnapshot } = require('v8');
function dump() {
    const fileName = '/var/log/' + Date.now() + '.heapsnapshot';
    console.info('Writing heapsnapshot to: ' + fileName);
    writeHeapSnapshot(fileName);
}
dump();

setInterval(function () {
    dump();
}, 1000 * 60 * 60);

How often does it reproduce? Is there a required condition?

Happens everytime

What is the expected behavior?

Write a heapsnapshot

What do you see instead?

Segmentation fault

Additional information

The nodejs code is running inside a container running on AWS EKS Kubernetes. Not sure if relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 moduleIssues and PRs related to the "v8" subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions