From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4923 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: Re: asctime(0) Segmentation fault Date: Sat, 19 Apr 2014 22:43:32 -0400 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11347188769e5b04f7705a3e X-Trace: ger.gmane.org 1397961852 25513 80.91.229.3 (20 Apr 2014 02:44:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2014 02:44:12 +0000 (UTC) To: musl Original-X-From: musl-return-4927-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 20 04:44:06 2014 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 1Wbhji-0000Yl-G3 for gllmg-musl@plane.gmane.org; Sun, 20 Apr 2014 04:44:06 +0200 Original-Received: (qmail 7849 invoked by uid 550); 20 Apr 2014 02:44:04 -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 7841 invoked from network); 20 Apr 2014 02:44:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=99tDplw1G8wkQP6ZQNSIWxfJCdypmz6mtYZLHZWS9Ms=; b=W268mGP2npV/DCJzbAmHf9Z0L99n4WTMd29z7xJOho8mJB7NXcsGjCZttXStFpSjha 7AmMqaxgq4qPjB2gJJ2fXvJtE5PrOW4/BKbUXZ7SGvrM9ZnJbpirawf0dNpj0gzW9Ijf blwMFbY4xEvTsH8AwTmfcslq4EBFn2+Y7wejb1zPHFg8BtIHDWi+X87nS1IhRI04VNvH gzOBKCyNzMgKgnEwBiPgupGOg+OB/tvdcX8Yh6hpV0smU8eHVt4KM1+ygpxzu8f9vAR7 GWf6Ujv4TbRckHivrJ9jhkk8LdtCsuoE850Z6HZw+ZDubQO//q+Ts90NnJ/tOastCULY k99A== X-Received: by 10.112.254.163 with SMTP id aj3mr17100857lbd.20.1397961832962; Sat, 19 Apr 2014 19:43:52 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:4923 Archived-At: --001a11347188769e5b04f7705a3e Content-Type: text/plain; charset=ISO-8859-1 >From Python-2.7.6/Lib/test/test_time.py: def test_asctime(self): time.asctime(time.gmtime(self.t)) self.assertRaises(TypeError, time.asctime, 0) On Sat, Apr 19, 2014 at 6:46 PM, John Mudd wrote: > It looks like asctime(0) should return 0 instead of Segmentation fault. > > --001a11347188769e5b04f7705a3e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
From Python-2.7.6/Lib/test/test_time.py:

=A0 =A0 def test_asctime(self):
=A0 =A0 =A0 =A0 time.a= sctime(time.gmtime(self.t))
=A0 =A0 =A0 =A0 self.assertRaises(Typ= eError, time.asctime, 0)



On Sat, Apr 19, 2014 at 6:46 PM, John Mudd <johnbmudd@gmail.com<= /a>> wrote:
It looks like=A0asctime(0) = should return 0 instead of=A0Segmentation fault.

--001a11347188769e5b04f7705a3e--