Skip to content

Node v16 segfault on Jest 26/27 when using --detectOpenHandles #11533

Closed
@milesj

Description

@milesj

🐛 Bug Report

I've ran into this twice now while upgrade some projects. Here's some examples on Jest 26:

Beemo:

Boost:

This also fails on Jest 27, example PR here: beemojs/beemo#137

To Reproduce

Clone and checkout this branch: milesj/boost#150 Setup with yarn install && yarn global add packemon && yarn run build.

Run yarn test on Node 16 to trigger the segfault. Can also run npx jest --detectOpenHandles.

Expected behavior

Doesnt segfault.

Link to repl or repo (highly encouraged)

envinfo

  System:
    OS: macOS 11.2.3
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.3.0 - ~/.nvm/versions/node/v16.3.0/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v16.3.0/bin/yarn
    npm: 7.15.1 - ~/.nvm/versions/node/v16.3.0/bin/npm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions