-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Official 5.6.0 binaries crash on Ubuntu Trust 14.04 x64 #5185
Comments
Does the official v5.5.0 binary work? |
/cc @indutny |
Can't reproduce with the x86 and x64 binaries on FC23 but f1a0827 is the obvious suspect. @cjthompson Can you try building from source with and without that commit? |
This is very interesting crash, especially considering that we smoke test the binaries. @cjthompson may I ask you to share it Thank you so much for reporting this. |
The issue appears to be related to EDIT: Might be related to this issue: c-ares/c-ares#33 |
strace log: https://gist.github.com/cjthompson/5570c04744715f96dcb5 it's pretty clear at the bottom of the log there's a call to open |
@cjthompson it looks like there were no |
@cjthompson and thank you very much for strace log, it really helped! |
At this point I think we've narrowed down the exact cause and the fact that it was a change from 5.5.0 to 5.6.0. Let me know if there's anything more you need me to debug. |
@indutny Want to revert for now? I believe the next v5 release is next week and it'd be a shame to have it broken in two subsequent releases. (I'm assuming we won't have a fix upstreamed in that time.) |
@bnoordhuis let's revert it until resolving this. @cjthompson may I ask you to do |
strace of 5.6.0 with strace of 5.5.0 with |
Whoa, finally found the reason why behavior is different: node/deps/cares/src/ares_init.c Lines 213 to 230 in 2848f84
Basically, 5.5.0 is swallowing that lookup init error. @cjthompson may I ask you to run this js snippet: require('dns').reverse('8.8.8.8', function() {console.log(arguments)}) on v5.5.0 with strict permissions on |
@bnoordhuis please disregard my comment about reverting it, looks like this behavior change is actually a pretty important bug fix. At least let's wait for results of |
Node 5.5.0 with nsswitch.conf permissions as 600:
node 5.5.0 and 5.6.0 with
|
Ah, this is actually better than I expected. Thank you so much, @cjthompson ! @bnoordhuis looks like we will need to revert it after all. Sounds like a plain bug in c-ares. It is caused by c-ares/c-ares@46bb820 , and proposed fix is: c-ares/c-ares#39 . We can always re-land the c-ares update after c-ares/c-ares#39 will land. |
The patch has been landed c-ares/c-ares@e514088 . I'm going to wait for reply from c-ares team with regards to use of c-ares master branch in our repo, and depending on it we will be able to decide what to do next. |
Alright, I have a green light from c-ares team. @bnoordhuis I'm going to submit PR for cherry-picking that commit as soon as I will wake up (/me is sleeptyping at the moment). |
Should be fixed by #5199 |
This reverts commit 35c3832. See [0] and [1] for background. Let's hold off on upgrading c-ares until upstream makes an official release. [0] nodejs#5185 [1] nodejs#5199 PR-URL: nodejs#5199 Reviewed-By: Fedor Indutny <fedor@indutny.com>
Is this still an issue? Do we need to keep this open? |
I'll close. I forgot to after landing the revert. |
I have an amazon instance running Ubuntu 14.04 Trusty x86_64. When I download the "Linux Binaries" from the nodejs.org homepage, the node binary will crash just trying to open the REPL.
If I run
node -v
I get5.6.0
. If I run justnode
I getThe text was updated successfully, but these errors were encountered: