Skip to content

Node 13.2 segfaults running Jest's tests, 13.1 worksΒ #30730

@SimenB

Description

@SimenB
  • Version: 13.2.0
  • Platform: Darwin Simens-MacBook-Pro.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64 (note that this also happens on CI, which is running some Linux version)
  • Subsystem:

Upgrading to node 13.2 makes one of jest's test fail with a segfault. 13.1 runs fine. I don't get a stack trace, though, just this: [1] 83292 segmentation fault node packages/jest/bin/jest.js.

To reproduce:

$ git clone git@github.com:facebook/jest.git
$ cd jest
$ yarn # or yarn install-no-ts-build to skip TS compilation and save a couple minutes
$ node -v
v13.1.0
$ node packages/jest/bin/jest.js packages/jest-fake-timers/src/__tests__/fakeTimersLolex.test.ts
$ echo $?
0
$ node -v # after nvm use 13.2.0 or something
v13.2.0
$ node packages/jest/bin/jest.js packages/jest-fake-timers/src/__tests__/fakeTimersLolex.test.ts
[1]    83292 segmentation fault  node packages/jest/bin/jest.js

Note that it's this specific test that fails, other tests seem to run fine. I'm currently bisecting, but I'm on a somewhat limited machine, so it's slow going :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions