Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 49603 - getaddrinfo drops some ipv4 addresses when multiple addrs present
getaddrinfo drops some ipv4 addresses when multiple addrs present
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-07-21 07:42 EDT by Need Real Name
Modified: 2016-11-24 10:09 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-21 07:50:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
test case for getaddrinfo(raeburn.org) (635 bytes, text/plain)
2001-07-21 07:50 EDT, Need Real Name
no flags Details

  None (edit)
Description Need Real Name 2001-07-21 07:42:58 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.5 i686)

Description of problem:
I'm calling getaddrinfo on a hostname (raeburn.org) for which there are two
IPv6 and two IPv4 addresses.  Printing out the returned addresses shows me
two IPv6 addrs and one IPv4.  (glibc-2.2.2-10)  Same program on Debian
"testing" (libc6-2.2.3-5) shows all four addresses, as does "nslookup
-type=any raeburn.org" on the Red Hat host.

How reproducible:

Steps to Reproduce:
1. try sample program, which looks up my host, raeburn.org

Actual Results:  rh71% ./foo 
family 10
family 10

Expected Results:  debian% ./foo 
family 10
family 10

Additional info:
Comment 1 Need Real Name 2001-07-21 07:50:55 EDT
Created attachment 24407 [details]
test case for getaddrinfo(raeburn.org)
Comment 2 Jakub Jelinek 2001-07-22 14:51:13 EDT
I've tried e.g. glibc-2.2.3-1[123] and it works there too.

Note You need to log in before you can comment on or make changes to this bug.