public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/30053] New: strftime %s returns -1 after 2038 on 32 bits systems
@ 2023-01-26 7:56 blemouzy at centralp dot fr
2023-01-26 8:46 ` [Bug time/30053] " sam at gentoo dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: blemouzy at centralp dot fr @ 2023-01-26 7:56 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30053
Bug ID: 30053
Summary: strftime %s returns -1 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: ---
Created attachment 14629
--> https://sourceware.org/bugzilla/attachment.cgi?id=14629&action=edit
Example logs
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
===========
strftime call with "%s" format returns "-1"
Example source code
===================
time_t timestamp = time(NULL);
struct tm *pTime = localtime(×tamp);
char buffer[MAX_SIZE];
size_t buffer_len;
buffer_len = strftime(buffer, MAX_SIZE, "%s", pTime);
printf("Number of seconds since the Epoch: %s (len = %zu)\n",
buffer,
buffer_len);
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug time/30053] strftime %s returns -1 after 2038 on 32 bits systems
2023-01-26 7:56 [Bug time/30053] New: strftime %s returns -1 after 2038 on 32 bits systems blemouzy at centralp dot fr
@ 2023-01-26 8:46 ` sam at gentoo dot org
2023-01-30 20:06 ` carlos at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: sam at gentoo dot org @ 2023-01-26 8:46 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30053
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug time/30053] strftime %s returns -1 after 2038 on 32 bits systems
2023-01-26 7:56 [Bug time/30053] New: strftime %s returns -1 after 2038 on 32 bits systems blemouzy at centralp dot fr
2023-01-26 8:46 ` [Bug time/30053] " sam at gentoo dot org
@ 2023-01-30 20:06 ` carlos at redhat dot com
2023-02-01 9:16 ` blemouzy at centralp dot fr
2023-02-07 9:26 ` schwab@linux-m68k.org
3 siblings, 0 replies; 5+ messages in thread
From: carlos at redhat dot com @ 2023-01-30 20:06 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30053
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
Patch in patchwork for this:
https://patchwork.sourceware.org/project/glibc/patch/mvmr0vhto02.fsf@suse.de/
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug time/30053] strftime %s returns -1 after 2038 on 32 bits systems
2023-01-26 7:56 [Bug time/30053] New: strftime %s returns -1 after 2038 on 32 bits systems blemouzy at centralp dot fr
2023-01-26 8:46 ` [Bug time/30053] " sam at gentoo dot org
2023-01-30 20:06 ` carlos at redhat dot com
@ 2023-02-01 9:16 ` blemouzy at centralp dot fr
2023-02-07 9:26 ` schwab@linux-m68k.org
3 siblings, 0 replies; 5+ messages in thread
From: blemouzy at centralp dot fr @ 2023-02-01 9:16 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30053
--- Comment #2 from LEMOUZY Benjamin <blemouzy at centralp dot fr> ---
Patch tested on i.MX6 board: it's working fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug time/30053] strftime %s returns -1 after 2038 on 32 bits systems
2023-01-26 7:56 [Bug time/30053] New: strftime %s returns -1 after 2038 on 32 bits systems blemouzy at centralp dot fr
` (2 preceding siblings ...)
2023-02-01 9:16 ` blemouzy at centralp dot fr
@ 2023-02-07 9:26 ` schwab@linux-m68k.org
3 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2023-02-07 9:26 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=30053
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
Target Milestone|--- |2.38
--- Comment #3 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] 5+ messages in thread
end of thread, other threads:[~2023-02-07 9:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 7:56 [Bug time/30053] New: strftime %s returns -1 after 2038 on 32 bits systems blemouzy at centralp dot fr
2023-01-26 8:46 ` [Bug time/30053] " sam at gentoo dot org
2023-01-30 20:06 ` carlos at redhat dot com
2023-02-01 9:16 ` blemouzy at centralp dot fr
2023-02-07 9:26 ` schwab@linux-m68k.org
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).