emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#16872: closed (`date -d 'TZ="America/Los_Angeles"


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16872: closed (`date -d 'TZ="America/Los_Angeles" "00:00 + 1 hour"'` crashes)
Date: Thu, 27 Feb 2014 23:59:02 +0000

Your message dated Thu, 27 Feb 2014 23:58:33 +0000
with message-id <address@hidden>
and subject line Re: bug#16872: `date -d 'TZ="America/Los_Angeles" "00:00 + 1 
hour"'` crashes
has caused the debbugs.gnu.org bug report #16872,
regarding `date -d 'TZ="America/Los_Angeles" "00:00 + 1 hour"'` crashes
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
16872: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16872
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: `date -d 'TZ="America/Los_Angeles" "00:00 + 1 hour"'` crashes Date: Tue, 25 Feb 2014 03:13:52 -0500 User-agent: KMail/4.12.2 (Linux/3.13.0; KDE/4.12.2; x86_64; ; )
as reported by Bertrand Jacquin, this crashes:
$ date -d 'TZ="America/Los_Angeles" "00:00 + 1 hour"'
Segmentation fault

(gdb) bt
#0  0x00007ffff7ab1014 in __GI___libc_free (mem=0x7fffffffc8b0) at malloc.c:2942
#1  0x0000000000406730 in parse_datetime (address@hidden, p=<optimized out>, 
address@hidden "TZ=\"America/Los_Angeles\" \"00:00 + 1 hour\"", now=<optimized 
out>, now
@entry=0x0) at ./lib/parse-datetime.y:1307
#2  0x00000000004023c7 in main (argc=0x3, argv=0x7fffffffcc68) at src/date.c:522

that's 15fca2a02e38d69915c52ef41eee3c7d52b67f3e i happened to have already
built, but seems to reproduce easily across older versions.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---
--- Begin Message --- Subject: Re: bug#16872: `date -d 'TZ="America/Los_Angeles" "00:00 + 1 hour"'` crashes Date: Thu, 27 Feb 2014 23:58:33 +0000 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
On 02/27/2014 09:48 PM, Bernhard Voelker wrote:
> On 02/25/2014 12:11 PM, Pádraig Brady wrote:
>> Proposed patch attached.
> 
> parse_datetime per se is pretty ugly, however, the fix LGTM:
> +1

I've pushed that to gnulib,
and the attached to coreutils.

thanks for the review,
Pádraig.

Attachment: coreutils-date-crash.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]