Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.gnustep.bug > #4108
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Sam Thompson <INVALID.NOREPLY@gnu.org> |
| Newsgroups | gnu.gnustep.bug |
| Subject | [bug #47422] [NSCalendarDate descriptionWithCalendarFormat] hangs with some dates |
| Date | Tue, 15 Mar 2016 16:36:00 +0000 |
| Lines | 80 |
| Approved | bug-gnustep@gnu.org |
| Message-ID | <mailman.7592.1458059766.843.bug-gnustep@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain;charset=UTF-8 |
| X-Trace | usenet.stanford.edu 1458059766 18199 208.118.235.17 (15 Mar 2016 16:36:06 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | Sam Thompson <sam.thompson@infor.com>, bug-gnustep@gnu.org |
| Envelope-to | bug-gnustep@gnu.org |
| X-PHP-Originating-Script | 0:sendmail.php |
| X-Savane-Server | savannah.gnu.org:443 [208.118.235.70] |
| X-Savane-Project | gnustep |
| X-Savane-Tracker | bugs |
| X-Savane-Item-ID | 47422 |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36 |
| X-Apparently-From | 213.208.244.51 (Savane authenticated user sthompso) |
| In-Reply-To | |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.6.x |
| X-Received-From | 2001:4830:134:6::a |
| X-BeenThere | bug-gnustep@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNUstep programming environment <bug-gnustep.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-gnustep> |
| List-Post | <mailto:bug-gnustep@gnu.org> |
| List-Help | <mailto:bug-gnustep-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.gnustep.bug:4108 |
Show key headers only | View raw
URL:
<http://savannah.gnu.org/bugs/?47422>
Summary: [NSCalendarDate descriptionWithCalendarFormat] hangs
with some dates
Project: GNUstep
Submitted by: sthompso
Submitted on: Tue 15 Mar 2016 04:35:59 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Trying to format some representations of dates using [NSCalendarDate
descriptionWithCalendarFormat], causes a hang within GNUStep library.
Please find attached sample application source-code which demonstrates the
behavior.
The first date succeeds, but the second results in a hang.
Output:
$ obj/DateFormatTest.exe
daysSince1970: 8640000000. secondsSinceReference: 746495021692800.
Converted to 07-06-139044
daysSince1970: 2147483651. secondsSinceReference: 185541609139200.
Have seen the hang is somewhere within:
absoluteGregorianDay () / gregorianDateFromAbsolute () from
gnustep-base-1_24.dll. These functions are used within the
descriptionWithCalendarFormat implementation, within a few while-loops.
While the "problem date" in the test may seem overboard, I still wouldn't
expect the hanging behavior.
GNUStep version: 1.24.6.
Platform: Windows.
GCC: 4.7.2.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 15 Mar 2016 04:35:59 PM GMT Name: DateFormatTest.m Size: 1kB By:
sthompso
Sample source-code demonstrating the behavior is attached.
<http://savannah.gnu.org/bugs/download.php?file_id=36654>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47422>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Back to gnu.gnustep.bug | Previous | Next | Find similar
[bug #47422] [NSCalendarDate descriptionWithCalendarFormat] hangs with some dates Sam Thompson <INVALID.NOREPLY@gnu.org> - 2016-03-15 16:36 +0000
csiph-web