Node crashes with Access Violation error on Windows #165

Closed
paletov opened this Issue Mar 31, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@paletov

paletov commented Mar 31, 2014

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

This comment has been minimized.

Show comment
Hide comment
@laverdet

laverdet Dec 18, 2014

Owner

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

Owner

laverdet commented Dec 18, 2014

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

@laverdet laverdet closed this Dec 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment