I'm stuck on an issue during testing and I was wondering if I could get
some help nailing down the problem. I've created a project to recreate the
error here: https://github.com/maestroh/segfault_test

When running my tests, I continue to get a segmentation fault error when
nodemon restarts. The only way I've been able to recreate the error is
through the following steps.

*Recreation Steps*
1. Create a test using mocha
2. Add a jsdom setup on the before step
3. Require simple-mock. I've also tried sinon. I don't have to use anything
in these packages. I only have to require them.
4. Add a gulp task to execute the mocha test
5. Add a gulp task for nodemon to restart on changes and re-run the tests

*When the tests re-run, I receive the following segfault error*
PID 7389 received SIGSEGV for address: 0x0

I only get the segfault when requiring sinon or simple-mock. Anyone know
how to further diagnose the problem? I'm thinking there is a problem with
how I'm setting up and tearing down jsdom, but I can't find anyone else
that's had the problem. One other thought is that I'm running in a virtual
machine. I'm wondering if the contextify build isn't getting created
correctly which results in the segfault.

Thanks for the help.

Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/be427a1b-9b5a-4f50-8975-52de174f9a45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupnodejs @
postedNov 23, '14 at 7:09p
activeNov 23, '14 at 8:29p

2 users in discussion

Nael Alismail: 2 posts Aria Stewart: 1 post



site design / logo © 2022 Grokbase