Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest crashes when accessing global process object #179

Closed
dundalek opened this issue Nov 20, 2014 · 3 comments
Closed

Jest crashes when accessing global process object #179

dundalek opened this issue Nov 20, 2014 · 3 comments

Comments

@dundalek
Copy link

Hi, I have been running into issues causing jest crash when certain modules were loaded. I've been able to isolate the issue into the following test case:

describe('A test', function() {
  it('should access process object', function() {

    expect(process.env["NODE_ENV"]).toEqual('development');

  });
});

This crashes with the following message:

{ [Error: Worker process exited before responding! exit code: null, exit signal: SIGSEGV
stderr:

stdout:   {"initSuccess":true} {   "response": {} }]   stack: 'Error: Worker
process exited before responding! exit code: null, exit signal:
SIGSEGV\nstderr:\n  \n\nstdout:\n  {"initSuccess":true}\n{\n  "response":
{}\n}\n  at Worker._onChildExit (/home/joudy/tmp/tests/node_modules/jest-
cli/node_modules/node-worker-pool/Worker.js:80:42)\n  at
ChildProcess.EventEmitter.emit (events.js:110:17)\n  at
Process.ChildProcess._handle.onexit (child_process.js:1046:12)\n' }

I am running 64bit Linux, node v0.11.13, jest v0.1.18.

The modules that crash because of this are bluebird and superagent.

These issues might be related: #90 and #110 .

@dundalek
Copy link
Author

It works on node v0.10.x.

@evandrix
Copy link

Any chance of releasing a compatibility fix for latest, ie. v0.11.14?

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants