public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2
@ 2021-03-06 17:45 hjl.tools at gmail dot com
  2021-03-08  8:08 ` [Bug nss/27537] " fweimer at redhat dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-06 17:45 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27537
           Summary: [2.33 Regression] FAIL: nss/tst-reload2
           Product: glibc
           Version: 2.33
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nss
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: dj at redhat dot com
  Target Milestone: ---
            Target: i686

On release/2.33/master branch, i686 glibc configured with

--enable-hardcoded-path-in-tests --enable-cet

I got

FAIL: nss/tst-reload2

[hjl@gnu-cfl-2 build-i686-linux]$ cat nss/tst-reload2.out 
tst-reload2.c:112: numeric comparison failure
   left: 5 (0x5); from: pw->pw_uid
  right: 1234 (0x4d2); from: 1234
error: tst-reload2.c:130: not true: pw->pw_uid != 2468
tst-reload2.c:136: numeric comparison failure
   left: 5 (0x5); from: pw->pw_uid
  right: 1234 (0x4d2); from: 1234
error: tst-reload2.c:146: not true: he != NULL
error: 4 test failures
[hjl@gnu-cfl-2 build-i686-linux]$

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
@ 2021-03-08  8:08 ` fweimer at redhat dot com
  2021-03-08 13:11 ` hjl.tools at gmail dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fweimer at redhat dot com @ 2021-03-08  8:08 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-
                 CC|                            |fweimer at redhat dot com

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Do you have any IPv6 addresses configured on your system? Thanks.

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
  2021-03-08  8:08 ` [Bug nss/27537] " fweimer at redhat dot com
@ 2021-03-08 13:11 ` hjl.tools at gmail dot com
  2021-03-08 13:34 ` fweimer at redhat dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-08 13:11 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Florian Weimer from comment #1)
> Do you have any IPv6 addresses configured on your system? Thanks.

[hjl@gnu-cfl-2 ~]$ ifconfig eno1
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1300
        inet 192.168.1.17  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::b2a6:e6f1:de7a:da77  prefixlen 64  scopeid 0x20<link>
        ether 94:c6:91:a4:31:be  txqueuelen 1000  (Ethernet)
        RX packets 11319  bytes 7199395 (6.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8826  bytes 1601253 (1.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xb0b00000-b0b20000  

[hjl@gnu-cfl-2 ~]$ ping fe80::b2a6:e6f1:de7a:da77 
PING fe80::b2a6:e6f1:de7a:da77(fe80::b2a6:e6f1:de7a:da77) 56 data bytes
ping: sendmsg: Invalid argument
ping: sendmsg: Invalid argument

--- fe80::b2a6:e6f1:de7a:da77 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1010ms

[hjl@gnu-cfl-2 ~]$ ping 192.168.1.17
PING 192.168.1.17 (192.168.1.17) 56(84) bytes of data.
64 bytes from 192.168.1.17: icmp_seq=1 ttl=64 time=0.032 ms

--- 192.168.1.17 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.032/0.032/0.032/0.000 ms
[hjl@gnu-cfl-2 ~]$ 

There is no working IPv6.  The same test works on master branch.

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
  2021-03-08  8:08 ` [Bug nss/27537] " fweimer at redhat dot com
  2021-03-08 13:11 ` hjl.tools at gmail dot com
@ 2021-03-08 13:34 ` fweimer at redhat dot com
  2021-03-08 15:15 ` hjl.tools at gmail dot com
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fweimer at redhat dot com @ 2021-03-08 13:34 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
This is definitely odd.  The test failures I've seen where on hosts where there
were no IPv6 notworking interfaces.

Maybe propagating IPv6 support into the container fails for some reason? But
then support/test-container.c does not actually enter a network namespace, so
this shouldn't be a problem.

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2021-03-08 13:34 ` fweimer at redhat dot com
@ 2021-03-08 15:15 ` hjl.tools at gmail dot com
  2021-03-08 16:17 ` skpgkp2 at gmail dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-08 15:15 UTC (permalink / raw)
  To: glibc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2021-03-08 15:15 ` hjl.tools at gmail dot com
@ 2021-03-08 16:17 ` skpgkp2 at gmail dot com
  2021-03-08 17:39 ` skpgkp2 at gmail dot com
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: skpgkp2 at gmail dot com @ 2021-03-08 16:17 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #4 from Sunil Pandey <skpgkp2 at gmail dot com> ---
I randomly see this failure on glibc master too.

$cat tst-reload2.out
tst-reload2.c:112: numeric comparison failure
   left: 5 (0x5); from: pw->pw_uid
  right: 1234 (0x4d2); from: 1234
error: tst-reload2.c:130: not true: pw->pw_uid != 2468
tst-reload2.c:136: numeric comparison failure
   left: 5 (0x5); from: pw->pw_uid
  right: 1234 (0x4d2); from: 1234
error: tst-reload2.c:146: not true: he != NULL
error: 4 test failures

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2021-03-08 16:17 ` skpgkp2 at gmail dot com
@ 2021-03-08 17:39 ` skpgkp2 at gmail dot com
  2021-03-08 17:57 ` schwab@linux-m68k.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: skpgkp2 at gmail dot com @ 2021-03-08 17:39 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #5 from Sunil Pandey <skpgkp2 at gmail dot com> ---
This is another random failure, it may be related to this issue.

$ cat nss/tst-nss-files-hosts-long.out
error: tst-nss-files-hosts-long.c:35: ahostsv4 failed
error: 1 test failures

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

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

* [Bug nss/27537] [2.33 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2021-03-08 17:39 ` skpgkp2 at gmail dot com
@ 2021-03-08 17:57 ` schwab@linux-m68k.org
  2021-03-09 19:08 ` [Bug nss/27537] [2.33/2.34 " hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: schwab@linux-m68k.org @ 2021-03-08 17:57 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #6 from Andreas Schwab <schwab@linux-m68k.org> ---
That always fails if there is no network.

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

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

* [Bug nss/27537] [2.33/2.34 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2021-03-08 17:57 ` schwab@linux-m68k.org
@ 2021-03-09 19:08 ` hjl.tools at gmail dot com
  2021-03-09 20:09 ` dj at redhat dot com
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-09 19:08 UTC (permalink / raw)
  To: glibc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[2.33 Regression] FAIL:     |[2.33/2.34 Regression]
                   |nss/tst-reload2             |FAIL: nss/tst-reload2

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

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

* [Bug nss/27537] [2.33/2.34 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (7 preceding siblings ...)
  2021-03-09 19:08 ` [Bug nss/27537] [2.33/2.34 " hjl.tools at gmail dot com
@ 2021-03-09 20:09 ` dj at redhat dot com
  2021-03-09 21:06 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dj at redhat dot com @ 2021-03-09 20:09 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #7 from dj at redhat dot com <dj at redhat dot com> ---
Is this *only* i686?  I see the he!=NULL error in 2.33 but not master, and not
the other ones at all.

Also, please try creating the file nss/tst-reload1.root/preclean.req - that
will make sure there's nothing from a previous test interfering with this one.

FYI the 5<->1234 errors indicate that the wrong service was used (test1 vs
test2) and the he!=NULL one tests that libnss_files.so can be loaded after the
chroot

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

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

* [Bug nss/27537] [2.33/2.34 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (8 preceding siblings ...)
  2021-03-09 20:09 ` dj at redhat dot com
@ 2021-03-09 21:06 ` hjl.tools at gmail dot com
  2021-03-10 14:38 ` hjl.tools at gmail dot com
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-09 21:06 UTC (permalink / raw)
  To: glibc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i686                        |i686, x86-64

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

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

* [Bug nss/27537] [2.33/2.34 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (9 preceding siblings ...)
  2021-03-09 21:06 ` hjl.tools at gmail dot com
@ 2021-03-10 14:38 ` hjl.tools at gmail dot com
  2021-03-11  8:25 ` stli at linux dot ibm.com
  2021-03-11 22:08 ` dj at redhat dot com
  12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-10 14:38 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
They fail at random on both i686 and x86-64.

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

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

* [Bug nss/27537] [2.33/2.34 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (10 preceding siblings ...)
  2021-03-10 14:38 ` hjl.tools at gmail dot com
@ 2021-03-11  8:25 ` stli at linux dot ibm.com
  2021-03-11 22:08 ` dj at redhat dot com
  12 siblings, 0 replies; 14+ messages in thread
From: stli at linux dot ibm.com @ 2021-03-11  8:25 UTC (permalink / raw)
  To: glibc-bugs

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

Stefan Liebler <stli at linux dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stli at linux dot ibm.com

--- Comment #9 from Stefan Liebler <stli at linux dot ibm.com> ---
I'm getting the same output if running this sequence:
$ cd <builddir>
$ rm -f testroot.root/etc/nsswitch.conf
$ make t=nss/tst-reload1 test
PASS: nss/tst-reload1
$ cat testroot.root/etc/nsswitch.conf
passwd: test2
group:  test2
hosts:  test2

$ make t=nss/tst-reload2 test
tst-reload2.c:112: numeric comparison failure
   left: 5 (0x5); from: pw->pw_uid
  right: 1234 (0x4d2); from: 1234
error: tst-reload2.c:130: not true: pw->pw_uid != 2468
tst-reload2.c:136: numeric comparison failure
   left: 5 (0x5); from: pw->pw_uid
  right: 1234 (0x4d2); from: 1234
error: tst-reload2.c:146: not true: he != NULL
error: 4 test failures

$ cat testroot.root/etc/nsswitch.conf
passwd: test2
group:  test2
hosts:  test2

According to tst-reload2.c and current nsswitch.conf, it is using pwd_table2,
which is PWD_N (5, "test1"). According to the
nss/tst-reload2.root/etc/nsswitch.conf, it should use PWD_N (1234, "test1") of
pwd_table1.

testroot.root/etc/nsswitch.conf was not synced by support/test-container.c as
the size (40 bytes) and timestamp (in case of a fresh git clone) of
nsswitch.conf files does not differ, but its content:
nss/tst-reload1.root/etc/nsswitch.conf
nss/tst-reload1.root/etc/nsswitch.conf2
nss/tst-reload2.root/etc/nsswitch.conf
nss/tst-reload2.root/subdir/etc/nsswitch.conf

You will also see fails if rerunning nss/tst-reload1 multiple times.

See discussion on mailing-list:
"[PATCH] Ensure that nsswitch.conf for nss/tst-reload[12] are really synced."
https://sourceware.org/pipermail/libc-alpha/2021-March/123614.html

Note:
I have not checked if this is also the case for nss/tst-nss-files-hosts-long.

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

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

* [Bug nss/27537] [2.33/2.34 Regression] FAIL: nss/tst-reload2
  2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
                   ` (11 preceding siblings ...)
  2021-03-11  8:25 ` stli at linux dot ibm.com
@ 2021-03-11 22:08 ` dj at redhat dot com
  12 siblings, 0 replies; 14+ messages in thread
From: dj at redhat dot com @ 2021-03-11 22:08 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #10 from dj at redhat dot com <dj at redhat dot com> ---
Commit 20bee7134801cc932ff87fac511289b92fc94944 fixes the 5<->1234 bug.  I
suspect to properly fix the he!=NULL error we'll have to switch from
gethostbyname() to gethostent(), unless someone knows what makes
gethostbyname() unpredictable.

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

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

end of thread, other threads:[~2021-03-11 22:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06 17:45 [Bug nss/27537] New: [2.33 Regression] FAIL: nss/tst-reload2 hjl.tools at gmail dot com
2021-03-08  8:08 ` [Bug nss/27537] " fweimer at redhat dot com
2021-03-08 13:11 ` hjl.tools at gmail dot com
2021-03-08 13:34 ` fweimer at redhat dot com
2021-03-08 15:15 ` hjl.tools at gmail dot com
2021-03-08 16:17 ` skpgkp2 at gmail dot com
2021-03-08 17:39 ` skpgkp2 at gmail dot com
2021-03-08 17:57 ` schwab@linux-m68k.org
2021-03-09 19:08 ` [Bug nss/27537] [2.33/2.34 " hjl.tools at gmail dot com
2021-03-09 20:09 ` dj at redhat dot com
2021-03-09 21:06 ` hjl.tools at gmail dot com
2021-03-10 14:38 ` hjl.tools at gmail dot com
2021-03-11  8:25 ` stli at linux dot ibm.com
2021-03-11 22:08 ` dj 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).