From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4926 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 23:33:06 -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=001a11347188b1a79b04f7710bcd X-Trace: ger.gmane.org 1397964825 21053 80.91.229.3 (20 Apr 2014 03:33:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2014 03:33:45 +0000 (UTC) To: musl Original-X-From: musl-return-4930-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 20 05:33:38 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 1WbiVe-0002zD-AR for gllmg-musl@plane.gmane.org; Sun, 20 Apr 2014 05:33:38 +0200 Original-Received: (qmail 31917 invoked by uid 550); 20 Apr 2014 03:33:37 -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 31909 invoked from network); 20 Apr 2014 03:33:37 -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=TpOu2xj9tTzHM813bWbYhMwQZx2fwt7LR5azorUKpto=; b=vWYHlRlSu/8g/R+hhAo627iWXwlYBvaV2Fl3RhcQZZ/wSiBUJg4XjSxMZw8j0Ca+Qt j4KYEPNY/rww5shOyvBAj5ZCs4A57TYR4UM438kCrLjjC7P5oxBer77tGd07x5IhXN6Z 1VpIWT66exza/5PL07yfObW9ULG0rl7Leeuz1U7hOFpC4gP30DcoydRa1XwRLySHyfUe 8szmy43+w76QrpZ7DzR6esRvAPYd3zQMcrKPOd/WzA/h8APEmkKdvZeJw6V30WRiu5lH NRHSknqb983IT81zi7SNH8DwNFIp7fx7BqIu5C10dvH1WdGK194hv57WL+YZKKS/1xUE A2HQ== X-Received: by 10.112.254.163 with SMTP id aj3mr17253283lbd.20.1397964806398; Sat, 19 Apr 2014 20:33:26 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:4926 Archived-At: --001a11347188b1a79b04f7710bcd Content-Type: text/plain; charset=ISO-8859-1 Yes, asctime(0) might be my bad assumption. Does this help? (gdb) backtrace #0 a_crash () at ./arch/i386/atomic.h:124 #1 0xb7fc735b in __asctime (tm=0xbfffde64, buf=0xb7fff288 "Mon Jan 1 00:00:00 12345") at src/time/__asctime.c:26 #2 0xb7fc91d7 in asctime (tm=tm@entry=0xbfffde64) at src/time/asctime.c:8 #3 0xb7c89709 in time_asctime (self=0x0, args=0xb7d05bcc) at /home/mudd/musl/Python-2.7.6/Modules/timemodule.c:574 #4 0xb7e1989d in PyCFunction_Call (func=func@entry=0xb7d056cc, arg=arg@entry=0xb7d05bcc, kw=kw@entry=0x0) at Objects/methodobject.c:81 On Sat, Apr 19, 2014 at 10:51 PM, John Mudd wrote: > > musl: > >>> import time > >>> time.asctime((12345, 1, 1, 0, 0, 0, 0, 1, 0)) > Segmentation fault (core dumped) > > > --001a11347188b1a79b04f7710bcd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes,=A0asctime(0) might be my bad assumption.

Does this help?

(gdb) backtrace<= /div>
#0 =A0a_crash () at ./arch/i386/atomic.h:124
#1 =A00xb7= fc735b in __asctime (tm=3D0xbfffde64, buf=3D0xb7fff288 <buf.1032> &qu= ot;Mon Jan =A01 00:00:00 12345") at src/time/__asctime.c:26
#2 =A00xb7fc91d7 in asctime (tm=3Dtm@entry=3D0xbfffde64) at src/time/a= sctime.c:8
#3 =A00xb7c89709 in time_asctime (self=3D0x0, args=3D0= xb7d05bcc) at /home/mudd/musl/Python-2.7.6/Modules/timemodule.c:574
#4 =A00xb7e1989d in PyCFunction_Call (func=3Dfunc@entry=3D0xb7d056cc, ar= g=3Darg@entry=3D0xb7d05bcc, kw=3Dkw@entry=3D0x0) at Objects/methodobject.c:= 81




On Sat, Apr 19, 2014 at 10:51 PM, John Mudd <johnbmudd@= gmail.com> wrote:

mu= sl:
>>> import time
>>> time.asc= time((12345, 1, 1, 0, 0, 0, 0, 1, 0))
Segmentation fault (core dumped)


--001a11347188b1a79b04f7710bcd--