This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients David.Edelsohn, Dormouse759, fweimer, hroncok, vstinner
Date 2020-01-29.11:29:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580297381.93.0.989779315406.issue39460@roundup.psfhosted.org>
In-reply-to
Content
I managed to reproduce the issue on Fedora 31 on a XFS filesystem:

$ touch testfn
$ strace -o trace python3 -c 'import os; os.utime("testfn", (4386268800, 4386268800))'
$ grep ^utimensat trace
utimensat(AT_FDCWD, "testfn", [{tv_sec=4386268800, tv_nsec=0} /* 2108-12-30T01:00:00+0100 */, {tv_sec=4386268800, tv_nsec=0} /* 2108-12-30T01:00:00+0100 */], 0) = 0
$ stat testfn
(...)
Modify: 2038-01-19 04:14:07.000000000 +0100
(...)

It looks like a Linux kernel issue in the XFS filesystem: I don't think that mtime should be *silently* truncated to 2147483647.
History
Date User Action Args
2020-01-29 11:29:41vstinnersetrecipients: + vstinner, fweimer, David.Edelsohn, hroncok, Dormouse759
2020-01-29 11:29:41vstinnersetmessageid: <1580297381.93.0.989779315406.issue39460@roundup.psfhosted.org>
2020-01-29 11:29:41vstinnerlinkissue39460 messages
2020-01-29 11:29:41vstinnercreate