Bug 197539 - www/node: Error getaddrinfo EAI_BADFLAGS on 0.12.0
Summary: www/node: Error getaddrinfo EAI_BADFLAGS on 0.12.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Steve Wills
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2015-02-11 15:09 UTC by komarov
Modified: 2015-03-30 09:33 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (linpct)


Attachments
node.0.12.0_1.patch (1.09 KB, text/plain)
2015-02-13 16:22 UTC, linpct
no flags Details
node-devel.0.11.16_1.patch (1.12 KB, text/plain)
2015-02-13 17:23 UTC, linpct
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description komarov 2015-02-11 15:09:40 UTC
test.js

http = require('http');
http.get("www.google.com", function(a,b,c) {});


# node ./test.js
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: getaddrinfo EAI_BADFLAGS
    at Object.exports._errnoException (util.js:746:11)
    at errnoException (dns.js:49:15)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-11 15:09:40 UTC
Maintainer CC'd
Comment 2 linpct 2015-02-12 17:14:44 UTC
(In reply to komarov from comment #0)
Issue confirmed, will try to find out why.
Comment 3 linpct 2015-02-12 17:18:19 UTC
Same issue on other platform with node 0.12.0
Comment 4 linpct 2015-02-12 17:18:48 UTC
(In reply to linpct from comment #3)
https://github.com/joyent/node/issues/8540
Comment 5 linpct 2015-02-12 17:50:08 UTC
The EAI_BADFLAGS is from node-v0.12.0/deps/uv/src, will try to get patch.
Comment 6 linpct 2015-02-13 16:21:26 UTC
I had try https://github.com/joyent/node/issues/9204 and it works well, please use my new patch.
Comment 7 linpct 2015-02-13 16:22:34 UTC
Created attachment 152940 [details]
node.0.12.0_1.patch
Comment 8 linpct 2015-02-13 17:01:38 UTC
The www/node-devel 0.11.16 has the same issue, will test and send another patch for it.
Comment 9 linpct 2015-02-13 17:23:25 UTC
Created attachment 152943 [details]
node-devel.0.11.16_1.patch
Comment 10 commit-hook freebsd_committer freebsd_triage 2015-02-13 17:59:12 UTC
A commit references this bug:

Author: swills
Date: Fri Feb 13 17:59:05 UTC 2015
New revision: 378937
URL: https://svnweb.freebsd.org/changeset/ports/378937

Log:
  www/node: fix error getaddrinfo EAI_BADFLAGS

  PR:		197539
  Reported by:	Valery Komarov <komarov@valerka.net>
  Submitted by:	Daniel Lin <linpct@gmail.com> (maintainer)
  Obtained from:	https://github.com/joyent/node/issues/9204

Changes:
  head/www/node/Makefile
  head/www/node/files/patch-lib_dns.js
Comment 11 commit-hook freebsd_committer freebsd_triage 2015-02-13 19:53:24 UTC
A commit references this bug:

Author: swills
Date: Fri Feb 13 19:52:54 UTC 2015
New revision: 378942
URL: https://svnweb.freebsd.org/changeset/ports/378942

Log:
  www/node: fix error getaddrinfo EAI_BADFLAGS

  PR:		197539
  Reported by:	Valery Komarov <komarov@valerka.net>
  Submitted by:	Daniel Lin <linpct@gmail.com> (maintainer)
  Obtained from:	https://github.com/joyent/node/issues/9204

Changes:
  head/www/node-devel/Makefile
  head/www/node-devel/files/patch-lib_dns.js
Comment 12 Steve Wills freebsd_committer freebsd_triage 2015-02-13 20:02:05 UTC
Committed, thanks!
Comment 13 Marcin Cieślak 2015-03-30 08:55:55 UTC
I am running now into https://github.com/npm/npm/issues/7508
under poudriere jails:


npm ERR! node v0.12.0
npm ERR! npm  v2.6.0
npm ERR! code EAI_FAIL
npm ERR! errno EAI_FAIL
npm ERR! syscall getaddrinfo

I think I didn't have this before, is this related?
Comment 14 Marcin Cieślak 2015-03-30 09:33:41 UTC
Sorry for noise, the EAI_FAIL problem seems to be unrelated