-
Notifications
You must be signed in to change notification settings - Fork 7.3k
node.http.Client doesn't seem to work on a Mac #3
Comments
I've just fixed a rather large and gaping bug in http.Client that I think was causing this. Can you please try again with HEAD? |
Just signed up to github - so moving my mail reply to here. And the answer is, sorry, it didn't fix the issue. |
I can confirm that. Even at c226f81 it doesn't work on the Mac. |
okay - it's working on linux and freebsd. it will have to wait until i get mac access again. |
Do you have a schedule for that? I could work on a SSH account, if it'll take too long. |
I'll setup and account for Ryan on Sunday or Monday. You're welcome to do that before that of course :) |
I don't think I will get our Admins to open a port before Monday. But "this weekend" is very well within my time restrictions of waiting for a working node to migrate to it. |
So - there seems to be a problem during getaddrinfo() which I can't figure out. Experiencing some other problems with this change on linux, so I will leave the issue open for the moment. It might be that I'm corrupting the heap at some point (but valgrind isn't telling me?). |
I'm satisfied with the hacked solution for now. Going to switch to udns at soon, so perhaps it's not even worth investigating |
hmm.. using HEAD and the example code provided, I'm getting: native runtime.js:404 System Version: Mac OS X 10.6.2 (10C540) |
Miksago, the API has changed dramatically since then. Here is the example updated for v0.1.21-31-g2507b87
|
My bad for reply on a closed issue. |
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 ()
Env: Mac 10.5
Example code:
Running the http.Client never returns any data, just hangs and a bump in cpu usage is noted.
The text was updated successfully, but these errors were encountered: