Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting sudden exit (with bizarre exit code) when running a fiber within a fiber #141

Closed
epicblood opened this issue Sep 27, 2013 · 2 comments

Comments

@epicblood
Copy link

When running the following code, I get exit code -1073741819 and no exception is thrown:

var Fiber = require('fibers')

Fiber(function() {
    Fiber(function() {
    }).run()
}).run()

System: windows 8, node v0.10.16, node-gyp v0.10.10, Visual Studio 2012 (not express).

@epicblood
Copy link
Author

I'm getting the same behavior while running this code:

var Fiber = require('fibers')
var Future = module.exports = require("fibers/future")


Fiber(function() {
    var f = new Future
    process.nextTick(function() {
        Fiber(function() {
            f.return()
        }).run()
    })

    f.wait()
}).run()

@laverdet
Copy link
Owner

Let me know if this is still an issue. This is all code that should work, and there's some new Windows handling code since you opened this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants