Bug#1022991: libc6: broken y2038 support in fstatat on mips64el
control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=29730
On 2022-10-28 20:35, Aurelien Jarno wrote:
> Package: libc6
> Version: 2.35-1
> Severity: critical
> Tags: upstream
> Justification: breaks unrelated software
>
> On mips64el the fstat/fstatat/lstat functions return EOVERFLOW when they
> are called on files with a mtime, atime or ctime that can't be
> represented within a 32-bit time_t. This should not happen as time_t is
> 64-bit on mips64el. This is a regression from glibc 2.34 and can be
> reproduce with:
>
> (sid_mips64el-dchroot)aurel32@eller:~$ touch -d 20390101 t
> (sid_mips64el-dchroot)aurel32@eller:~$ chmod +x t
> chmod: cannot access 't': Value too large for defined data type
> (sid_mips64el-dchroot)aurel32@eller:~$
>
> This breaks unrelated software, for instance the build of gcc-12 on the
> build daemons:
>
> https://buildd.debian.org/status/fetch.php?pkg=gcc-12&arch=mips64el&ver=12.2.0-7&stamp=1666806816&raw=0
I have identified the commit causing the issue, and forwarded the bug
upstream. See: https://sourceware.org/bugzilla/show_bug.cgi?id=29730
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
Reply to: