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

Wiki example not working on Mac #5

Closed
hrehman200 opened this issue Mar 2, 2013 · 1 comment
Closed

Wiki example not working on Mac #5

hrehman200 opened this issue Mar 2, 2013 · 1 comment

Comments

@hrehman200
Copy link

The first wiki example echo_srv.js is not running on Mac. I get the following error when I give the following command on Terminal:

node echo_srv.js

events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: listen ENOTSOCK
at errnoException (udt.js:826:11)
at Server._listen2 (udt.js:1076:19)
at listen (udt.js:1120:10)
at Server.listen (udt.js:1169:5)
at Object. (/Users/Admin/Documents/node_workspace/server.js:6:6)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)

@InstantWebP2P
Copy link
Collaborator

please try latest code. it works well on my machine.

one thing is that you need to allow osx accept incoming connection.

sequoiar pushed a commit that referenced this issue May 30, 2013
Call SetPointerInInternalField(0, NULL) rather than
SetInternalField(0, Undefined()).

Fixes the following spurious NULL pointer dereference in debug builds:

  #0  0x03ad2821 in v8::internal::FixedArrayBase::length ()
  #1  0x03ad1dfc in v8::internal::FixedArray::get ()
  #2  0x03ae05dd in v8::internal::Context::global_object ()
  #3  0x03b6b87d in v8::internal::Context::builtins ()
  #4  0x03ae1871 in v8::internal::Isolate::js_builtins_object ()
  #5  0x03ab4fab in v8::CallV8HeapFunction ()
  #6  0x03ab4d4a in v8::Value::Equals ()
  #7  0x03b4f38b in CheckEqualsHelper ()
  #8  0x03ac0f4b in v8::Object::SetInternalField ()
  #9  0x06a99ddd in node::ObjectWrap::~ObjectWrap ()
  #10 0x06a8b051 in node::Buffer::~Buffer ()
  #11 0x06a8afbb in node::Buffer::~Buffer ()
  #12 0x06a8af5e in node::Buffer::~Buffer ()
  #13 0x06a9e569 in node::ObjectWrap::WeakCallback ()
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

1 participant