This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug time/25039] New: mktime fails when .tm_isdst=1 on i686-linux-gnu with > 2.28-10
- From: "winter-gcc at bfw-online dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 26 Sep 2019 11:32:15 +0000
- Subject: [Bug time/25039] New: mktime fails when .tm_isdst=1 on i686-linux-gnu with > 2.28-10
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=25039
Bug ID: 25039
Summary: mktime fails when .tm_isdst=1 on i686-linux-gnu with >
2.28-10
Product: glibc
Version: 2.29
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: time
Assignee: unassigned at sourceware dot org
Reporter: winter-gcc@bfw-online.de
Target Milestone: ---
Host: i686-linux-gnu
Created attachment 12005
--> https://sourceware.org/bugzilla/attachment.cgi?id=12005&action=edit
Repro/Regression test, fails when isdst = 1 on > glibc 2.28-10
Running test application on older glibc (2.28-10 Debian version):
# time in DST
$ ./a.out 1569497187
tzname[0] = CET
tzname[1] = CEST
timezone = -3600
daylight = 1
time = 1569497187
.tm_isdst = 1
tzname[0] = UTC
tzname[1] = UTC
timezone = 0
daylight = 0
mktime = 1569504387 (time += 7200)
# time not in DST
$ ./a.out 1575198000
tzname[0] = CET
tzname[1] = CEST
timezone = -3600
daylight = 1
time = 1575198000
.tm_isdst = 0
tzname[0] = UTC
tzname[1] = UTC
timezone = 0
daylight = 0
mktime = 1575201600 (time += 3600)
Regression with 2.29-2 (Debian version):
# time in DST
$ ./a.out 1569497187
tzname[0] = CET
tzname[1] = CEST
timezone = -3600
daylight = 1
time = 1569497187
.tm_isdst = 1
tzname[0] = UTC
tzname[1] = UTC
timezone = 0
daylight = 0
mktime = -1 (time += -1569497188)
# errno is EOVERFLOW
# time not in DST
$ ./a.out 1575198000
tzname[0] = CET
tzname[1] = CEST
timezone = -3600
daylight = 1
time = 1575198000
.tm_isdst = 0
tzname[0] = UTC
tzname[1] = UTC
timezone = 0
daylight = 0
mktime = 1575201600 (time += 3600)
In compared the diff from 2.29-2 to git current master and could not detect
meaningful changes so I believe this test case still fails / show the
regression.
--
You are receiving this mail because:
You are on the CC list for the bug.