coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tests/tail/overlay-headers fails on macOS 26


From: Pádraig Brady
Subject: Re: tests/tail/overlay-headers fails on macOS 26
Date: Wed, 7 Jan 2026 22:06:43 +0000
User-agent: Mozilla Thunderbird Beta

On 07/01/2026 18:23, Bruno Haible via GNU coreutils General Discussion wrote:
The CI reports a unit test failure of tests/tail/overlay-headers on macOS 26
on 2026-01-05 but not in the previous run on 2025-12-29. The failure could
be spurious.

Here's the log:


FAIL: tests/tail/overlay-headers
================================

+ test 17 = 13
+ fail=1
There are multiple issues with this test:

1. It inadvertently left ---disable-inotify in place
so wasn't actually testing the problematic code

2. cleanup_() didn't send SIGCONT to tail,
which could have resulted in a hung test upon termination

3. We assume tail was in stopped state after kill -STOP returns.
We should check this is the case as it can happen async.
Probably unlikely, but simple enough to use our
exponential backoff helper here to check.

4. tail(1) is never actually stopped in the test!
Rather timeout(1) is the process that gets the SIGSTOP since:
https://lists.gnu.org/archive/html/coreutils/2025-09/msg00096.html
BTW the hang in the above report looks to be due to SIGCONT not resuming
the tail(1) process, thus leading to the potential hang I noticed at 2.

So the test was never valid, and became worse over time :/

Hopefully the attached addresses these issues.

p.s. timeout(1) probably should propagate all signals.
something to look at...

Attachment: macos-tail-test-race.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]