GNU bug report logs - #51793
FAIL: tests/misc/env-signal-handler

Previous Next

Package: coreutils;

Reported by: Andreas Schwab <schwab <at> linux-m68k.org>

Date: Fri, 12 Nov 2021 19:26:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andreas Schwab <schwab <at> linux-m68k.org>
Subject: bug#51793: closed (Re: bug#51793: FAIL: tests/misc/env-signal-handler)
Date: Sat, 13 Nov 2021 12:20:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#51793: FAIL: tests/misc/env-signal-handler

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 51793 <at> debbugs.gnu.org.

-- 
51793: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51793
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 51793-done <at> debbugs.gnu.org
Subject: Re: bug#51793: FAIL: tests/misc/env-signal-handler
Date: Sat, 13 Nov 2021 12:18:39 +0000
[Message part 3 (text/plain, inline)]
On 13/11/2021 09:46, Andreas Schwab wrote:
> On Nov 12 2021, Pádraig Brady wrote:
> 
>> I've never seen this, and I can't see the race.
> 
> There is an obvious race: if env needs more than .1 seconds to set the
> SIGINT handler.

Indeed.

That fits the pattern where we need a certain delay to pass.
So we can use our retry_delay_ helper here.
I'll apply the attached later.

thanks,
Pádraig
[test-env-race.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Andreas Schwab <schwab <at> linux-m68k.org>
To: bug-coreutils <at> gnu.org
Subject: FAIL: tests/misc/env-signal-handler
Date: Fri, 12 Nov 2021 20:25:39 +0100
--- exp-err6   2021-11-11 22:58:04.360716802 +0000
+++ err6       2021-11-11 22:58:04.752716821 +0000
@@ -1,2 +1 @@
 timeout: sending signal INT to command 'env'
-timeout: sending signal KILL to command 'env'
./tests/misc/env-signal-handler.sh: line 127: 26396 Killed                  env timeout --verbose --kill-after=.1 --signal=INT .1 env --ignore-signal sleep 10 > /dev/null 2> err7t
FAIL tests/misc/env-signal-handler.sh (exit status: 1)

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



This bug report was last modified 3 years and 194 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.