[Bug 706719] New: getaddrinfo returns duplicate results for localhost under certain circumstances
https://bugzilla.novell.com/show_bug.cgi?id=706719 https://bugzilla.novell.com/show_bug.cgi?id=706719#c0 Summary: getaddrinfo returns duplicate results for localhost under certain circumstances Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rhafer@novell.com QAContact: qa@suse.de Found By: Development Blocker: --- Note: OpenLDAP currently fails to build for factory because of this bug. When getaddrinfo is called for "localhost" on a machine with no network interfaces other than the loopback interface it returns to equal struct sockaddr pointing to 127.0.0.1. Usually you would get two different structs one for AF_INET and one for AF_INET6 (at least with our default /etc/hosts file). It seems that this bug was introduced with revision 61 of glibc in Base:System. At least the glibc releases (I tested r60) before that commit seem to behave correct. https://build.opensuse.org/package/rdiff?commit=61&linkrev=base&package=glibc&project=Base%3ASystem -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706719 https://bugzilla.novell.com/show_bug.cgi?id=706719#c1 --- Comment #1 from Ralf Haferkamp <rhafer@novell.com> 2011-07-19 15:12:09 CEST --- Created an attachment (id=440853) --> (http://bugzilla.novell.com/attachment.cgi?id=440853) Testcase This is a small testcase that I used to verify the bug. It just tries to print the addresses as returned by getaddrinfo. To reproduce the issue just compile the source, and run this (nscd needs to be disabled to reliably reproduce it): # rcnscd stop # ifdown eth0 # ./test on a working system it should give: addr: ::1 addr: 127.0.0.1 on a broken system this: addr: 127.0.0.1 addr: 127.0.0.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706719 https://bugzilla.novell.com/show_bug.cgi?id=706719#c Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |aj@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706719 https://bugzilla.novell.com/show_bug.cgi?id=706719#c2 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@novell.com --- Comment #2 from Andreas Jaeger <aj@novell.com> 2011-07-19 13:51:31 UTC --- Thanks. A result of the bugfix for bnc#684534. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706719 https://bugzilla.novell.com/show_bug.cgi?id=706719#c3 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Andreas Jaeger <aj@novell.com> 2011-07-25 08:52:02 UTC --- Let's continue discussion at bnc#684534. *** This bug has been marked as a duplicate of bug 684534 *** http://bugzilla.novell.com/show_bug.cgi?id=684534 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=706719 https://bugzilla.novell.com/show_bug.cgi?id=706719#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-25 11:00:35 CEST --- This is an autogenerated message for OBS integration: This bug (706719) was mentioned in https://build.opensuse.org/request/show/76918 Factory / glibc -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com