jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.27k stars 6.46k forks source link

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

Closed milesj closed 3 years ago

milesj commented 3 years ago

🐛 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: https://github.com/beemojs/beemo/pull/137

To Reproduce

Clone and checkout this branch: https://github.com/milesj/boost/pull/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)

  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
thynson commented 3 years ago

+1

SimenB commented 3 years ago

Prooobably https://github.com/nodejs/node/issues/39019, fix should come in 16.4.0 (https://github.com/nodejs/node/pull/39031)

milesj commented 3 years ago

Ok cool. At least I wasn't going crazy thinking it was my setup :P

SimenB commented 3 years ago

@milesj 16.4.0 is out, could you test?

milesj commented 3 years ago

@SimenB Yup seemed to fix it locally, will close.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.