Git Product home page Git Product logo

Comments (3)

laverdet avatar laverdet commented on August 18, 2024

Seems that you can't use the debugger in node with DYLD_FORCE_FLAT_NAMESPACE enabled in OS X:

marcel@marcel $ DYLD_FORCE_FLAT_NAMESPACE=1 node debug test.js
debug> run
connecting...There was an internal error in Node's debugger. Please report this bug.
ECONNREFUSED, Connection refused
Error: ECONNREFUSED, Connection refused
    at Client._onConnect (net.js:600:18)
    at IOWatcher.onWritable [as callback] (net.js:186:12)

You can still debug just fine on Linux. Not really sure what to do about this because I don't know enough about dylib to debug this. You may have luck reporting this as an issue in node since it can be reproduced in the absence of node-fibers.

from node-fibers.

iliakan avatar iliakan commented on August 18, 2024

I'm on Debian 6, OS X has nothing to do with it.
The issue does not happen with node without fibers, when I wipe them from my app.

Here is the log. There are no breakpoints or debugger calls in the code.

root@debian6:/var/site/chat# node-fibers debug app.js
debug> run
debugger listening on port 5858
connecting...ok
breakpoint #1 in #.[anonymous](exports=#, require=function require%28path%29 {
return Module._load%28path, self%29;
}, module=#, __filename=/var/site/chat/app.js, __dirname=/var/site/chat), /var/site/chat/app.js:7
var util = require('util');
^
debug> c
debug> 24 Apr 09:00:55 - socket.io ready - accepting connections
node: fibers.cc:504: void init(v8::Handlev8::Object): Assertion `Coroutine::is_local_storage_enabled()' failed.

program terminated
debug>

P.S. The code is at http://javascript.info/chat.zip

from node-fibers.

laverdet avatar laverdet commented on August 18, 2024

Ok yeah there are multiple issues here. One is a timing issue in node, the other is a problem with the way environment variables are carried over. I fixed the timing issue in laverdet/node@bdb0615 and I'll look at the env issue soon.

from node-fibers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.