Hi Valentin,

On Thu, Nov 06, 2025 at 02:56:59PM +0100, Valentin Haudiquet wrote:
> 
> Running autopkgtests on the latest inetutils version fails on Ubuntu.
> (this is inetutils 2.6-4 from Debian).

Thanks for the report!  On which Ubuntu version is this?

> Full log available:
> https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-vhaudiquet-inetutils-lp2130124/resolute/amd64/i/inetutils/20251105_145814_d8bd2@/log.gz
> 
> The error seems to originate from the counting method of successes in
> the script.
> 284s + test 36 -eq 33
> 284s + echo Registered 36 successes out of 33.
> 284s Registered 36 successes out of 33.
> ...
> 284s + [ 36 -eq 33 ]
> 284s + echo Failing some tests.
> 284s Failing some tests.
> 
> Maybe that is a real bug, and a message is really received twice where
> it should not be, but maybe this is just a counting error in the test
> script (IMHO that counting formula seems really complicated, and I'm
> not sure I understand what is going on).

I observed something like this in 2022, using Ubuntu 18.04, but only when
using "VERBOSE=1" or "VERBOSE=yes".  I reported this to this list in
<https://lists.gnu.org/archive/html/bug-inetutils/2022-02/msg00006.html>.

Currently, using Ubuntu 22.04, the "syslogd.sh" passes for me both with
and without "VERBOSE=1".  Both with a current Git checkout, and the GNU
Inetutils 2.6 release.

> I tried to investigate more but am not familiar with the intrinsics
> of this.

That was my experience, too. :-(

> Tracking merge bug (currently merging this version into Ubuntu from
> Debian):
> https://bugs.launchpad.net/ubuntu/+source/inetutils/+bug/2130124
> 
> It seems that this specific test is skipped on Debian, which is why
> they don't see the issue. If you have a fix, I can send it to Debian
> too.
> 
> If you want to reproduce, running syslogd.sh test should be enough,
> but it specifically happens on the latest version available here:
> https://code.launchpad.net/~vhaudiquet/ubuntu/+source/inetutils/+git/inetutils/+ref/merge-lp2130124-resolute

As a quick reference:

    # run only syslogd.sh test (not verbose)
    make TESTS=syslogd.sh check

    # run only syslogd.sh test (verbose)
    make TESTS=syslogd.sh VERBOSE=yes check

Both PASS for me currently, but the verbose check FAILed for me in 2022
on Ubuntu 18.04.

> Minimal reproducer (which needs git-ubuntu) :
> apt install ubuntu-dev-tools net-tools gnulib libsystemd-dev
> libreadline-dev libpam0g-dev libwrap0-dev libkrb5-dev
> git clone -b merge-lp2130124-resolute
> https://git.launchpad.net/~vhaudiquet/ubuntu/+source/inetutils
> cd inetutils
> git ubuntu export-orig
> gbp buildpackage --git-ignore-branch
> 
> 
> Tell me if you need more details or logs.
> I can try to make a reproducer on a direct upstream build if needed,
> and not inside autopkgtests.

It would be great if you could reproduce this without autopkgtests, i.e.,
with GNU Inetutils sources from a tar-ball and/or with a Git clone.

Cheers,
Erik

Reply via email to