public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
@ 2021-08-30 18:44 ` xry111 at mengyan1223 dot wang
  2022-06-10 17:01 ` fantasquex at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: xry111 at mengyan1223 dot wang @ 2021-08-30 18:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

Xi Ruoyao <xry111 at mengyan1223 dot wang> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xry111 at mengyan1223 dot wang

--- Comment #2 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
(In reply to Florian Weimer from comment #1)
> FYI, I tested this against my own nss/tst-nss-files-hosts-long failure, and
> your patch does NOT fix that.  It would have been to easy. 8-(

I think the patch also need to check if ifa_addr is loopback.  getent sets
AI_ADDRCONFIG so if the local system only has loopback addresses, it won't
work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
  2021-08-30 18:44 ` [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker) xry111 at mengyan1223 dot wang
@ 2022-06-10 17:01 ` fantasquex at gmail dot com
  2022-09-13 14:23 ` fweimer at redhat dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: fantasquex at gmail dot com @ 2022-06-10 17:01 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

Letu Ren <fantasquex at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fantasquex at gmail dot com

--- Comment #3 from Letu Ren <fantasquex at gmail dot com> ---
I met this issue as well when building glibc v2.35 on ArchLinux RISC-V. The
situation is just like the one described by Xi Ruoyao. The kernel of the board
enables IPv6. There is only a loop back address in my system, no link local
address. When debuging using gdb, I noticed getent() failed because
getaddrinfo() returned EAI_NONAME.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
  2021-08-30 18:44 ` [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker) xry111 at mengyan1223 dot wang
  2022-06-10 17:01 ` fantasquex at gmail dot com
@ 2022-09-13 14:23 ` fweimer at redhat dot com
  2022-09-13 14:49 ` fweimer at redhat dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2022-09-13 14:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2022-09-13

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
I've got a different patch that adds an option to getent to disable
AI_ADDRCONFIG.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-09-13 14:23 ` fweimer at redhat dot com
@ 2022-09-13 14:49 ` fweimer at redhat dot com
  2022-09-20 11:33 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2022-09-13 14:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

--- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
Patches posted:

[PATCH 0/2] Fix nss/tst-nss-files-hosts-long on single-stack hosts (bug 24816)
<https://sourceware.org/pipermail/libc-alpha/2022-September/141958.html>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-09-13 14:49 ` fweimer at redhat dot com
@ 2022-09-20 11:33 ` fweimer at redhat dot com
  2022-11-14 14:37 ` romain.geissler at amadeus dot com
  2022-11-14 14:46 ` fweimer at redhat dot com
  6 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2022-09-20 11:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.37
             Status|ASSIGNED                    |RESOLVED

--- Comment #6 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for 2.37 via:

commit c75d20b5b27b0a60f0678236f51a4d3b0b058c00
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Sep 13 16:11:40 2022 +0200

    nss: Fix tst-nss-files-hosts-long on single-stack hosts (bug 24816)

    getent implicitly passes AI_ADDRCONFIG to getaddrinfo by default.
    Use --no-addrconfig to suppress that, so that both IPv4 and IPv6
    lookups succeed even if the address family is not supported by the
    host.

    Reviewed-by: Carlos O'Donell <carlos@redhat.com>

commit a623f13adfac47c8634a7288e08f821a846bc650
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Sep 13 16:10:20 2022 +0200

    nss: Implement --no-addrconfig option for getent

    The ahosts, ahostsv4, ahostsv6 commands unconditionally pass
    AI_ADDRCONFIG to getaddrinfo, which is not always desired.

    Reviewed-by: Carlos O'Donell <carlos@redhat.com>


I do not plan to backport this. Please advise if you need a backport to some
branches.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2022-09-20 11:33 ` fweimer at redhat dot com
@ 2022-11-14 14:37 ` romain.geissler at amadeus dot com
  2022-11-14 14:46 ` fweimer at redhat dot com
  6 siblings, 0 replies; 7+ messages in thread
From: romain.geissler at amadeus dot com @ 2022-11-14 14:37 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

--- Comment #7 from Romain Geissler <romain.geissler at amadeus dot com> ---
Hi,

From what I see, you backported this at least to branch 2.36, in commits
700d3281f9e57b53c27bc991394b22d467432626 and
2681d38cafaceafeb330bc0536fa710b75ed5947, thanks !

Cheers,
Romain

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker)
       [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2022-11-14 14:37 ` romain.geissler at amadeus dot com
@ 2022-11-14 14:46 ` fweimer at redhat dot com
  6 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2022-11-14 14:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=24816

--- Comment #8 from Florian Weimer <fweimer at redhat dot com> ---
Indeed, I think I backported this all the way to 2.34.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-14 14:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-24816-131@http.sourceware.org/bugzilla/>
2021-08-30 18:44 ` [Bug nss/24816] nss/tst-nss-files-hosts-long fails when no interface has AF_INET6 address (ie docker) xry111 at mengyan1223 dot wang
2022-06-10 17:01 ` fantasquex at gmail dot com
2022-09-13 14:23 ` fweimer at redhat dot com
2022-09-13 14:49 ` fweimer at redhat dot com
2022-09-20 11:33 ` fweimer at redhat dot com
2022-11-14 14:37 ` romain.geissler at amadeus dot com
2022-11-14 14:46 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).