Bug 197539

Summary: www/node: Error getaddrinfo EAI_BADFLAGS on 0.12.0
Product: Ports & Packages Reporter: komarov
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Only Me CC: linpct, saper, swills, vivek
Priority: --- Keywords: needs-patch, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (linpct)
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
node.0.12.0_1.patch
none
node-devel.0.11.16_1.patch none

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