Debian Bug report logs - #22788
libc6: bug in mktime()

version graph

Package: libc6; Maintainer for libc6 is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6 is src:glibc (PTS, buildd, popcon).

Reported by: Chris Lawrence <quango@ix.netcom.com>

Date: Sat, 23 May 1998 23:33:00 UTC

Severity: normal

Found in version 2.0.7pre3-1

Done: Joel Klecker <jk@espy.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dale Scheetz <dwarf@polaris.net>:
Bug#22788; Package libc6. (full text, mbox, link).


Acknowledgement sent to Chris Lawrence <quango@ix.netcom.com>:
New bug report received and forwarded. Copy sent to Dale Scheetz <dwarf@polaris.net>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Chris Lawrence <quango@ix.netcom.com>
To: submit@bugs.debian.org
Subject: libc6: bug in mktime()
Date: Sat, 23 May 1998 18:23:44 -0500
Package: libc6
Version: 2.0.7pre3-1

Example program:

#include <time.h>
#include <stdio.h>

int main()
{
   struct tm *t1, t2;
   time_t time1, time2, t;
   
   putenv("TZ=EST5EDT");
   tzset();
   time(&t);
   t1 = localtime(&t);
   t2 = *t1;
   t2.tm_isdst = 1 - t2.tm_isdst;
   time1 = mktime(t1);
   time2 = mktime(&t2);
   
   printf("t = %d  time1 = %d  time2 = %d\n", t, time1, time2);
   return;
}

time2 should be time1 + 3600 seconds during daylight savings time in Eastern
time, and should be time1 - 3600 seconds during standard time.

Output using libc6 (bug present):
t = 895965466  time1 = 895965466  time2 = 895965466

Output using SunOS libc (SunOS 5.6)
t = 895965466  time1 = 895965466  time2 = 895969066

-- System Information
Debian Release: 2.0 (frozen)
Kernel Version: Linux mem-tn1-21.ix.netcom.com 2.1.99 #1 Sat May 2 15:42:57 CDT 1998 i486 unknown

Versions of the packages libc6 depends on:
ii  ldso            1.9.8-1        The Linux dynamic linker, library and utilit


Reply sent to Joel Klecker <jk@espy.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Chris Lawrence <quango@ix.netcom.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 22788-done@bugs.debian.org (full text, mbox, reply):

From: Joel Klecker <jk@espy.org>
To: 22788-done@bugs.debian.org
Subject: Appears fixed
Date: Fri, 17 Sep 1999 12:40:05 -0700
Using the included test program seems to give the correct results now.
-- 
Joel Klecker (aka Espy)                    Debian GNU/Linux Developer
<URL:mailto:jk@espy.org>                 <URL:mailto:espy@debian.org>
<URL:http://web.espy.org/>               <URL:http://www.debian.org/>


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 24 00:20:20 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.