This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/14307] getaddrinfo() triggers duplicate DNS requests when answer contains CNAME


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]