I'm using node version 10.33. Good idea about either of those mocking 
frameworks using contextify. I just checked and neither do. What's strange 
is that the first time I run the tests, there's no problem. If I run the 
tests alone, there's no problem. The problem only seems to happen when 
nodemon restarts and runs the tests again.

On Sunday, November 23, 2014 2:35:09 PM UTC-5, Aria Stewart wrote:
>
> On Nov 23, 2014, at 8:00 PM, Nael Alismail <[email protected] 
> <javascript:>> wrote:
>
> 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.
>
>
> [snip]
>
> *When the tests re-run, I receive the following segfault error*
>
>
> [snip]
>
>
> /home/nael/proj/segfault_test/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node(_ZN17ContextifyContext20GlobalPropertySetterEN2v85LocalINS0_6StringEEENS1_INS0_5ValueEEERKNS0_12AccessorInfoE+0x6e)[0x7f02505ad25e]
>
>
> That is Contextify being set up, which is a really interestingly annoying 
> piece of hackery. Its concepts now form the node 0.11 vm module. 
>
> Which node are you using? 
>
> 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.
>
>
>
> I wonder if those do similar hacks -- do either of those use contextify?
>
> Aria
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/f59658dd-2cba-4dbe-aa50-f31b1a1aaadf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to