From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4256 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Pending patches/issues before 0.9.15 release? Date: Thu, 21 Nov 2013 11:39:11 -0500 Message-ID: <20131121163911.GP24286@brightrain.aerifal.cx> References: <20131121013056.GA2128@brightrain.aerifal.cx> <528DD529.4030408@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1385051959 26695 80.91.229.3 (21 Nov 2013 16:39:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 16:39:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4260-gllmg-musl=m.gmane.org@lists.openwall.com Thu Nov 21 17:39:26 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VjXHo-0004Mc-Qx for gllmg-musl@plane.gmane.org; Thu, 21 Nov 2013 17:39:24 +0100 Original-Received: (qmail 21666 invoked by uid 550); 21 Nov 2013 16:39:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21658 invoked from network); 21 Nov 2013 16:39:24 -0000 Content-Disposition: inline In-Reply-To: <528DD529.4030408@skarnet.org> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4256 Archived-At: On Thu, Nov 21, 2013 at 09:40:57AM +0000, Laurent Bercot wrote: > Hi Rich, > > I think there is a localtime bug related to > http://www.openwall.com/lists/musl/2012/10/26/11 > but I've been unable to expose it in a reproducible way, and I > haven't had time to investigate more. Are you using the same source code from that email? > But *once*, I got the following results : > > $ TZ=CEST ./localtime-musl ; TZ=CEST ./localtime-glibc > Local: 06:13:34 > Global: 06:13:34 TUU > Local: 06:13:34 > Global: 06:13:34 > > $ TZ=:right/Europe/Paris ./localtime-musl ; TZ=:right/Europe/Paris ./localtime-glibc > Local: 08:14:10 > Global: 06:14:10 TUU > Local: 08:13:45 > Global: 06:13:45 > > 1. That "TUU" looks like some random string is added after the time format, there > seems to be a string length error. Perhaps strftime is failing to null-terminate under some conditions. Did you try pre-filling the buffer with junk to see if it makes the bug reproducable? > 2. There's a 35 second discrepancy between the glibc and musl results in the > right/ case, which seems to indicate that musl prints UTC when it should print > TAI-10. (This is reproducible.) Does musl support the A. D. Olson "right/" timezones ? I'm not familiar with the "right/" timezones and they're difficult to google for -- please give me a reference for what they are, if you can. However, musl only uses zoneinfo for timezone/daylight-time purposes, not for any sort of adjustment between POSIX/calendar time and UTC(w/leap-seconds) and/or TAI. Perhaps this is the source of the discrepency. Rich