This is the mail archive of the libc-help@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]

Re: gethostbyname() triggering duplicate DNS A queries when CNAMEresponse is received


On 29 June 2012 11:27, Jeroen van Bemmel <jvb127@gmail.com> wrote:
> Could it be that the structure / alignment of fields in addrinfo differs between the caller and callee (libc) ? I should note that I am using an x86_64 platform...Hmmm
>
> I then compiled your modified program using "-m32" to generate a 32-bit program, and... voila, issue solved!
>
> So, there is an issue with getaddrinfo() when used in x86_64 programs -> with the 64-bit library versions of glibc

Thanks, I was going to ask you to file a bug report because this does
look like a bug, but I see you have already done that:

http://sourceware.org/bugzilla/show_bug.cgi?id=14307

This seems to occur only with specific host lookups (google.com and
www.gmail.com) and not others (gmail.com, google.co.in, yahoo.com,
etc). It doesn't seem related to CNAME either since  the google.com
lookup does not return a CNAME.

Regards,
Siddhesh

-- 
http://siddhesh.in


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