So I managed to reproduce the test failure in an arm64 vm, and narrowed it down to this:
ubuntu@juju-b11c42-ubuntu-24:/tmp/autopkgtest.0yUqH9/build.EJr/src/build-tree/arm64-libc/pwd$ ./tst-getpw
PASS: NULL buffer returns -1 and sets errno to EINVAL.
PASS: Read a password line given a uid.
PASS: Found an invalid uid.
ubuntu@juju-b11c42-ubuntu-24:/tmp/autopkgtest.0yUqH9/build.EJr/src/build-tree/arm64-libc/pwd$ /lib/ld-linux-aarch64.so.1 ./tst-getpw
PASS: NULL buffer returns -1 and sets errno to EINVAL.
PASS: Read a password line given a uid.
FAIL: Did not find even one invalid uid.
which doesn't make a lot of sense but is somewhere to start...
So I managed to reproduce the test failure in an arm64 vm, and narrowed it down to this:
ubuntu@ juju-b11c42- ubuntu- 24:/tmp/ autopkgtest. 0yUqH9/ build.EJr/ src/build- tree/arm64- libc/pwd$ ./tst-getpw juju-b11c42- ubuntu- 24:/tmp/ autopkgtest. 0yUqH9/ build.EJr/ src/build- tree/arm64- libc/pwd$ /lib/ld- linux-aarch64. so.1 ./tst-getpw
PASS: NULL buffer returns -1 and sets errno to EINVAL.
PASS: Read a password line given a uid.
PASS: Found an invalid uid.
ubuntu@
PASS: NULL buffer returns -1 and sets errno to EINVAL.
PASS: Read a password line given a uid.
FAIL: Did not find even one invalid uid.
which doesn't make a lot of sense but is somewhere to start...