Skip to content

Node 6 crash w/ computed properties #14326

Closed
@gotrevor

Description

@gotrevor

Versions: 6.x
Platforms: OS X, Linux
Subsystem: unknown

Running this single crash.js file will cause Node 6, across several
different dot releases, to crash with what appears to be some strange,
ephemeral memory corruption:

https://github.com/gotrevor/LogOfUndefined/blob/master/crash.js

This example does not cause a crash in Node 4 or 8. You can see the
matrix of success/failure here:
https://circleci.com/gh/gotrevor/workflows/LogOfUndefined
and the most recent case here:
https://circleci.com/workflow-run/24e3c016-39b3-442f-a0b2-f045c51381b9

Someone knowledgeable about such things wrote:

I can reproduce and it looks an issue with
V8's tier 2 compiler because the problem goes away with the
--nocrankshaft flag. I'm 90% sure it's failing to propagate an inline
cache when generating optimized code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions