GNU bug report logs - #70070
FAIL: test-localtime_r

Previous Next

Package: coreutils;

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

Date: Fri, 29 Mar 2024 12:41:02 UTC

Severity: normal

To reply to this bug, email your comments to 70070 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#70070; Package coreutils. (Fri, 29 Mar 2024 12:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Schwab <schwab <at> linux-m68k.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 29 Mar 2024 12:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: bug-coreutils <at> gnu.org
Subject: FAIL: test-localtime_r
Date: Fri, 29 Mar 2024 13:40:29 +0100
FAIL: test-localtime_r
======================

test-localtime_r.c:58: assertion 'result->tm_hour == 18' failed
FAIL test-localtime_r (exit status: 134)

FAIL: test-localtime_r-mt
=========================

thread2 disturbed by thread1!
thread1 disturbed by thread2!
FAIL test-localtime_r-mt (exit status: 134)

-- 
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."




Information forwarded to bug-coreutils <at> gnu.org:
bug#70070; Package coreutils. (Fri, 29 Mar 2024 13:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 70070 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>, 70070 <at> debbugs.gnu.org,
 bug-gnulib <bug-gnulib <at> gnu.org>
Subject: Re: bug#70070: FAIL: test-localtime_r
Date: Fri, 29 Mar 2024 13:10:58 +0000
On 29/03/2024 12:40, Andreas Schwab wrote:
> FAIL: test-localtime_r
> ======================
> 
> test-localtime_r.c:58: assertion 'result->tm_hour == 18' failed
> FAIL test-localtime_r (exit status: 134)
> 
> FAIL: test-localtime_r-mt
> =========================
> 
> thread2 disturbed by thread1!
> thread1 disturbed by thread2!
> FAIL test-localtime_r-mt (exit status: 134)
> 

CC'ing gnulib as those tests are from gnulib.
It may help to detail your platform.

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#70070; Package coreutils. (Fri, 29 Mar 2024 14:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 70070 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>, 70070 <at> debbugs.gnu.org,
 bug-gnulib <bug-gnulib <at> gnu.org>
Cc: Pádraig Brady <P <at> draigbrady.com>
Subject: Re: bug#70070: FAIL: test-localtime_r
Date: Fri, 29 Mar 2024 15:03:22 +0100
Andreas Schwab wrote:
> > FAIL: test-localtime_r
> > ======================
> > 
> > test-localtime_r.c:58: assertion 'result->tm_hour == 18' failed
> > FAIL test-localtime_r (exit status: 134)
> > 
> > FAIL: test-localtime_r-mt
> > =========================
> > 
> > thread2 disturbed by thread1!
> > thread1 disturbed by thread2!
> > FAIL test-localtime_r-mt (exit status: 134)

The second failure is a consequence of the first one. So, there is no MT-safety
problem, "just" that localtime_r produces wrong results.

I've seen this happen on OSes with a time zone database that is older than
5 or 10 years.

Pádraig Brady wrote:
> It may help to detail your platform.

Yes. And make sure that it has a time zone database installed at all.

Bruno







Information forwarded to bug-coreutils <at> gnu.org:
bug#70070; Package coreutils. (Fri, 29 Mar 2024 14:16:01 GMT) Full text and rfc822 format available.

Message #14 received at 70070 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Bruno Haible <bruno <at> clisp.org>
Cc: 70070 <at> debbugs.gnu.org, bug-gnulib <bug-gnulib <at> gnu.org>,
 Pádraig Brady <P <at> draigbrady.com>
Subject: Re: bug#70070: FAIL: test-localtime_r
Date: Fri, 29 Mar 2024 15:15:14 +0100
On Mär 29 2024, Bruno Haible wrote:

> Yes. And make sure that it has a time zone database installed at all.

Why? That doesn't make any sense.




Information forwarded to bug-coreutils <at> gnu.org:
bug#70070; Package coreutils. (Fri, 29 Mar 2024 14:20:01 GMT) Full text and rfc822 format available.

Message #17 received at 70070 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 70070 <at> debbugs.gnu.org, bug-gnulib <bug-gnulib <at> gnu.org>,
 Pádraig Brady <P <at> draigbrady.com>
Subject: Re: bug#70070: FAIL: test-localtime_r
Date: Fri, 29 Mar 2024 15:19:13 +0100
Andreas Schwab wrote:
> > Yes. And make sure that it has a time zone database installed at all.
> 
> Why? That doesn't make any sense.

You can leave the consideration of which test case makes sense or not
on my side.

What we need from you, as a reporter, is a statement on which
platform (distro and version) you saw the test failure.
If we don't have this, there is no good way for us to reproduce the issue,
and we'll have to close the ticket.

Bruno







Information forwarded to bug-coreutils <at> gnu.org:
bug#70070; Package coreutils. (Sat, 30 Mar 2024 19:33:01 GMT) Full text and rfc822 format available.

Message #20 received at 70070 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Andreas Schwab <schwab <at> linux-m68k.org>, Bruno Haible <bruno <at> clisp.org>
Cc: 70070 <at> debbugs.gnu.org, bug-gnulib <bug-gnulib <at> gnu.org>,
 Pádraig Brady <P <at> draigbrady.com>
Subject: Re: bug#70070: FAIL: test-localtime_r
Date: Sat, 30 Mar 2024 13:31:53 -0600
[Message part 1 (text/plain, inline)]
On 3/29/24 08:15, Andreas Schwab wrote:
> On Mär 29 2024, Bruno Haible wrote:
> 
>> Yes. And make sure that it has a time zone database installed at all.
> 
> Why? That doesn't make any sense.

Although Andreas is not clear, perhaps he is alluding to the fact that 
Gnulib's localtime_r tests assume that TZ='Europe/Paris' stands for 
Paris time. POSIX doesn't guarantee this, so the implication is that the 
tests should be skipped when Europe/Paris does not work.

I installed the attached to do that. I don't know whether this will fix 
Andreas's problem, whatever it is.
[0001-time_r-tests-skip-French-tests-if-no-Europe-Paris.patch (text/x-patch, attachment)]

This bug report was last modified 238 days ago.

Previous Next


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