FS#49936 - [nodejs] Version 6.2.2 segfaults in some cases when running mocha

Attached to Project: Community Packages
Opened by Trygve Aaberge (trygveaa) - Monday, 04 July 2016, 08:54 GMT
Last edited by Alad Wenter (Alad) - Sunday, 06 January 2019, 21:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When running mocha tests in one of my projects, node segfaults after running a few tests. It always happens at the same place when running the same set of tests, but if I delete the test it fails at, it happens at some later test instead. Additionally, if I only run the tests for the file that test is in, it fails at a later test in that file. It doesn't seem to be anything special about the tests it fails at, this is one of them:

it("should not render error id", () => {
expect(component).to.not.have.xpath("//p[@class='error-id']");
});

When running the tests with the same version of node downloaded from https://nodejs.org/dist/v6.2.2/node-v6.2.2-linux-x64.tar.xz, it doesn't segfault, and the tests run fine. I didn't have the issue with the previous version of nodejs I had installed from the Arch repo either, which was 5.8.0-1.

Additional info:
* Version 6.2.2-1 of nodejs
* Output from coredumpctl is attached

Steps to reproduce:
Unfortunately, I can't provide the code or the tests it segfaults at, because it is a private project of my company. But it happens when I run the tests with this command: NODE_ENV=test ./node_modules/.bin/mocha --max-old-space-size=4096 common/test_utils/setup.js --compilers js:babel-core/register --recursive common/test/
This task depends upon

Closed by  Alad Wenter (Alad)
Sunday, 06 January 2019, 21:30 GMT
Reason for closing:  No response
Comment by Jelle van der Waa (jelly) - Sunday, 06 January 2019, 20:54 GMT
Still occurs with the latest nodejs?
Comment by Trygve Aaberge (trygveaa) - Sunday, 06 January 2019, 21:20 GMT
Sorry, I don't have the project I experienced this in available anymore. Since it's so old, and I don't have a way to reproduce it, I'm fine with closing it.

Loading...