This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/14307] getaddrinfo() triggers duplicate DNS requests when answer contains CNAME
- From: "jvb127 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 29 Jun 2012 06:04:59 +0000
- Subject: [Bug network/14307] getaddrinfo() triggers duplicate DNS requests when answer contains CNAME
- Auto-submitted: auto-generated
- References: <bug-14307-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14307
--- Comment #1 from Jeroen van Bemmel <jvb127 at gmail dot com> 2012-06-29 06:04:59 UTC ---
Created attachment 6495
--> http://sourceware.org/bugzilla/attachment.cgi?id=6495
Test program that triggers the bug (when compiled in x86_64 mode)
The attached test program triggers the bug when compiled as a 64-bit executable
Use: gcc -O -g dnstest.c
When compiled as 32-bit (-m32), it works as expected
When setting hints.ai_flags = AI_CANONNAME; both an A and an AAAA query are
sent, even though hints.ai_family = AF_INET;
It looks like a struct member alignment problem, causing hints to be
misinterpreted
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.