This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf
- From: Florian Weimer <fweimer at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 4 Jul 2017 14:12:54 +0200
- Subject: Re: [PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 25C2C8553F
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 25C2C8553F
- References: <20170630193802.80D6C439942F0@oldenburg.str.redhat.com> <mvmh8ysirv4.fsf@suse.de> <5bb0919b-0dfe-df45-5033-ca610fee52d6@redhat.com> <mvmo9t0h0qi.fsf@suse.de>
On 07/04/2017 01:59 PM, Andreas Schwab wrote:
> (gdb) p *resp
> $1 = {retrans = 5, retry = 2, options = 705, nscount = 1, nsaddr_list = {{
> sin_family = 2, sin_port = 13568, sin_addr = {s_addr = 16777343},
> sin_zero = "\272\272\272\272\272\272\272\272"},
Seem this is [127.0.0.1]:53.
{sin_family = 0,
> sin_port = 0, sin_addr = {s_addr = 0},
> sin_zero = "\000\000\000\000\000\000\000"}, {sin_family = 0,
> sin_port = 0, sin_addr = {s_addr = 0},
> sin_zero = "\000\000\000\000\000\000\000"}}, id = 0, dnsrch = {0x0, 0x0,
> 0x0, 0x0, 0x0, 0x0, 0x0}, defdname = '\000' <repeats 255 times>,
> pfcode = 0, ndots = 1, nsort = 0, ipv6_unavail = 0, unused = 0, sort_list = {
> {addr = {s_addr = 0}, mask = 0}, {addr = {s_addr = 0}, mask = 0}, {addr = {
> s_addr = 0}, mask = 0}, {addr = {s_addr = 0}, mask = 0}, {addr = {
> s_addr = 0}, mask = 0}, {addr = {s_addr = 0}, mask = 0}, {addr = {
> s_addr = 0}, mask = 0}, {addr = {s_addr = 0}, mask = 0}, {addr = {
> s_addr = 0}, mask = 0}, {addr = {s_addr = 0}, mask = 0}},
> __glibc_unused_qhook = 0x0, __glibc_unused_rhook = 0x0, res_h_errno = 0,
> _vcsock = -1, _flags = 0, _u = {
> pad = "\000\000\000\000\000\000\000\000\377\377\377\377", '\000' <repeats 39 times>, _ext = {nscount = 0, nsmap = {0, 0, 0}, nssocks = {-1, 0, 0},
> nscount6 = 0, nsinit = 0, nsaddrs = {0x0, 0x0, 0x0},
> __glibc_extension_index = 0}}}
> (gdb) p *conf
> $2 = {__refcount = 3, nameserver_list = 0x606f38, nameserver_list_size = 1,
> search_list = 0x606f40, search_list_size = 0, sort_list = 0x606f50,
> sort_list_size = 0, options = 705, retrans = 5, retry = 2, ndots = 1}
> (gdb) p conf.nameserver_list[0]
> $3 = (const struct sockaddr *) 0x606f40
> (gdb) p *$
> $4 = {sa_family = 2,
> sa_data = "\000\065\177\000\000\001\272\272\272\272\272\272\272\272"}
That looks like [127.0.0.1]:53, too.
So I don't see the mismatch. Let's see what the additional logging will
reveal. Sorry about this mess, but I don't see the bug so far.
Thanks,
Florian