Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1416496

Summary: getaddrinfo() call returns wrong IPv6 address if nscd is used
Product: Red Hat Enterprise Linux 6 Reporter: Sergey Kolosov <skolosov>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED ERRATA QA Contact: Sergey Kolosov <skolosov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.9CC: ashankar, codonell, fweimer, mnewsome, mpetlan, pfrankli, skolosov, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.12-1.209.el6 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 10:38:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
getaddrinfo.c test program originally from bug 970090 none

Description Sergey Kolosov 2017-01-25 15:54:57 UTC
Created attachment 1244293 [details]
getaddrinfo.c test program originally from bug 970090

Description of problem:
getaddrinfo() call returns wrong IPv6 address if nscd is used

Version-Release number of selected component:
glibc-2.12-1.208.el6

Steps to Reproduce:
1. Install nscd and run it
2. ./getaddrinfo AF_INET6 localhost
[0 root@host ~]# ./getaddrinfo AF_INET6 localhost 
Hints family=10
host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::
[0 root@host ~]#

Actual results:

host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::

Expected results:

host=localhost, family=10 addr=::1
host=localhost, family=10 addr=::1
host=localhost, family=10 addr=::1

Comment 1 Florian Weimer 2017-01-25 16:04:28 UTC
Sergey, do you know if this is a regression in glibc-2.12-1.208.el6?  Thanks.

Comment 2 Sergey Kolosov 2017-01-25 16:57:19 UTC
(In reply to Florian Weimer from comment #1)
> Sergey, do you know if this is a regression in glibc-2.12-1.208.el6?  Thanks.

It is glibc-2.12-1.208.el6 regression and it is related to patch for bug 1223095.
Upstream fix: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=8dc9751764eb1bedf06d19695524b31a16773413

I have tested the upstream fix on x86_64 host, it works.

Comment 10 errata-xmlrpc 2017-03-21 10:38:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0680.html