View Ticket
Not logged in
Ticket UUID: fd91b0ca09cb171f007311695750ffb6d36236c0
Title: failed tests
Type: Bug Version: 8.6+
Submitter: dgp Created on: 2024-06-26 12:53:04
Subsystem: 16. Commands A-H Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2024-07-02 17:06:43
Resolution: Fixed Closed By: dgp
    Closed on: 2024-07-02 17:06:43
Description:
First time building/testing Tcl on a new work system.  It is some version of Ubuntu.  
This is probably a platform bug and not a Tcl bug, but would prefer the test suite not to complain.

==== cmdAH-24.20.1 Tcl_FileObjCmd: atime 64-bit time_t, bug [4718b41c56] FAILED
==== Contents of test case:

    list [file atime $filename 3155760000] [file atime $filename]

---- Result was:
2147483647 2147483647
---- Result should have been (exact matching):
3155760000 3155760000
==== cmdAH-24.20.1 FAILED



==== cmdAH-24.20.2 Tcl_FileObjCmd: mtime 64-bit time_t, bug [4718b41c56] FAILED
==== Contents of test case:

    list [file mtime $filename 3155760000] [file mtime $filename]

---- Result was:
2147483647 2147483647
---- Result should have been (exact matching):
3155760000 3155760000
==== cmdAH-24.20.2 FAILED
User Comments: dgp added on 2024-07-02 17:06:43:
Branch tips all show the tests no longer failing.

sebres added on 2024-07-01 20:07:03:

NP. You could try it again (8.6 only at the moment), [da79c3c0b87a14cc] must fix it (I hope).


dgp added on 2024-07-01 19:08:40:
Thanks for the followups.  I will engage our local admins to see what they might know.

sebres added on 2024-07-01 18:59:12:

So then it's probably the disk drive or driver or whatever IO-related there, seeming to have year 2038 problem.

I don't really know how to organize the test suite not to complain here, excepting a constraint using linux commands (touch/stat, but the last with --format is not really posix, imho).

I'll try to provide something here.


dgp added on 2024-07-01 18:26:34:
% puts pointerSize:\t$::tcl_platform(pointerSize)
pointerSize:	8
% puts st_mtime:\t[testsize st_mtime]
st_mtime:	8

Tests still failing on branch tips.

$ uname -a
Linux HOSTNAME 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

sebres added on 2024-06-28 09:02:40:

Found a box where it was reproducible previously, and looks OK now, so the constraint work as expected, however only with tcltest-module... it may fail without that, but since it is mostly working (especially on all completely 64-bit platforms), I'll leave it as it is (instead of disabling if no testsize command)...
So I'll close it for now.


sebres added on 2024-06-27 10:22:25:

Hmm... it looks like continuation of [10aa8403d064439f]... I tried to target there similar issue by extend the constraint for all platforms (previously testsize was for windows only). Seems to be not enough (or we'd need to rewrite the constraint time64bit for some constellation).

The question is what do you see with following lines (in tcltest or in tclsh with loading test-module):

puts pointerSize:\t$::tcl_platform(pointerSize)
puts st_mtime:\t[testsize st_mtime]

I committed my last attempt of more strict attempt in [fd91b0ca09cb171f], would it help?

By the way: is it 32 or 64 bit platform (and kernel)?


dgp added on 2024-06-26 13:06:03:
Further examination reveals that this is an "Ubuntu 22.04.4 LTS" system.