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
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
|
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
Comment by
Jelle van der Waa (jelly) - Sunday,
06 January 2019, 20:54 GMT
Comment by
Trygve Aaberge (trygveaa) - Sunday,
06 January 2019, 21:20 GMT
Still occurs with the latest nodejs?
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.