Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Sam Thompson 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: 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 , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.gnustep.bug:4108 URL: 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. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/