public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems
@ 2023-02-10  9:44 blemouzy at centralp dot fr
  2023-02-10  9:45 ` [Bug time/30111] " blemouzy at centralp dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2023-02-10  9:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

            Bug ID: 30111
           Summary: lchmod test fails after 2038 on 32 bits systems
           Product: glibc
           Version: 2.35
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: blemouzy at centralp dot fr
  Target Milestone: ---

Environment
===========

- i.MX6 32 bits CPU
- Yocto Kirkstone (kirkstone-4.0.6)
- Linux 5.10.109
- glibc 2.35 (8d125a1f9145ad90c94e438858d6b5b7578686f2)
- RFS built with "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" flags
- System date set after 011903142038 (2038 Jan 19 03:14:00)

Description
===========

tst-lchmod-time64 returns after 2038:

    error: support_descriptors.c:103: readdir: fstat64 (0) failed: Value too
large for defined data type
    error: 1 test failures

tst-lchmod-time64 returns before 2038:

    info: testing lchmod
    info: testing fchmodat with AT_FDCWD
    info: testing fchmodat with relative path
    info: re-running tests (after trying to empty /proc)
    info: testing lchmod
    info: testing fchmodat with AT_FDCWD
    info: testing fchmodat with relative path

Please find associated strace attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] lchmod test fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
@ 2023-02-10  9:45 ` blemouzy at centralp dot fr
  2023-02-10  9:45 ` blemouzy at centralp dot fr
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2023-02-10  9:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

--- Comment #1 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
Created attachment 14672
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14672&action=edit
strace before 2038

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] lchmod test fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
  2023-02-10  9:45 ` [Bug time/30111] " blemouzy at centralp dot fr
@ 2023-02-10  9:45 ` blemouzy at centralp dot fr
  2023-02-23 12:31 ` [Bug time/30111] support_descriptors_list " schwab@linux-m68k.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2023-02-10  9:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

--- Comment #2 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
Created attachment 14673
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14673&action=edit
strace after 2038

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
  2023-02-10  9:45 ` [Bug time/30111] " blemouzy at centralp dot fr
  2023-02-10  9:45 ` blemouzy at centralp dot fr
@ 2023-02-23 12:31 ` schwab@linux-m68k.org
  2023-03-02 12:06 ` schwab@linux-m68k.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: schwab@linux-m68k.org @ 2023-02-23 12:31 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|lchmod test fails after     |support_descriptors_list
                   |2038 on 32 bits systems     |fails after 2038 on 32 bits
                   |                            |systems

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
The failure is unrelated to lchmod, it occurs in support_descriptors_list.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
                   ` (2 preceding siblings ...)
  2023-02-23 12:31 ` [Bug time/30111] support_descriptors_list " schwab@linux-m68k.org
@ 2023-03-02 12:06 ` schwab@linux-m68k.org
  2024-03-12  7:34 ` blemouzy at centralp dot fr
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: schwab@linux-m68k.org @ 2023-03-02 12:06 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
   Target Milestone|---                         |2.38
         Resolution|---                         |FIXED

--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
Fixed in 2.38.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
                   ` (3 preceding siblings ...)
  2023-03-02 12:06 ` schwab@linux-m68k.org
@ 2024-03-12  7:34 ` blemouzy at centralp dot fr
  2024-03-12  7:35 ` blemouzy at centralp dot fr
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2024-03-12  7:34 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

--- Comment #5 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
Hello,

As
https://sourceware.org/git/?p=glibc.git;a=commit;h=3bfdc4e2bceb601b90c81a9baa73c1904db58b2f
has not been backported to release/2.35/master, I did it myself.

But I still have the issue:

  # date
  Tue Mar 12 06:53:05 UTC 2024
  # /usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lchmod-time64
  info: testing lchmod
  info: testing fchmodat with AT_FDCWD
  info: testing fchmodat with relative path
  info: re-running tests (after trying to empty /proc)
  info: testing lchmod
  info: testing fchmodat with AT_FDCWD
  info: testing fchmodat with relative path


  # date
  Thu Jan 19 03:14:02 UTC 2040
  # /usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lchmod-time64
  error: support_descriptors.c:103: readdir: fstat64 (0) failed: Value too
large for defined data type
  error: 1 test failures

Do I also need to backport another commits to fix it in 2.35?
(new strace outputs attached)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
                   ` (4 preceding siblings ...)
  2024-03-12  7:34 ` blemouzy at centralp dot fr
@ 2024-03-12  7:35 ` blemouzy at centralp dot fr
  2024-03-12  7:35 ` blemouzy at centralp dot fr
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2024-03-12  7:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

--- Comment #6 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
Created attachment 15396
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15396&action=edit
Strace with backported changes in 2.35 before 2038

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
                   ` (5 preceding siblings ...)
  2024-03-12  7:35 ` blemouzy at centralp dot fr
@ 2024-03-12  7:35 ` blemouzy at centralp dot fr
  2024-03-12 19:33 ` adhemerval.zanella at linaro dot org
  2024-03-13  9:15 ` blemouzy at centralp dot fr
  8 siblings, 0 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2024-03-12  7:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

--- Comment #7 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
Created attachment 15397
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15397&action=edit
Strace with backported changes in 2.35 after 2038

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
                   ` (6 preceding siblings ...)
  2024-03-12  7:35 ` blemouzy at centralp dot fr
@ 2024-03-12 19:33 ` adhemerval.zanella at linaro dot org
  2024-03-13  9:15 ` blemouzy at centralp dot fr
  8 siblings, 0 replies; 10+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2024-03-12 19:33 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #8 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
It requires 3bfdc4e2bceb601b90c81a9baa73c1904db58b2f to fully use 64 bits on
libsupport. I have backported it on 2.35, 2.36, and 2.37.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug time/30111] support_descriptors_list fails after 2038 on 32 bits systems
  2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
                   ` (7 preceding siblings ...)
  2024-03-12 19:33 ` adhemerval.zanella at linaro dot org
@ 2024-03-13  9:15 ` blemouzy at centralp dot fr
  8 siblings, 0 replies; 10+ messages in thread
From: blemouzy at centralp dot fr @ 2024-03-13  9:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30111

LEMOUZY Benjamin <blemouzy at centralp dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |---

--- Comment #9 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
(In reply to Adhemerval Zanella from comment #8)
> I have backported it on 2.35, 2.36, and 2.37.
I just tested a24adf3572ad23fc5098d4cc62ff821cff1ef3c5 on release/2.35/master
and the test successfully pass.
Thanks for that!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-13  9:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10  9:44 [Bug time/30111] New: lchmod test fails after 2038 on 32 bits systems blemouzy at centralp dot fr
2023-02-10  9:45 ` [Bug time/30111] " blemouzy at centralp dot fr
2023-02-10  9:45 ` blemouzy at centralp dot fr
2023-02-23 12:31 ` [Bug time/30111] support_descriptors_list " schwab@linux-m68k.org
2023-03-02 12:06 ` schwab@linux-m68k.org
2024-03-12  7:34 ` blemouzy at centralp dot fr
2024-03-12  7:35 ` blemouzy at centralp dot fr
2024-03-12  7:35 ` blemouzy at centralp dot fr
2024-03-12 19:33 ` adhemerval.zanella at linaro dot org
2024-03-13  9:15 ` blemouzy at centralp dot fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).