• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[[NSDate alloc] initWithString] crashes with valid string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[[NSDate alloc] initWithString] crashes with valid string


  • Subject: [[NSDate alloc] initWithString] crashes with valid string
  • From: Markus Spoettl <email@hidden>
  • Date: Tue, 15 Jul 2008 11:36:46 -0700

Hi List,

I've a problem I am failing to track down (let alone understand) for a couple of weeks now. My application imports XML files that contain - amongst other things - dates. Once in a while, the string to date conversion causes a crash (EXC_BAD_ACCESS):

#0	0x90b1da14 in ures_getIntVector
#1	0x90b20eb0 in icu::Calendar::setWeekCountData
#2	0x90b1f463 in icu::GregorianCalendar::GregorianCalendar
#3	0x90b1ee16 in icu::Calendar::createInstance
#4	0x90b1c73e in ucal_open
#5	0x940a097b in __CFCalendarCreateUCalendar
#6	0x940a0a22 in __CFCalendarSetupCal
#7	0x940a15d7 in _CFCalendarComposeAbsoluteTimeV
#8	0x95428cbc in -[NSCFCalendar dateFromComponents:]
#9	0x9542879b in -[NSDate(NSDate) initWithString:]

This specific crash happened with the string: "2008-05-09 19:47:47 +0000", which seems perfectly valid input for NSDate -initWithString:.

The string appears to be a valid object - if it is any indication (I don't know if it is) the debugger tells me the string value on the call stack just fine.

Any ideas what could be causing something like this?

Thanks!
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [[NSDate alloc] initWithString] crashes with valid string
      • From: Nick Zitzmann <email@hidden>
    • Re: [[NSDate alloc] initWithString] crashes with valid string
      • From: Andy Lee <email@hidden>
    • Re: [[NSDate alloc] initWithString] crashes with valid string
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Detect/Disable Font Fallbacks in NSLayoutManager
  • Next by Date: Re: KVO notifications and threads
  • Previous by thread: Re: Detect/Disable Font Fallbacks in NSLayoutManager
  • Next by thread: Re: [[NSDate alloc] initWithString] crashes with valid string
  • Index(es):
    • Date
    • Thread