Skip to content

Loading…

Node crashes with Access Violation error on Windows #165

Closed
paletov opened this Issue · 1 comment

2 participants

@paletov

Node crashes with Access Violation error on Windows in case more than one Fiber has been created. The error code of the Node process is C0000005.
I believe that the reason is that V8 crashes during garbage collection of Fibers.
There is a question in stack overflow about this issue:
http://stackoverflow.com/questions/21407365/fatal-error-inside-v8-during-gc-when-using-node-fibers-in-node-js

You can reproduce it by simply running the following code:

var Fiber = require("fibers");
var Future = require("fibers/future");

for (var i = 0; i < 2; i++) {
    console.log(i);
    Fiber(function () {
        timeout(3000).wait();
    }).run();
}

function timeout(delay) {
    return (function () {
        var future = new Future();

        setTimeout(function() {
            future.return();  
        }, delay);

        future.wait();
    }).future()();
}
@laverdet
Owner

Let me know if this is still an issue. 2 Windows were fixed recently.

@laverdet laverdet closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.